PopNowAPI 文件
主要內容

Seedance 2.5 Flash API 呼叫參考

Seedance 2.5 的 Flash 版本:480p 或 720p、4–30 秒有聲影片,支援提示詞編輯

只要一把 PopNow API 金鑰,就能在自己的程式裡呼叫 Seedance 2.5 Flash。以下列出要填的呼叫名稱、這個型號接受的每個輸入欄位、每次請求花多少美元(USD),以及一段可以直接貼進終端機執行的請求。

參數說明直接取自型號的輸入 schema,目前只有英文。

總覽

開發商
ByteDance
產出
影片
起價
$0.077 USD 每秒成片
一般耗時
約 77 秒

價格以 USD 顯示,從你的 PopNow 餘額扣款。任務受理時預留可能的最高費用,完成後依實際用量結算並釋放餘款;失敗任務不收費。執行前可呼叫 POST /api/v1/jobs/quote 取得準確報價。

生成影片

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

價格

選項USD
480p$0.116 每秒成片
720p$0.224 每秒成片

參數

欄位型別預設值可用值用途
prompt必填string—最多 20000 個字元The shot to generate: subject, action, setting, camera and sound. Put spoken lines in double quotes.
aspect_ratio選填string16: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.
resolution選填string720p480p, 720p480p or 720p (default). 480p costs half as much per second.
duration_seconds選填integer54 到 30Clip length in whole seconds, 4 to 30 (default 5). Billed per requested second.
generate_audio選填booleantrue—Generate a soundtrack with the picture (default on). Does not change the price.
output_format選填stringmp4mp4, movContainer: mp4 (default) or mov, which keeps more colour detail for further editing. Free.
return_last_frame選填booleanfalse—Also return the clip's closing frame as a separate image (default off). Free.
watermark選填booleanfalse—Add a visible AI-generated watermark to the clip (default off). Free.

請求範例

這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 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"
  }
}'

回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。

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"

照片轉影片

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

價格

選項USD
480p$0.116 每秒成片
720p$0.224 每秒成片

參數

欄位型別預設值可用值用途
prompt必填string—最多 20000 個字元What happens between the frames: motion, camera and sound.
image_url必填string (uri)——Start frame. The clip opens on this picture and keeps its proportions.
last_image_url選填string (uri)——Optional end frame. The clip finishes on this picture; use one with matching framing.
resolution選填string720p480p, 720p480p or 720p (default). 480p costs half as much per second.
duration_seconds選填integer54 到 30Clip length in whole seconds, 4 to 30 (default 5). Billed per requested second.
generate_audio選填booleantrue—Generate a soundtrack with the picture (default on). Does not change the price.
output_format選填stringmp4mp4, movContainer: mp4 (default) or mov, which keeps more colour detail for further editing. Free.
return_last_frame選填booleanfalse—Also return the clip's closing frame as a separate image (default off). Free.
watermark選填booleanfalse—Add a visible AI-generated watermark to the clip (default off). Free.

請求範例

這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。

範例中的 image_url 使用 PopNow 的範例素材,請換成你自己的公開 HTTPS 連結、上傳檔案或已儲存的素材。

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"
  }
}'

回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。

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"

參考素材生成影片

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

價格

選項USD
resolution = 480p, with_video = true$0.077 每秒成片
resolution = 480p, with_video = false$0.116 每秒成片
resolution = 720p, with_video = true$0.147 每秒成片
resolution = 720p, with_video = false$0.224 每秒成片

參數

欄位型別預設值可用值用途
prompt必填string—最多 20000 個字元The 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_urls選填array<string (uri)>—最多 10 項Up to 10 images of people, products, places or a look to keep, named @Image 1, @Image 2 and so on. Free.
reference_video_urls選填array<string (uri)>—最多 5 項Up 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_urls選填array<string (uri)>—最多 5 項Up to 5 voice, music or sound clips, 30 seconds in total, named @Audio 1 and so on. Free.
aspect_ratio選填string16: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.
resolution選填string720p480p, 720p480p or 720p (default). Sets the per-second rate.
duration_seconds選填integer54 到 30Clip length in whole seconds, 4 to 30 (default 5).
generate_audio選填booleantrue—Generate a soundtrack with the picture (default on). Does not change the price.
output_format選填stringmp4mp4, movContainer: mp4 (default) or mov, which keeps more colour detail for further editing. Free.
return_last_frame選填booleanfalse—Also return the clip's closing frame as a separate image (default off). Free.
watermark選填booleanfalse—Add a visible AI-generated watermark to the clip (default off). Free.

請求範例

這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。

範例中的 reference_image_urls 使用 PopNow 的範例素材,請換成你自己的公開 HTTPS 連結、上傳檔案或已儲存的素材。

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"
  }
}'

回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。

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"

編輯影片

bytedance/seedance-2.5-flash/video-edit

價格

選項USD
480p$0.195 每秒成片
720p$0.36 每秒成片

參數

欄位型別預設值可用值用途
prompt必填string—最多 20000 個字元The change to make, then what must stay the same. Name reference images as @Image 1 and audio as @Audio 1.
video_url必填string (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_urls選填array<string (uri)>—最多 10 項Optional images showing the target look, such as a garment, prop, face or palette, named @Image 1 and so on. Free.
reference_audio_urls選填array<string (uri)>—最多 5 項Optional audio, 30 seconds in total, that steers the new soundtrack, named @Audio 1 and so on. Free.
resolution選填string720p480p, 720p480p or 720p (default). 480p costs half as much per source second.
generate_audio選填booleantrue—On: write a new soundtrack for the edited picture. Off: keep the source clip's original sound.

請求範例

這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。

範例中的 video_url 使用 PopNow 的範例素材,請換成你自己的公開 HTTPS 連結、上傳檔案或已儲存的素材。

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"
  }
}'

回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。

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"

影片延伸

bytedance/seedance-2.5-flash/video-extend

價格

選項USD
480p$0.116 每秒成片
720p$0.224 每秒成片

參數

欄位型別預設值可用值用途
prompt必填string—最多 20000 個字元Required. What happens after the clip's last frame: the next action, the camera move and the sound.
video_url必填string (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_url選填string (uri)——Optional end frame: the new segment finishes on this picture. The opening frame always comes from your clip.
resolution選填string720p480p, 720pResolution of the new segment: 480p or 720p (default). The per-second rate depends on it; pick the one closest to your source.
duration_seconds選填integer54 到 30Length of the new segment in whole seconds, 4 to 30 (default 5). Billed per requested second; the source clip is not billed.
generate_audio選填booleantrue—Generate sound for the new segment (default on). Your clip keeps its own soundtrack either way; the price does not change.
watermark選填booleanfalse—Add the model's visible AI-generated watermark to the new segment (default off). Free.

請求範例

這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。

範例中的 video_url 使用 PopNow 的範例素材,請換成你自己的公開 HTTPS 連結、上傳檔案或已儲存的素材。

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"
  }
}'

回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。

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"

接下來

本頁內容