PopNowDocs da API
Conteúdo principal

Referência da API do Wan 2.5

Clipes 1080p com som que podem seguir o seu próprio áudio

Com uma única chave de API da PopNow você chama o Wan 2.5 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
6.75 créditos por segundo gerado ($0.0675)

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.5/text-to-video

Preço

OpçãoCréditos (por segundo gerado)Dólares
480p6.75$0.0675
720p13.5$0.135
1080p20.25$0.2025

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
promptObrigatóriostring—até 1.500 caracteresDescribe the subject, action, camera, light, pacing, and boundaries for the shot.
negative_promptOpcionalstring—até 500 caracteresList what must not appear in the shot.
aspect_ratioOpcionalstring16:916:9, 9:16, 1:1, 4:3, 3:4Output aspect ratio.
resolutionOpcionalstring720p480p, 720p, 1080pOutput resolution.
duration_secondsOpcionalinteger55, 10Requested output length in seconds.
audio_urlOpcionalstring (uri)——Audio track that drives lip sync or pacing.
enable_prompt_expansionOpcionalbooleanfalse—Allow the service to expand the submitted creative brief before generation.
seedOpcionalinteger—de 0 a 2147483647Random 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.

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": "alibaba/wan-2.5/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

alibaba/wan-2.5/image-to-video

Preço

OpçãoCréditos (por segundo gerado)Dólares
480p6.75$0.0675
720p13.5$0.135
1080p20.25$0.2025

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
image_urlObrigatóriostring (uri)——Opening frame. The clip starts from this image.
promptOpcionalstring—até 1.500 caracteresDescribe what happens after the opening frame: the action, the camera, and the mood.
negative_promptOpcionalstring—até 500 caracteresList what must not appear in the shot.
resolutionOpcionalstring720p480p, 720p, 1080pOutput resolution.
duration_secondsOpcionalinteger55, 10Requested output length in seconds.
audio_urlOpcionalstring (uri)——Audio track that drives lip sync or pacing.
enable_prompt_expansionOpcionalbooleanfalse—Allow the service to expand the submitted creative brief before generation.
seedOpcionalinteger—de 0 a 2147483647Random 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.

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": "alibaba/wan-2.5/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"

Estender vídeo

alibaba/wan-2.5/video-extend

Preço

OpçãoCréditos (por segundo gerado)Dólares
480p6.75$0.0675
720p13.5$0.135
1080p20.25$0.2025

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
video_urlObrigatóriostring (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.
promptOpcionalstring—até 1.500 caracteresDescribe what happens next: the action that follows, the camera move and the mood.
negative_promptOpcionalstring—até 500 caracteresList what must not appear in the new segment.
resolutionOpcionalstring720p480p, 720p, 1080pSharpness of the new segment. Match your source to avoid a visible step in sharpness at the seam.
duration_secondsOpcionalinteger55, 10Length of the new segment in seconds. The source clip is added on top and is not billed.
audio_urlOpcionalstring (uri)——Audio for the new segment: a voice line or music cue it should follow. Your source keeps its own sound.
enable_prompt_expansionOpcionalbooleanfalse—Allow the service to expand the submitted creative brief before generation.
seedOpcionalinteger—de 0 a 2147483647Random 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.

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": "alibaba/wan-2.5/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.

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