Sozdai LogoDocs
문서/동영상/텍스트 → 이미지

Seedance 2 Fast Image To Video· 텍스트 → 이미지

텍스트 → 이미지
POSThttps://api.foxwire.ai/v1/media/generations

#작업 제출

미디어 생성은 비동기입니다. 기다리지 않고 즉시 작업 id를 받습니다.

bash
curl https://api.foxwire.ai/v1/media/generations \
  -H "Authorization: Bearer $CORRY_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "model": "seedance-2-fast-image-to-video", "prompt": "a cute robot mascot, flat vector logo" }'
# → { "id": "cmus7q0x9000108l3f5g2abcd", "status": "queued" }

#요청 매개변수

매개변수유형필수기본값설명
promptstring
Text prompt describing the video (3–20000 chars).
first_frame_urlstring아니요
First-frame image (URL or asset://id).
last_frame_urlstring아니요
Last-frame image; pair with first_frame_url for first&last-frame mode.
resolutionstring아니요720p
Video resolution. Higher resolution costs more: 720p ≈ 2× of 480p — see the pricing page. (Only 480p / 720p.)
옵션: 480p, 720p
aspect_ratiostring아니요16:9
Aspect ratio.
옵션: 1:1, 4:3, 3:4, 16:9, 9:16, 21:9, adaptive
durationnumber아니요5
Video length in seconds (4–15). Billed per second × resolution.
generate_audioboolean아니요true
Generate an audio track (default on).
web_searchboolean아니요
Use online search to enrich generation.
nsfw_checkerboolean아니요false
Content filter; false disables filtering.
callback_urlstring아니요
Optional public http(s) URL. We POST the task result here the moment generation finishes (success or failure).

#Poll for the result

Generation runs asynchronously — the submit call returns immediately with a task id. Poll this endpoint with that id every few seconds until status becomes succeeded (result ready) or a terminal error (failed / timeout).

GEThttps://api.foxwire.ai/v1/media/generations/{id}
bash
# take the id from the submit response, then poll every ~3s
curl https://api.foxwire.ai/v1/media/generations/cmus7q0x9000108l3f5g2abcd \
  -H "Authorization: Bearer $CORRY_KEY"
# repeat until "status" is "succeeded" (or "failed" / "timeout")

#응답 예시

제출 시

json
{
  "id": "cmus7q0x9000108l3f5g2abcd",
  "status": "queued",
  "type": "video",
  "model": "seedance-2-fast-image-to-video"
}

성공 시(폴링 후)

json
{
  "id": "cmus7q0x9000108l3f5g2abcd",
  "status": "succeeded",
  "type": "video",
  "model": "seedance-2-fast-image-to-video",
  "result": { "urls": ["https://cdn.sozdai.ai/video/1782537315223-b49c0c1b771f.mp4"] },
  "cost": "1.6000",
  "currency": "USD"
}

응답 필드

필드유형설명
statusstring작업 상태: queued / submitted / succeeded / failed / timeout.
typestring미디어 유형: image / video / music.
modelstring요청한 모델.
resultobject성공 시 존재합니다. result.urls는 영구 파일 URL의 배열입니다.
errorstring오류 메시지. 작업이 실패했을 때 존재합니다.
coststring이 작업에 청구된 금액 — USD 문자열(예: "0.1200"). currency 필드를 참고하세요.
currencystringCurrency of cost — always "USD".