Referência da API do Wan 3.0 Spicy
Wan 3.0 de imagem para vídeo, até 30 segundos com áudio
Com uma única chave de API da PopNow você chama o Wan 3.0 Spicy 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
- Alibaba
- Resultado
- Vídeo
- A partir de
- $0.057 USD por segundo gerado
- Tempo médio
- cerca de 184 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.
Imagem para vídeo
alibaba/wan-3.0-spicy/image-to-video
Preço
| Opção | USD |
|---|---|
480p | $0.057 por segundo gerado |
720p | $0.114 por segundo gerado |
1080p | $0.228 por segundo gerado |
Parâmetros
| Campo | Tipo | Padrão | Valores aceitos | Para que serve |
|---|---|---|---|---|
image_urlObrigatório | string | — | — | Opening-frame image. |
promptOpcional | string | — | — | Describe the subject, action, camera, light, pacing, and sound for the shot. |
last_image_urlOpcional | string | — | — | Optional last frame: the clip ends on this image. Requires image_url. |
aspect_ratioOpcional | string | — | 16:9, 9:16, 1:1, 4:3, 3:4 | Output aspect ratio. Omit it to let the clip adapt to the opening image; a ratio that differs from the image crops it. |
resolutionOpcional | string | 720p | 480p, 720p, 1080p | Output resolution. |
duration_secondsOpcional | integer | 5 | 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, … (+15) | Requested output length in whole seconds. |
generate_audioOpcional | boolean | true | — | Request generated audio with the video. |
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-3.0-spicy/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"Estender vídeo
alibaba/wan-3.0-spicy/video-extend
Preço
| Opção | USD |
|---|---|
480p | $0.05928 por segundo gerado |
720p | $0.11856 por segundo gerado |
1080p | $0.23712 por segundo gerado |
Parâmetros
| Campo | Tipo | Padrão | Valores aceitos | Para que serve |
|---|---|---|---|---|
video_urlObrigatório | string (uri) | — | — | The clip to continue: MP4, MOV or WebM, up to 60 seconds. Its last frame opens the new segment, and the result is your clip with the new segment joined on. |
promptOpcional | string | — | — | Describe what happens next: the action that follows, the camera move and the sound. |
last_image_urlOpcional | string | — | — | Optional target last frame: the new segment ends on this image. |
resolutionOpcional | string | 720p | 480p, 720p, 1080p | Resolution the new segment is generated at. Match your source to avoid a visible step in sharpness at the seam. |
duration_secondsOpcional | integer | 5 | 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, … (+15) | Length of the new segment in seconds. The source clip is added on top and is not billed. |
generate_audioOpcional | boolean | true | — | Generate sound for the new segment. The source keeps its own sound either way. |
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 video_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-3.0-spicy/video-extend",
"input": {
"prompt": "The flowers keep opening while the camera slowly pulls back to reveal a sunlit meadow",
"video_url": "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"
