ByteDance ์ ๊ณต
Mature version of ByteDance Seedance 2.0 Fast: the same model, request shape, limits and price as bytedance/seedance-2.0-fast, with the vendor's content moderation relaxed for adult content. Use is subject to the 0G Terms of Service.
$5.6
์ ๊ณต์๊ฐ ๋ณด๊ณ ํ๋ ๋น๋์ค ํ ํฐ 1M๋น
480p ยท 720p
์ฒญ๊ตฌ ๋ฑ๊ธ โ ์ ์กํ๋ ํฌ๊ธฐ๊ฐ ์๋
์ฐธ์กฐ ๋์์ ์ฌ์ฉ ์: 480p $3.3 ยท 720p $3.3 100๋ง ํ ํฐ๋น
๋น๋๊ธฐ API โ ๋น๋์ค ์์ฑ์ ๋น๋๊ธฐ ํ๋ฆ์ ์ฌ์ฉํฉ๋๋ค: ์์ ์ ์ ์ถํ๊ณ , ์๋ฃ๋ ๋๊น์ง ํด๋งํ ๋ค์, ๋ณ๋ ์๋ํฌ์ธํธ์์ ํ์ผ์ ๋ค์ด๋ก๋ํ์ธ์. ์์ฑ์๋ ๋ช ๋ถ์ด ๊ฑธ๋ฆฌ๋ฏ๋ก 3~5์ด๋ง๋ค ํด๋งํ์ธ์. ์๋ ์์๋ ์ธ ๋จ๊ณ๋ฅผ ๋ชจ๋ ๋ณด์ฌ์ค๋๋ค.
# 1. Submit the job. model, prompt and seconds are required. Each account may hold only a small number of
# unfinished jobs at once โ 5 by default, set per deployment โ and one over that returns 429
# video_jobs_in_flight_limit.
#
# The model's own options go under "metadata"; every field and the values it accepts are listed below.
# Media references go in metadata.content as {type, <type>: {url}, role}. Images and reference audio take a URL
# or a base64 data: URI (the whole request is capped at 24 MB); reference videos must be URLs. First/last frame
# and reference media cannot be mixed in one request.
curl "https://router-api.0g.ai/v1/videos" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-d '{
"model": "bytedance/seedance-2.0-fast-mature",
"prompt": "A cat surfing a wave at sunset",
"seconds": 5,
"metadata": {
"resolution": "720p",
"ratio": "adaptive",
"generate_audio": true,
"return_last_frame": true,
"watermark": false
}
}'
# Response: {"id": "v0_426354818031858", "status": "queued", "provider_address": "0x..."}
# 2. Poll until status is "completed". Generation takes minutes โ 3-5s is a sane interval. The poll answers
# 200 and reports the job's own status, so a failure arrives as 200 + {"status":"failed"}, NOT as an error
# code. The SUBMIT response echoes what you sent; the POLL response reports what was actually rendered โ so
# reconcile against the poll. Which fields carry that answer depends on the upstream:
# usage.output_video_duration when the provider reported a duration, size/seconds on some providers and not
# others. Read what is present rather than assuming a particular field.
curl "https://router-api.0g.ai/v1/videos/<VIDEO_ID>" \
-H "Authorization: Bearer <YOUR_API_KEY>"
# 3. Download the finished file. This is where 409 / 424 / 429 live: 409 = not ready yet, 429 = too many
# concurrent downloads (both retryable), 424 = the job failed and has no output (terminal).
curl "https://router-api.0g.ai/v1/videos/<VIDEO_ID>/content" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-o video.mp4
| ์ ๋ ฅ | ์ญํ | ์ ํ | ์ต๋ | ์๋๋ฆฌ์ค |
|---|---|---|---|---|
| ์ฒซ ํ๋ ์ | first_frame | ์ด๋ฏธ์ง | 1 | ์ฒซ / ๋ง์ง๋ง ํ๋ ์ |
| ๋ง์ง๋ง ํ๋ ์์ฒซ ํ๋ ์ ํ์ | last_frame | ์ด๋ฏธ์ง | 1 | ์ฒซ / ๋ง์ง๋ง ํ๋ ์ |
| ์ฐธ์กฐ ์ด๋ฏธ์ง | reference_image | ์ด๋ฏธ์ง | 9 | ๋ฉํฐ๋ชจ๋ฌ ์ฐธ์กฐ |
| ์ฐธ์กฐ ๋์์ | reference_video | ๋์์ | 3 | ๋ฉํฐ๋ชจ๋ฌ ์ฐธ์กฐ |
| ์ฐธ์กฐ ์ค๋์ค | reference_audio | ์ค๋์ค | 3 | ๋ฉํฐ๋ชจ๋ฌ ์ฐธ์กฐ |
Media references go in metadata.content as {type, <type>: {url}, role}. Images and reference audio take a URL or a base64 data: URI (the whole request is capped at 24 MB); reference videos must be URLs. First/last frame and reference media cannot be mixed in one request.
| ํ๋ | ๊ฐ | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|
| metadata.resolution | 480p ยท 720p | 720p |
| metadata.ratio | adaptive ยท 16:9 ยท 4:3 ยท 1:1 ยท 3:4 ยท 9:16 ยท 21:9 | adaptive |
| seconds | 4โ15s | 5 |
| metadata.generate_audio | true ยท false | true |
| metadata.return_last_frame | true ยท false | true |
| metadata.watermark | true ยท false | false |
| metadata.seed | ์์์ ์ ์ | โ |
Billed by the tokens the vendor reports; jobs with a reference video use the lower video-input rate.
์ ๊ณต์ ๋ผ์ฐํ
X-0G-Provider-* ์์ฒญ ํค๋๋ฅผ ์ฌ์ฉํ์ฌ ์์ฒญ์ ์ฒ๋ฆฌํ ์ ๊ณต์๋ฅผ ์ ์ดํฉ๋๋ค.
X-0G-Provider-Address๋ ์ ๊ณต์๋ฅผ ๊ณ ์ ํ๊ณ , X-0G-Provider-Identity๋ ํด๋น ์ ๊ณต์์ ์
์คํธ๋ฆผ ์ค ์ด๋ ๊ฒ์ ํตํด ๋ผ์ฐํ
ํ ์ง ๊ณ ์ ํฉ๋๋ค. ๋ ๊ฐ ๋ชจ๋ GET /v1/providers์ address ๋ฐ provider_identity ํ๋์์ ๊ฐ์ ธ์ต๋๋ค. ์ด ๋์ ํจ๊ป ์ฌ์ฉํ๋ฉด ํน์ ์ ๊ณต์์ ํน์ ์
์คํธ๋ฆผ ํ๋๋ฅผ ์ง์ ํฉ๋๋ค. ๋ ๋ค ๋ณด๋ด์ง ์์ผ๋ฉด ๋ผ์ฐํฐ๋ ์ด์ ๊ณผ ๋๊ฐ์ด ๊ฐ๊ฒฉ๊ณผ ์ํ์ ๋ฐ๋ผ ์ ํํฉ๋๋ค.
curl "https://router-api.0g.ai/v1/videos" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-H "X-0G-Provider-Address: <PROVIDER_ADDRESS>" \
-H "X-0G-Provider-Identity: <UPSTREAM>" \
-H "X-0G-Provider-Sort: latency" \
-H "X-0G-Provider-Allow-Fallbacks: true" \
-d '{
"model": "bytedance/seedance-2.0-fast-mature",
"prompt": "A cat surfing a wave at sunset",
"seconds": 6
}'