PopNowDocs da API
Conteúdo principal

Referência da API do Seedance 2.5 Flash

Clipes de 4 a 30 segundos com som em 480p ou 720p.

Com uma única chave de API da PopNow você chama o Seedance 2.5 Flash 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
ByteDance
Resultado
Vídeo
A partir de
$0.077 USD por segundo gerado
Tempo médio
cerca de 77 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

bytedance/seedance-2.5-flash/text-to-video

Preço

OpçãoUSD
480p$0.116 por segundo gerado
720p$0.224 por segundo gerado

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
promptObrigatóriostring—até 20.000 caracteresThe shot to generate: subject, action, setting, camera and sound. Put spoken lines in double quotes.
aspect_ratioOpcionalstring16:916:9, 9:16, 4:3, 3:4, 1:1, 21:9, adaptiveFrame shape: 16:9 (default), 9:16, 4:3, 3:4, 1:1, 21:9, or adaptive to let the model choose.
resolutionOpcionalstring720p480p, 720p480p or 720p (default). 480p costs half as much per second.
duration_secondsOpcionalinteger5de 4 a 30Clip length in whole seconds, 4 to 30 (default 5). Billed per requested second.
generate_audioOpcionalbooleantrue—Generate a soundtrack with the picture (default on). Does not change the price.
output_formatOpcionalstringmp4mp4, movContainer: mp4 (default) or mov, which keeps more colour detail for further editing. Free.
return_last_frameOpcionalbooleanfalse—Also return the clip's closing frame as a separate image (default off). Free.
watermarkOpcionalbooleanfalse—Add a visible AI-generated watermark to the clip (default off). Free.

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": "bytedance/seedance-2.5-flash/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

bytedance/seedance-2.5-flash/image-to-video

Preço

OpçãoUSD
480p$0.116 por segundo gerado
720p$0.224 por segundo gerado

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
promptObrigatóriostring—até 20.000 caracteresWhat happens between the frames: motion, camera and sound.
image_urlObrigatóriostring (uri)——Start frame. The clip opens on this picture and keeps its proportions.
last_image_urlOpcionalstring (uri)——Optional end frame. The clip finishes on this picture; use one with matching framing.
resolutionOpcionalstring720p480p, 720p480p or 720p (default). 480p costs half as much per second.
duration_secondsOpcionalinteger5de 4 a 30Clip length in whole seconds, 4 to 30 (default 5). Billed per requested second.
generate_audioOpcionalbooleantrue—Generate a soundtrack with the picture (default on). Does not change the price.
output_formatOpcionalstringmp4mp4, movContainer: mp4 (default) or mov, which keeps more colour detail for further editing. Free.
return_last_frameOpcionalbooleanfalse—Also return the clip's closing frame as a separate image (default off). Free.
watermarkOpcionalbooleanfalse—Add a visible AI-generated watermark to the clip (default off). Free.

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": "bytedance/seedance-2.5-flash/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

bytedance/seedance-2.5-flash/reference-to-video

Preço

OpçãoUSD
resolution = 480p, with_video = true$0.077 por segundo gerado
resolution = 480p, with_video = false$0.116 por segundo gerado
resolution = 720p, with_video = true$0.147 por segundo gerado
resolution = 720p, with_video = false$0.224 por segundo gerado

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
promptObrigatóriostring—até 20.000 caracteresThe new scene, naming each upload as @Image 1, @Video 1 or @Audio 1 (numbered per type in upload order) and saying what it is for.
reference_image_urlsOpcionalarray<string (uri)>—até 10 itensUp to 10 images of people, products, places or a look to keep, named @Image 1, @Image 2 and so on. Free.
reference_video_urlsOpcionalarray<string (uri)>—até 5 itensUp to 5 clips for motion, camera work or a setting, 30 seconds in total, named @Video 1 and so on. Their seconds are added to the billed length. Each clip at least about 410,000 pixels (e.g. 854×480).
reference_audio_urlsOpcionalarray<string (uri)>—até 5 itensUp to 5 voice, music or sound clips, 30 seconds in total, named @Audio 1 and so on. Free.
aspect_ratioOpcionalstring16:916:9, 9:16, 4:3, 3:4, 1:1, 21:9, adaptiveFrame shape: 16:9 (default), 9:16, 4:3, 3:4, 1:1, 21:9, or adaptive to let the model choose.
resolutionOpcionalstring720p480p, 720p480p or 720p (default). Sets the per-second rate.
duration_secondsOpcionalinteger5de 4 a 30Clip length in whole seconds, 4 to 30 (default 5).
generate_audioOpcionalbooleantrue—Generate a soundtrack with the picture (default on). Does not change the price.
output_formatOpcionalstringmp4mp4, movContainer: mp4 (default) or mov, which keeps more colour detail for further editing. Free.
return_last_frameOpcionalbooleanfalse—Also return the clip's closing frame as a separate image (default off). Free.
watermarkOpcionalbooleanfalse—Add a visible AI-generated watermark to the clip (default off). Free.

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": "bytedance/seedance-2.5-flash/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"

Editar vídeo

bytedance/seedance-2.5-flash/video-edit

Preço

OpçãoUSD
480p$0.195 por segundo gerado
720p$0.36 por segundo gerado

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
promptObrigatóriostring—até 20.000 caracteresThe change to make, then what must stay the same. Name reference images as @Image 1 and audio as @Audio 1.
video_urlObrigatóriostring (uri)——The MP4 clip to edit, 4 to 30 seconds; files outside that range are refused before any charge. Billed per source second, rounded up.
reference_image_urlsOpcionalarray<string (uri)>—até 10 itensOptional images showing the target look, such as a garment, prop, face or palette, named @Image 1 and so on. Free.
reference_audio_urlsOpcionalarray<string (uri)>—até 5 itensOptional audio, 30 seconds in total, that steers the new soundtrack, named @Audio 1 and so on. Free.
resolutionOpcionalstring720p480p, 720p480p or 720p (default). 480p costs half as much per source second.
generate_audioOpcionalbooleantrue—On: write a new soundtrack for the edited picture. Off: keep the source clip's original sound.

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": "bytedance/seedance-2.5-flash/video-edit",
  "input": {
    "prompt": "Recolor the flowers in soft pastel blue; keep the face and the motion unchanged",
    "video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
    "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

bytedance/seedance-2.5-flash/video-extend

Preço

OpçãoUSD
480p$0.116 por segundo gerado
720p$0.224 por segundo gerado

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
promptObrigatóriostring—até 20.000 caracteresRequired. What happens after the clip's last frame: the next action, the camera move and the sound.
video_urlObrigatóriostring (uri)——Required. Source clip in MP4, MOV or WebM, up to 60 seconds. Flash starts the new segment from its final frame, and the delivered file is this clip followed by the new footage.
last_image_urlOpcionalstring (uri)——Optional end frame: the new segment finishes on this picture. The opening frame always comes from your clip.
resolutionOpcionalstring720p480p, 720pResolution of the new segment: 480p or 720p (default). The per-second rate depends on it; pick the one closest to your source.
duration_secondsOpcionalinteger5de 4 a 30Length of the new segment in whole seconds, 4 to 30 (default 5). Billed per requested second; the source clip is not billed.
generate_audioOpcionalbooleantrue—Generate sound for the new segment (default on). Your clip keeps its own soundtrack either way; the price does not change.
watermarkOpcionalbooleanfalse—Add the model's visible AI-generated watermark to the new segment (default off). Free.

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": "bytedance/seedance-2.5-flash/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