API de geração de vídeo MiniMax-H3
Crie tarefas assíncronas de vídeo MiniMax-H3 no APIMaster, consulte o status e baixe o MP4.
Geração de vídeo MiniMax-H3
Use MiniMax-H3 pela API de vídeo compatível com OpenAI do APIMaster. A geração é assíncrona.
URL base:
https://apimaster.ai/v1éhttps://apimaster.ai/v1. Crie tarefas comPOST https://apimaster.ai/v1/video/generations.
Criar uma tarefa
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
model |
string | sim | MiniMax-H3 |
prompt |
string | sim | Descrição do vídeo |
duration |
integer | não | 4–15 segundos, padrão 4 |
size |
string | não | 768P ou 2K, padrão 768P |
ratio |
string | não | Proporção, padrão 16:9 |
curl -s "https://apimaster.ai/v1/video/generations" \
-H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"model":"MiniMax-H3","prompt":"A calm ocean at sunrise, cinematic wide shot","duration":4,"size":"768P","ratio":"16:9"}'
A resposta retorna id e task_id imediatamente, com status queued.
Consultar o status
GET https://apimaster.ai/v1/videos/{task_id} retorna queued, running, completed ou failed.
curl -s "https://apimaster.ai/v1/videos/task_xxxxxxxx" -H "Authorization: Bearer YOUR_API_KEY"
Aguarde 10–20 segundos após o envio e consulte a cada 3–5 segundos.
Baixar o vídeo
curl -L "https://apimaster.ai/v1/videos/task_xxxxxxxx/content" \
-H "Authorization: Bearer YOUR_API_KEY" -o output.mp4
Baixe o MP4 quando o status for completed. duration aceita 4–15 segundos e size aceita 768P e 2K.