Featured capabilities
Capability overview
Setup
Existing ModelArk code runs after replacing the base URL,
model and API key. The OpenAI SDK works too (base_url https://api.dreamto.ai/api/v3, with the vendor parameters in extra_body).
Endpoints
Parameters
Pricing
Billed per image, at the unit prices shown in the console:
Cost of a request = input images × input image price + the sum over the output images of the price of the tier each image falls in. In layer decomposition the base image and every layer are billed by their own actual size (
data[].size), so one request can contain both tiers.
Before the call, the balance is checked for the largest number of images the request can return: 1 for image generation and max_images (default 30) for layer decomposition; with an insufficient balance the request returns 402 and the model is not called. Only images that are actually returned are charged; invalid requests and failed generations are not charged.
Quick start
$DREAMTO_API_KEY is your API Key.
Guides
Timeouts
Image generation usually takes 10–60 seconds; a layer decomposition with many layers can take several minutes, so set the client read timeout to at least 300 seconds. If generation times out or fails, an error is returned and the request is not charged.Notes
modelis the DreamTo model nameseedream-5.5, not the Ark model IDdola-seedream-5-5-261028;modelin the response echoesseedream-5.5too.- As with the official API, streaming and image sets are not supported:
stream: trueandsequential_image_generation: autoreturn 400. The official API rejects any value of these two parameters; here the no-op valuesstream: falseandsequential_image_generation: disabledare accepted and ignored, which eases switching from other Seedream models. - Requests with invalid values (size out of range,
jpegwith a transparent background, several images for layer decomposition, and so on) return 400 before the model is called, with an English message in the DreamTo error envelope (see the error examples), and are not charged. - Errors returned by the model (a reference image that cannot be downloaded, content moderation, and so on) keep the official HTTP status and
error.code,error.message,error.paramanderror.type, and are not charged; the request ID is in theX-Request-Idresponse header.

