Referência da API do Wan 2.6
Sequências com várias tomadas e som, até 1080p
Com uma única chave de API da PopNow você chama o Wan 2.6 direto do seu código. Aqui estão os IDs de modelo a enviar, cada campo de entrada aceito, quantos créditos custa cada requisição 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
- Alibaba
- Resultado
- Vídeo
- A partir de
- 9.75 créditos por segundo gerado ($0.0975)
1 crédito = US$ 0,01. Ao ser aceita, a tarefa reserva o valor máximo possível e, no fim, cobra o uso real, arredondado para cima em créditos inteiros; o restante é liberado. Tarefas que falham não são cobradas. Para saber o valor exato antes de rodar, chame POST /api/v1/jobs/quote.
Criar vídeo
alibaba/wan-2.6/text-to-video
Preço
| Opção | Créditos (por segundo gerado) | Dólares |
|---|---|---|
720p | 13.5 | $0.135 |
1080p | 20.25 | $0.2025 |
Parâmetros
| Campo | Tipo | Padrão | Valores aceitos | Para que serve |
|---|---|---|---|---|
promptObrigatório | string | — | até 1.500 caracteres | Describe the subject, action, camera, light, pacing, and boundaries for the shot. |
negative_promptOpcional | string | — | até 500 caracteres | List what must not appear in the shot. |
aspect_ratioOpcional | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4 | Output aspect ratio. |
resolutionOpcional | string | 720p | 720p, 1080p | Output resolution. |
duration_secondsOpcional | integer | 5 | 5, 10, 15 | Requested output length in seconds. |
audio_urlOpcional | string | — | — | Audio track that drives lip sync or pacing. |
shot_typeOpcional | string | single | single, multi | Single continuous shot, or a multi-shot edit. |
enable_prompt_expansionOpcional | boolean | false | — | Allow the service to expand the submitted creative brief before generation. |
seedOpcional | integer | — | de 0 a 2147483647 | Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee. |
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": "alibaba/wan-2.6/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
alibaba/wan-2.6/image-to-video
Preço
| Opção | Créditos (por segundo gerado) | Dólares |
|---|---|---|
720p | 13.5 | $0.135 |
1080p | 20.25 | $0.2025 |
Parâmetros
| Campo | Tipo | Padrão | Valores aceitos | Para que serve |
|---|---|---|---|---|
image_urlObrigatório | string | — | — | Opening frame. The clip starts from this image. |
promptOpcional | string | — | até 1.500 caracteres | Describe what happens after the opening frame: the action, the camera, and the mood. |
negative_promptOpcional | string | — | até 500 caracteres | List what must not appear in the shot. |
resolutionOpcional | string | 720p | 720p, 1080p | Output resolution. |
duration_secondsOpcional | integer | 5 | 5, 10, 15 | Requested output length in seconds. |
audio_urlOpcional | string | — | — | Audio track that drives lip sync or pacing. |
shot_typeOpcional | string | single | single, multi | Single continuous shot, or a multi-shot edit. |
enable_prompt_expansionOpcional | boolean | false | — | Allow the service to expand the submitted creative brief before generation. |
seedOpcional | integer | — | de 0 a 2147483647 | Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee. |
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": "alibaba/wan-2.6/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
alibaba/wan-2.6/reference-to-video
Preço
| Opção | Créditos (por segundo gerado) | Dólares |
|---|---|---|
720p | 9.75 | $0.0975 |
1080p | 14.62 | $0.1462 |
Parâmetros
| Campo | Tipo | Padrão | Valores aceitos | Para que serve |
|---|---|---|---|---|
promptObrigatório | string | — | até 1.500 caracteres | Describe the new scene: what each reference clip contributes, then setting, action, camera and light. |
negative_promptOpcional | string | — | até 1.500 caracteres | List what must not appear in the shot. |
reference_video_urlsOpcional | array<string> | — | até 3 itens | Reference videos of the subjects to cast, up to 3 clips. Still images in reference_image_urls are numbered after them. |
reference_image_urlsOpcional | array<string> | — | até 2 itens | Up to 2 still images of subjects to cast, alongside or instead of the reference videos; numbered after the videos. |
aspect_ratioOpcional | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4 | Output aspect ratio. |
resolutionOpcional | string | 720p | 720p, 1080p | Output resolution. |
duration_secondsOpcional | integer | 5 | de 2 a 10 | Requested output length in seconds. |
shot_typeOpcional | string | single | single, multi | Single continuous shot, or a multi-shot edit. |
seedOpcional | integer | — | de 0 a 2147483647 | Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee. |
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_video_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": "alibaba/wan-2.6/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_video_urls": [
"https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4"
],
"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"
