Referência da API do Wan 2.7 Spicy
Wan 2.7 de imagem para vídeo que pode seguir sua faixa de áudio
Com uma única chave de API da PopNow você chama o Wan 2.7 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.1235 USD por segundo gerado
- Tempo médio
- cerca de 173 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-2.7-spicy/image-to-video
Preço
| Opção | USD |
|---|---|
720p | $0.1235 por segundo gerado |
1080p | $0.19 por segundo gerado |
Parâmetros
| Campo | Tipo | Padrão | Valores aceitos | Para que serve |
|---|---|---|---|---|
image_urlObrigatório | string | — | — | Opening frame. The clip starts from this image. |
promptObrigatório | string | — | — | 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. |
duration_secondsOpcional | integer | 5 | de 2 a 15 | Requested output length in seconds. |
resolutionOpcional | string | 720p | 720p, 1080p | Output resolution. |
audio_urlOpcional | string | — | — | Audio track that drives pacing and speech timing. |
seedOpcional | integer | — | de 0 a 2147483647 | Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee. |
generate_audioOpcional | boolean | true | — | Include an audio track in the output. When false, supplied audio is not used. |
enable_prompt_expansionOpcional | boolean | true | — | Expand the prompt before generation. |
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.7-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",
"resolution": "720p",
"duration_seconds": 5
}
}'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-2.7-spicy/video-extend
Preço
| Opção | USD |
|---|---|
720p | $0.1235 por segundo gerado |
1080p | $0.19 por segundo gerado |
Parâmetros
| Campo | Tipo | Padrão | Valores aceitos | Para que serve |
|---|---|---|---|---|
promptObrigatório | string | — | — | Describe what happens next: the action that follows, the camera move and the mood. |
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. |
negative_promptOpcional | string | — | até 500 caracteres | List what must not appear in the new segment. |
duration_secondsOpcional | integer | 5 | de 2 a 15 | Length of the new segment in seconds. The source clip is added on top and is not billed. |
resolutionOpcional | string | 720p | 720p, 1080p | Sharpness of the new segment. Match your source to avoid a visible step in sharpness at the seam. |
audio_urlOpcional | string | — | — | Audio for the new segment, driving lip sync and pacing. Your source keeps its own sound. Needs generate_audio on. |
seedOpcional | integer | — | de 0 a 2147483647 | Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee. |
generate_audioOpcional | boolean | true | — | Generate sound for the new segment. The source keeps its own sound either way. When false, supplied audio is not used. |
enable_prompt_expansionOpcional | boolean | true | — | Expand the prompt before generation. |
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-2.7-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",
"resolution": "720p",
"duration_seconds": 5
}
}'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"
