Seedream 4.5 API
activeSeedream 4.5 — ByteDance's cutting-edge image generation model. Supports text-to-image and image editing with basic/high quality modes.
ByteDance / KIEimage12 credits/call
Provider
ByteDance / KIE
Pricing
~$0.024 per image (12 credits)
Speed
3–10 seconds
Output
image
Quick Start
Send a request to the Seedream 4.5 API:
bash
curl -X POST https://apiin.one/api/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream/4.5-text-to-image",
"prompt": "A serene mountain lake at sunrise with reflections, photorealistic",
"aspect_ratio": "16:9",
"quality": "high"
}'API Endpoint
POST
/api/v1/images/generationsSend a POST request with your API key to generate content using Seedream 4.5.
Headers
| Header | タイプ | 必須 | 説明 |
|---|---|---|---|
Authorization | string | 必須 | Bearer YOUR_API_KEY |
Content-Type | string | 必須 | application/json |
Body Parameters
| パラメーター | タイプ | 必須 | 説明 |
|---|---|---|---|
model | string | 必須 | Model identifier: "seedream-4-5" |
prompt | string | 必須 | Text description of the image |
model | string | 任意 | Sub-model: "seedream/4.5-text-to-image" or "seedream/4.5-edit" (デフォルト: seedream/4.5-text-to-image) |
aspect_ratio | string | 任意 | Aspect ratio: 1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9 (デフォルト: 1:1) |
quality | string | 任意 | Quality level: "basic" or "high" (デフォルト: basic) |
image_urls | array | 任意 | Array of image URLs for edit mode (required for seedream/4.5-edit) |
Example Request
json
{
"model": "seedream/4.5-text-to-image",
"prompt": "A serene mountain lake at sunrise with reflections, photorealistic",
"aspect_ratio": "16:9",
"quality": "high"
}Example Response
Successful task creation response.
{
"code": 200,
"message": "success",
"data": {
"task_id": "n30xxxx_seed",
"status": "IN_PROGRESS"
}
}Check Task Status
For asynchronous tasks, poll the status endpoint to check when your task is complete:
GET
/api/v1/tasks/{task_id}Returns the current status of a generation task. Poll until status is 'completed' or 'failed'.
bash
curl https://apiin.one/api/v1/tasks/task_abc123 \
-H "Authorization: Bearer aio_your_key"Use Cases
- ✓Generate high-quality images from text descriptions
- ✓Edit existing images with text instructions
- ✓Create product visuals and marketing assets
- ✓Build AI image tools powered by ByteDance technology
API Tester
Test the Seedream 4.5 API directly from your browser:
API プレイグラウンドPOST
Error Codes
{
"error": {
"code": 400,
"message": "Invalid parameters",
"type": "invalid_request"
}
}Frequently Asked Questions
How much does Seedream 4.5 cost?
Each image costs 12 credits (~$0.024), for both text-to-image and image editing modes.
Does Seedream 4.5 support image editing?
Yes. Use the model "seedream/4.5-edit" with image_urls to edit existing images based on text instructions.
What quality levels are available?
Two quality levels: "basic" (standard quality) and "high" (enhanced quality).
Why Use Seedream 4.5 Through API in One?
1ByteDance's latest image generation technology
2Both text-to-image and image editing
3Webhook support for async workflows
4Basic and high quality modes
Ready to use Seedream 4.5?
Get Your API Key →