Skip to main content
POST
Seedream 5.0 Pro API

Parameters and input modes

model and input are required. Keep reference images accessible and unchanged until the task finishes. For preset dimensions, use resolution and aspect_ratio. Supplying size as widthxheight sets the exact output dimensions and overrides both presets.

Use cases

Playground and pricing

Generation is charged per successful image. Layer decomposition counts every returned image, including the base. Reference image fees vary by model.

Try in Playground

Set your parameters and generate an image.

View pricing

Compare standard and fallback prices by resolution.

Authorizations

Authorization
string
header
required

Sign in to APIstable, then create and copy a key from API Key management.

Send this HTTP header with every request:

Replace YOUR_API_KEY with the key you created.

Body

application/json
model
enum<string>
required

The APIstable model ID for this endpoint.

Available options:
seedream-5-0-pro
Example:

"seedream-5-0-pro"

input
Generate or edit images · object
required
callback_url
string<uri>

Optional public HTTPS endpoint for signed completion callbacks; no redirects or private IPs.

Callbacks

POST
{$request.body#/callback_url}Webhook

Body

application/json

When the task succeeds or fails, APIstable sends a JSON POST to the callback_url supplied at creation. Verify the signature and return HTTP 2xx to acknowledge delivery.

Read data.status to determine the generation outcome. Partial success also reports succeeded. data.result.urls lists successful images, which are retained for 14 days. For a failed task, data.result is null and data.message contains the failure reason.

Use X-APIstable-Signature, X-APIstable-Timestamp, and X-APIstable-Event-Id to verify and deduplicate deliveries. See Webhook security.

Webhook payload example

code
integer
required
msg
string
required
Allowed value: "success"
data
object
required

Response

2XX

Webhook acknowledged.

Response

Accepted task. Use task_id to query the task, or receive the result at callback_url.

code
integer
required
msg
string
required
Allowed value: "success"
data
object
required