Seedream 4.5 - image generation API

Seedream 4.5 API

active

Seedream 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
1curl -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

POST/api/v1/images/generations

Send a POST request with your API key to generate content using Seedream 4.5.

Headers

Body ParametersJSON
Authorization:string

Bearer YOUR_API_KEY

Content-Type:string

application/json

Body Parameters

Body ParametersJSON
model:string

Model identifier: seedream-4-5

prompt:string

Text description of the image

model:optional string

Sub-model: seedream/4.5-text-to-image or seedream/4.5-edit Defaults to seedream/4.5-text-to-image.

aspect_ratio:optional string

Aspect ratio: 1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9 Defaults to 1:1.

quality:optional string

Quality level: basic or high Defaults to basic.

image_urls:optional array

Array of image URLs for edit mode (required for seedream/4.5-edit)

Example Request

json
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:

GET/api/v1/tasks/{task_id}

Returns the current status of a generation task. Poll until status is 'completed' or 'failed'.

bash
1curl 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:

API-PlaygroundPOST

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?

1.ByteDance's latest image generation technology
2.Both text-to-image and image editing
3.Webhook support for async workflows
4.Basic and high quality modes

Ready to use Seedream 4.5?

Get Your API Key →