docs.badge
docs.title
docs.subtitle
docs.auth.title
docs.auth.descriptionAuthorization header:
Authorization: Bearer <YOUR_API_KEY>docs.auth.note 401 Unauthorized.
POST
https://seedream45ai.org/api/generate
docs.generate.title
docs.generate.description1 task_iddocs.generate.description2
| docs.table.parameter | docs.table.type | docs.table.required | docs.table.description |
|---|---|---|---|
| prompt | string (max 1500 chars) | docs.table.yes | docs.params.prompt |
| aspectRatio | string | docs.table.yes | docs.params.aspect_ratio |
| quality | string (basic | high) | docs.table.yes | docs.params.quality |
| imageUrls | string[] | docs.table.no | docs.params.image_urls |
docs.generate.creditTitle
docs.generate.creditDescription
| docs.table.preset | docs.table.creditsDeducted |
|---|---|
| docs.presets.textBasic | 12 |
| docs.presets.textHigh | 18 |
| docs.presets.editBasic | 18 |
| docs.presets.editHigh | 24 |
| docs.presets.burst | 48 |
docs.samples.request
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": []
}docs.samples.response
{
"code": 200,
"message": "success",
"data": {
"task_id": "sd45_b83bf7c0c51a4c71"
}
}GET / POST
https://seedream45ai.org/api/status
docs.status.title
docs.status.description
| docs.table.parameter | docs.table.type | docs.table.required | docs.table.description |
|---|---|---|---|
| task_id | string | docs.table.yes | docs.params.task_id |
| docs.table.field | docs.table.description |
|---|---|
| task_id | docs.fields.task_id |
| status | docs.fields.status |
| request | docs.fields.user_request |
| response | docs.fields.user_response |
| consumed_credits | docs.fields.consumed_credits |
| error_message | docs.fields.error_message |
| created_at | docs.fields.created_at |
docs.samples.request
GET https://seedream45ai.org/api/status?task_id=sd45_b83bf7c0c51a4c71
Authorization: Bearer <YOUR_API_KEY>docs.samples.response
{
"code": 200,
"message": "success",
"data": {
"task_id": "sd45_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"
}
}docs.errors.title
401 Unauthorized- docs.errors.401402 Payment Required- docs.errors.402429 Too Many Requests- docs.errors.429500- docs.errors.500