Generate images from a text prompt with Seedream 5.5. Submit an asynchronous generation request and retrieve the result from the task status endpoint or a webhook.
Developer API pricing
Provider: SeeAPI
USD estimate: $0.0037 / credit · Estimated equivalent, not an additional charge.
1K / 1.5K: 4.9 credits/gen (≈ $0.018/gen)
2K: 8.5 credits/gen (≈ $0.032/gen)
/v1/generationsA new, stable key for each generation request. Reuse it only when retrying the same request body.
seedream55-t2i-example-001The model ID shown in the selected model's API documentation.
seedream-5-5seedream-5-5seedream-5-5Text to Image. Use the Endpoint ID shown in this model's API documentation.
text-to-imagetext-to-imagetext-to-imageOptional public Provider ID. Omit it to use the Endpoint default Provider (seeapi).
seeapiseeapiseeapiThe input object contains the prompt and optional image-generation controls for this endpoint.
Provider parameters
seeapiDefault ProviderText describing the image to generate.
A cinematic city at night with warm window lightsControls the output aspect ratio.
1:14:33:416:99:162:33:221:91:116:9Selects the output resolution tier.
1K1.5K2K2K2KControls background handling.
autotransparentopaqueautoautoSelects the output image format.
pngjpegpngpngEnables the content safety check for this request.
falsefalseAn absolute HTTPS URL that receives the terminal generation Webhook.
https://client.example.com/webhooks/seeapiThe asynchronous generation envelope returned by SeeAPI.
Use this identifier to query the task status endpoint.
task_xxxThe model ID used for the generation.
seedream-5-5The endpoint ID used for the generation.
text-to-imageThe public Provider ID used for the generation.
seeapiseeapi: SeeAPIseeapiCurrent task state. The initial response is `processing`; query until a terminal state is returned.
processingprocessingEstimated public credits for the request.
8.5Public credits consumed by the task.
0Public credits returned after a refundable failure or adjustment.
0Timestamp when the generation was created.
2026-08-18T10:00:00ZTimestamp of the latest task update.
2026-08-18T10:00:00ZWhether the response replays an earlier request with the same idempotency key.
falseThe asynchronous generation envelope returned by SeeAPI.
Use this identifier to query the task status endpoint.
task_xxxThe model ID used for the generation.
seedream-5-5The endpoint ID used for the generation.
text-to-imageThe public Provider ID used for the generation.
seeapiseeapi: SeeAPIseeapiCurrent task state. The initial response is `processing`; query until a terminal state is returned.
processingprocessingEstimated public credits for the request.
8.5Public credits consumed by the task.
0Public credits returned after a refundable failure or adjustment.
0Timestamp when the generation was created.
2026-08-18T10:00:00ZTimestamp of the latest task update.
2026-08-18T10:00:00ZWhether the response replays an earlier request with the same idempotency key.
falseInvalid JSON, parameters, Schema, or API Policy
Invalid API Key or authentication failed
Insufficient credits
The current request is not allowed
Model, Endpoint, or task not found
Idempotency conflict or the same request is still being created
Request body is too large
Too many requests
Service temporarily unavailable
After submitting a task, use the unified query endpoint to check progress and retrieve results:
For production workloads, provide `callback_url` and use the task status endpoint as a fallback when the webhook is delayed.
Manage the secret used to verify generation webhook signatures. Callback URLs are supplied when you create each generation.
Callback URL per generation.
const response = await fetch("https://api.seeapi.com/v1/generations", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Idempotency-Key": "seedream55-t2i-example-001",
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "seedream-5-5",
"endpoint": "text-to-image",
"provider": "seeapi",
"input": {
"prompt": "A cinematic city at night with warm window lights",
"aspect_ratio": "16:9",
"resolution": "2K",
"background": "auto",
"output_format": "png",
"nsfw_checker": false
},
"callback_url": "https://client.example.com/webhooks/seeapi"
})
});
const result = await response.json();{
"generation": {
"id": "task_xxx",
"model": "seedream-5-5",
"endpoint": "text-to-image",
"provider": "seeapi",
"status": "processing",
"estimated_credits": 8.5,
"consumed_credits": 0,
"refunded_credits": 0,
"created_at": "2026-08-18T10:00:00Z",
"updated_at": "2026-08-18T10:00:00Z"
},
"idempotent": false
}