Seedream 5 ์ด๋ฏธ์ง API
API ๋ฌธ์
์ด ์๋ํฌ์ธํธ๋ก Seedream 5 ์ด๋ฏธ์ง๋ฅผ ๋น๋๊ธฐ ์์ฑํ ์ ์์ต๋๋ค. ํฌ๋ ๋ง์ ํ์ง๊ณผ ๋ชจ๋์ ๋ฐ๋ผ ๋ฌ๋ผ์ง๋๋ค.
์ธ์ฆ
๋ชจ๋ ์์ฒญ์ API ํค๋ฅผ ํค๋์ ํฌํจํด์ผ ํฉ๋๋ค. Authorization header:
Authorization: Bearer <YOUR_API_KEY>๋๋ฝ๋๊ฑฐ๋ ์ ํจํ์ง ์์ ํค๋ ๋ฐํ๋ฉ๋๋ค. 401 Unauthorized.
https://seedream45ai.org/api/generate
์์ฑ ์์ ์์ฑ
์๋ก์ด Seedream 5 ์์
์ ์ ์ถํฉ๋๋ค. ํธ์ถ์ ๋ ๋๋ง์ด ๋น๋๊ธฐ์ ์ผ๋ก ์๋ฃ๋๋ ๋์ ์ฆ์ task_id ๋ฅผ ๋ฐํํฉ๋๋ค.
| ๋งค๊ฐ๋ณ์ | ์ ํ | ํ์ | ์ค๋ช |
|---|---|---|---|
| prompt | string (max 1500 chars) | ์ | ๊ธฐ๋ณธ ํ ์คํธ ์ค๋ช (์ต๋ 1500์). ๋ชจ๋ ์์ฒญ์ ํ์์ ๋๋ค. |
| aspectRatio | string | ์ | ์ง์ ๋น์จ: 1:1 ยท 3:4 ยท 4:3 ยท 9:16 ยท 16:9. |
| quality | string (basic | high) | ์ | basic(๋น ๋ฅธ 2K) ๋๋ high(๊ณ ํ์ง 4K). |
| imageUrls | string[] | ์๋์ | ์ ํ์ ์ฐธ์กฐ ์ด๋ฏธ์ง. ํธ์ง ๋ชจ๋์์๋ ํ์์ ๋๋ค. |
ํฌ๋ ๋ง ์๋น
ํฌ๋ ๋ง์ ์์ ์ด ์์ฑ๋ ๋ ์ฐจ๊ฐ๋ฉ๋๋ค. ์คํจํ ์์ ์ ์๋์ผ๋ก ํ๋ถ๋ฉ๋๋ค.
| ์ฌ์ ์ค์ | ์ฐจ๊ฐ๋ ํฌ๋ ๋ง |
|---|---|
| ํ ์คํธ ์ด๋ฏธ์ง ์์ฑ ยท Basic | 12 |
| ํ ์คํธ ์ด๋ฏธ์ง ์์ฑ ยท High | 18 |
| ์ฐธ์กฐ ์ด๋ฏธ์ง ํธ์ง ยท Basic | 18 |
| ์ฐธ์กฐ ์ด๋ฏธ์ง ํธ์ง ยท High | 24 |
| 4์ฅ ์ฐ์ ์์ฑ(๋จ์ผ ํธ์ถ) | 48 |
์์ฒญ ์์
POST https://seedream45ai.org/api/generate
Authorization: Bearer <YOUR_API_KEY>
Content-Type: application/json
{
"prompt": "Cinematic photo of an obsidian smartwatch on a marble plinth, volumetric lighting",
"aspectRatio": "4:3",
"quality": "high",
"imageUrls": []
}์๋ต ์์
{
"code": 200,
"message": "success",
"data": {
"task_id": "sd5_b83bf7c0c51a4c71"
}
}https://seedream45ai.org/api/status
์์ ์ํ ํ์ธ
์ด ์๋ํฌ์ธํธ๋ฅผ ์ฌ์ฉํ์ฌ ์ต์ ๊ธฐ๋ก์ ํด๋งํ์ธ์. ์์ ์ด ์ฌ์ ํ IN_PROGRESS(์งํ ์ค) ์ํ์ผ ๋๋ ์๋ตํ๊ธฐ ์ ์ ๊ณต๊ธ์์๊ฒ ํ ๋ฒ ๋ ์ฟผ๋ฆฌํฉ๋๋ค.
| ๋งค๊ฐ๋ณ์ | ์ ํ | ํ์ | ์ค๋ช |
|---|---|---|---|
| task_id | string | ์ | /generate์์ ๋ฐํ๋ ID. /status ํธ์ถ ์ ์ฟผ๋ฆฌ(?task_id=)๋ก ์ ๋ฌํฉ๋๋ค. |
| ํ๋ | ์ค๋ช |
|---|---|
| task_id | /generate์์ ๋ฐํ๋ ID. |
| status | SUCCESS (์ฑ๊ณต) |
| request | ์ ์ถ๋ ํ์ด๋ก๋์ ์ ๋ฆฌ๋ ๋ณต์ฌ๋ณธ. |
| response | ์ํ๊ฐ SUCCESS์ผ ๋์ ๋ฏธ๋์ด URL ๋ฐฐ์ด. |
| consumed_credits | ์์ ์ ์ฒญ๊ตฌ๋ ํฌ๋ ๋ง (ํ๋ถ ์ 0). |
| error_message | ์ํ๊ฐ FAILED์ผ ๋์ ๊ณต๊ธ์ ์ค๋ฅ ๋ฉ์์ง. |
| created_at | ์์ ์ด ์ ์ฅ๋ UTC ํ์์คํฌํ. |
์์ฒญ ์์
GET https://seedream45ai.org/api/status?task_id=sd5_b83bf7c0c51a4c71
Authorization: Bearer <YOUR_API_KEY>์๋ต ์์
{
"code": 200,
"message": "success",
"data": {
"task_id": "sd5_b83bf7c0c51a4c71",
"status": "SUCCESS",
"request": {
"prompt": "Cinematic photo of an obsidian smartwatch on a marble plinth, volumetric lighting",
"aspectRatio": "4:3",
"quality": "high"
},
"response": [
"https://watch_001.png"
],
"consumed_credits": 12,
"error_message": null,
"created_at": "2025-06-14T05:21:11Z"
}
}์ค๋ฅ ์ฒ๋ฆฌ
401 Unauthorized- API ํค ๋๋ฝ ๋๋ ์ ํจํ์ง ์์.402 Payment Required- ํฌ๋ ๋ง ์์ก์ด ์ฐจ๊ฐ์ก์ ์ถฉ๋นํ ์ ์์.429 Too Many Requests- ํด๋ง ๊ฐ๊ฒฉ ๋๋ ์์ฒญ ์๋๋ฅผ ์ค์ด์ญ์์ค.500- ์ผ์์ ์ธ ๋ฌธ์ ; ์ง์ ๋ฐฑ์คํ๋ฅผ ์ฌ์ฉํ์ฌ ๋ค์ ์๋ํ์ญ์์ค.