Referência da API do MiniMax H3 X
Vídeos com som de 2 a 15 segundos, até 1080p
Com uma única chave de API da PopNow você chama o MiniMax H3 X direto do seu código. Aqui estão os IDs de modelo a enviar, cada campo de entrada aceito, quanto custa cada requisição em USD e um exemplo que você cola no terminal e roda.
As descrições dos parâmetros vêm do schema de entrada do modelo e estão disponíveis só em inglês.
Resumo
- Desenvolvedor
- MiniMax
- Resultado
- Vídeo
- A partir de
- $0.022 USD por segundo gerado
- Tempo médio
- cerca de 122 s
Os preços são exibidos em USD e os valores são descontados do seu saldo PopNow. Ao aceitar a tarefa, o valor máximo é reservado; ao concluir, o uso real é cobrado e o restante liberado. Tarefas com falha não são cobradas. Consulte POST /api/v1/jobs/quote para obter uma cotação exata antes de executar.
Criar vídeo
minimax/h3-x/text-to-video
Preço
| Opção | USD |
|---|---|
480p | $0.022 por segundo gerado |
720p | $0.032 por segundo gerado |
1080p | $0.045 por segundo gerado |
Parâmetros
| Campo | Tipo | Padrão | Valores aceitos | Para que serve |
|---|---|---|---|---|
promptObrigatório | string | — | até 7.000 caracteres | Describe the scene, the action, spoken lines in double quotes, the camera and the sound. Timed shots ("At 5 seconds the shot cuts to…") are followed. |
aspect_ratioOpcional | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 | Output aspect ratio. |
resolutionOpcional | string | 720p | 480p, 720p, 1080p | Output resolution. 1080p gives a bigger frame, not visibly more detail than 720p. |
duration_secondsOpcional | integer | 5 | de 2 a 15 | Output length in whole seconds, from 2 to 15. Billed per second. |
enable_prompt_expansionOpcional | boolean | false | — | Let the built-in prompt enhancer rewrite and expand your prompt before generating. Keep it off for literal direction. |
Exemplo de requisição
Esta requisição roda do jeito que está; os campos que você omitir usam o valor padrão. Antes, coloque sua chave em POPNOW_API_KEY.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "minimax/h3-x/text-to-video",
"input": {
"prompt": "A paper boat drifts down a rain-soaked street at dusk, neon signs reflecting in the water, slow tracking shot at ground level",
"duration_seconds": 5,
"resolution": "720p"
}
}'A resposta já traz um taskId. Busque o resultado com GET /api/v1/jobs/recordInfo ou inclua callBackUrl para ser avisado.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Imagem para vídeo
minimax/h3-x/image-to-video
Preço
| Opção | USD |
|---|---|
480p | $0.022 por segundo gerado |
720p | $0.032 por segundo gerado |
1080p | $0.045 por segundo gerado |
Parâmetros
| Campo | Tipo | Padrão | Valores aceitos | Para que serve |
|---|---|---|---|---|
promptObrigatório | string | — | até 7.000 caracteres | Describe what happens after the opening frame: the action, spoken lines in double quotes, the camera and the sound. |
image_urlObrigatório | string (uri) | — | — | Opening frame. The clip starts from this image and keeps its shape. |
last_image_urlOpcional | string (uri) | — | — | Optional closing frame. The clip ends on this image. |
resolutionOpcional | string | 720p | 480p, 720p, 1080p | Output resolution. 1080p gives a bigger frame, not visibly more detail than 720p. |
duration_secondsOpcional | integer | 5 | de 2 a 15 | Output length in whole seconds, from 2 to 15. Billed per second. |
enable_prompt_expansionOpcional | boolean | false | — | Let the built-in prompt enhancer rewrite and expand your prompt before generating. Keep it off for literal direction. |
Exemplo de requisição
Esta requisição roda do jeito que está; os campos que você omitir usam o valor padrão. Antes, coloque sua chave em POPNOW_API_KEY.
O exemplo usa arquivos de amostra da PopNow em image_url. Troque pelos seus próprios links HTTPS públicos, uploads ou assets salvos.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "minimax/h3-x/image-to-video",
"input": {
"prompt": "He lands softly on the rooftop, laughs and turns toward the camera while the balloons sway in the evening breeze; slow push-in",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"duration_seconds": 5,
"resolution": "720p"
}
}'A resposta já traz um taskId. Busque o resultado com GET /api/v1/jobs/recordInfo ou inclua callBackUrl para ser avisado.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Referências para vídeo
minimax/h3-x/reference-to-video
Preço
| Opção | USD |
|---|---|
480p | $0.022 por segundo gerado |
720p | $0.032 por segundo gerado |
1080p | $0.045 por segundo gerado |
Parâmetros
| Campo | Tipo | Padrão | Valores aceitos | Para que serve |
|---|---|---|---|---|
promptObrigatório | string | — | até 7.000 caracteres | Describe the scene and refer to each reference by type and position: "the woman from Image 1", "the motion of Video 1", "the voice of Audio 1". |
reference_image_urlsOpcional | array<string (uri)> | — | até 9 itens | Up to nine reference images: people, outfits, products or places, in the order your prompt refers to them. The first five are included; each image after the fifth adds a small charge. |
reference_video_urlsOpcional | array<string (uri)> | — | até 2 itens | Up to two reference videos, 15 seconds in total, for a motion or a scene to follow. Their seconds are billed like output seconds. |
reference_audio_urlsOpcional | array<string (uri)> | — | até 3 itens | Up to three reference audio clips for a voice or a sound. The spoken words still go in the prompt. |
aspect_ratioOpcional | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 | Output aspect ratio. |
resolutionOpcional | string | 720p | 480p, 720p, 1080p | Output resolution. 1080p gives a bigger frame, not visibly more detail than 720p. |
duration_secondsOpcional | integer | 5 | de 2 a 15 | Output length in whole seconds, from 2 to 15. Billed per second. |
enable_prompt_expansionOpcional | boolean | false | — | Let the built-in prompt enhancer rewrite and expand your prompt before generating. Keep it off for literal direction. |
Exemplo de requisição
Esta requisição roda do jeito que está; os campos que você omitir usam o valor padrão. Antes, coloque sua chave em POPNOW_API_KEY.
O exemplo usa arquivos de amostra da PopNow em reference_image_urls. Troque pelos seus próprios links HTTPS públicos, uploads ou assets salvos.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "minimax/h3-x/reference-to-video",
"input": {
"prompt": "The man from the reference image jogs across a sunlit rooftop at golden hour and smiles at the camera; smooth tracking shot",
"reference_image_urls": [
"https://media.popnow.ai/influencer/examples/ava.webp"
],
"duration_seconds": 5,
"resolution": "720p"
}
}'A resposta já traz um taskId. Busque o resultado com GET /api/v1/jobs/recordInfo ou inclua callBackUrl para ser avisado.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
