PopNowDocs da API
Conteúdo principal

Referência da API do MiniMax H3 X Turbo

Texto, imagens ou referências de áudio em vídeos com som

Com uma única chave de API da PopNow você chama o MiniMax H3 X Turbo 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.015 USD por segundo gerado
Tempo médio
cerca de 57 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-turbo/text-to-video

Preço

OpçãoUSD
480p$0.015 por segundo gerado
720p$0.024 por segundo gerado
1080p$0.032 por segundo gerado

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
promptObrigatóriostring—até 7.000 caracteresDescribe 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_ratioOpcionalstring16:916:9, 9:16, 1:1, 4:3, 3:4, 21:9Output aspect ratio.
resolutionOpcionalstring720p480p, 720p, 1080pOutput resolution. 1080p gives a bigger frame, not visibly more detail than 720p.
duration_secondsOpcionalinteger5de 2 a 15Output length in whole seconds, from 2 to 15. Billed per second.
enable_prompt_expansionOpcionalbooleanfalse—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.

POST /api/v1/jobs/createTask
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-turbo/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.

GET /api/v1/jobs/recordInfo
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-turbo/image-to-video

Preço

OpçãoUSD
480p$0.015 por segundo gerado
720p$0.024 por segundo gerado
1080p$0.032 por segundo gerado

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
promptObrigatóriostring—até 7.000 caracteresDescribe what happens after the opening frame: the action, spoken lines in double quotes, the camera and the sound.
image_urlObrigatóriostring (uri)——Opening frame. The clip starts from this image and keeps its shape.
last_image_urlOpcionalstring (uri)——Optional closing frame. The clip ends on this image.
resolutionOpcionalstring720p480p, 720p, 1080pOutput resolution. 1080p gives a bigger frame, not visibly more detail than 720p.
duration_secondsOpcionalinteger5de 2 a 15Output length in whole seconds, from 2 to 15. Billed per second.
enable_prompt_expansionOpcionalbooleanfalse—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.

POST /api/v1/jobs/createTask
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-turbo/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.

GET /api/v1/jobs/recordInfo
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-turbo/reference-to-video

Preço

OpçãoUSD
480p$0.015 por segundo gerado
720p$0.024 por segundo gerado
1080p$0.032 por segundo gerado

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
promptObrigatóriostring—até 7.000 caracteresDescribe 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_urlsOpcionalarray<string (uri)>—até 9 itensUp 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_urlsOpcionalarray<string (uri)>—até 2 itensUp 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_urlsOpcionalarray<string (uri)>—até 3 itensUp to three reference audio clips for a voice or a sound. The spoken words still go in the prompt.
aspect_ratioOpcionalstring16:916:9, 9:16, 1:1, 4:3, 3:4, 21:9Output aspect ratio.
resolutionOpcionalstring720p480p, 720p, 1080pOutput resolution. 1080p gives a bigger frame, not visibly more detail than 720p.
duration_secondsOpcionalinteger5de 2 a 15Output length in whole seconds, from 2 to 15. Billed per second.
enable_prompt_expansionOpcionalbooleanfalse—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.

POST /api/v1/jobs/createTask
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-turbo/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.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Próximos passos

Nesta página