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.
Quick Start
Send a request to the Seedream 4.5 API:
| 1 | curl -X POST https://apiin.one/api/v1/images/generations \ |
| 2 | -H "Authorization: Bearer YOUR_API_KEY" \ |
| 3 | -H "Content-Type: application/json" \ |
| 4 | -d '{ |
| 5 | "model": "seedream/4.5-text-to-image", |
| 6 | "prompt": "A serene mountain lake at sunrise with reflections, photorealistic", |
| 7 | "aspect_ratio": "16:9", |
| 8 | "quality": "high" |
| 9 | }' |
API Endpoint
/api/v1/images/generationsSend a POST request with your API key to generate content using Seedream 4.5.
Headers
Bearer YOUR_API_KEY
application/json
Body Parameters
Model identifier: seedream-4-5
Text description of the image
Sub-model: seedream/4.5-text-to-image or seedream/4.5-edit Defaults to seedream/4.5-text-to-image.
Aspect ratio: 1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9 Defaults to 1:1.
Quality level: basic or high Defaults to basic.
Array of image URLs for edit mode (required for seedream/4.5-edit)
Example Request
| 1 | { |
| 2 | "model": "seedream/4.5-text-to-image", |
| 3 | "prompt": "A serene mountain lake at sunrise with reflections, photorealistic", |
| 4 | "aspect_ratio": "16:9", |
| 5 | "quality": "high" |
| 6 | } |
Example Response
Successful task creation response.
| 1 | { |
| 2 | "code": 200, |
| 3 | "message": "success", |
| 4 | "data": { |
| 5 | "task_id": "n30xxxx_seed", |
| 6 | "status": "IN_PROGRESS" |
| 7 | } |
| 8 | } |
Check Task Status
For asynchronous tasks, poll the status endpoint to check when your task is complete:
/api/v1/tasks/{task_id}Returns the current status of a generation task. Poll until status is 'completed' or 'failed'.
| 1 | curl https://apiin.one/api/v1/tasks/task_abc123 \ |
| 2 | -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:
Error Codes
| 1 | { |
| 2 | "error": { |
| 3 | "code": 400, |
| 4 | "message": "Invalid parameters", |
| 5 | "type": "invalid_request" |
| 6 | } |
| 7 | } |
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?
Ready to use Seedream 4.5?
Get Your API Key →