Skip to main content
POST
Generate image with SeeDream 4.5

Authorizations

Authorization
string
header
required

API key as a bearer token: Authorization: Bearer bpx_live_xxx

Body

application/json
prompt
string
required

Text description of the image to generate.

aspect_ratio
enum<string>
default:1:1

Output aspect ratio.

Available options:
1:1,
4:3,
3:4,
16:9,
9:16,
2:3,
3:2,
21:9,
9:21
max_images
integer
default:1

Ceiling for grouped generation when sequential_image_generation is "auto": the model returns up to this many related images and decides the exact count (not guaranteed to be exactly this many). You are billed per image returned.

Required range: 1 <= x <= 4
num_images
integer
default:1

Number of images to generate.

Required range: 1 <= x <= 4
reference_images
string[]

Optional reference images (up to 9) for image editing and multi-reference composition. Each item is a public image URL, a data URI, raw base64, or an uploaded-file URL from POST /v1/uploads. Omit for text-to-image.

Maximum array length: 9
sequential_image_generation
enum<string>
default:disabled

Set to "auto" to return a group of related images (up to max_images); "disabled" (default) returns a single image.

Available options:
disabled,
auto
size
enum<string>
default:2K

Output resolution.

Available options:
2K,
4K

Response

Job accepted.

id
string

Opaque job id — use it to poll status.

Example:

"img_a1b2c3d4e5f6"

message
string
model
string
status
enum<string>

Lifecycle state. succeeded/failed/timeout are terminal.

Available options:
pending,
starting,
processing,
completing,
succeeded,
failed,
timeout