Skip to content

MEAI AIFunction tools

Exposes MiniMax video, music, TTS, and voice-clone endpoints as MEAI AIFunctions so they can be attached to any IChatClient.

This example assumes using MiniMax; is in scope and apiKey contains your MiniMax API key.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
using var client = new MiniMaxClient(apiKey);

AIFunction[] tools =
[
    client.AsCreateVideoTaskTool(),
    client.AsGetVideoTaskTool(),
    client.AsGenerateMusicTool(),
    client.AsSynthesizeSpeechTool(),
    client.AsCloneVoiceTool(),
];

Console.WriteLine(string.Join(", ", tools.Select(t => t.Name)));