Seedream 5.5 AI Image Generator API documentation
Generate images with Seedream 5.5 AI Image Generator in VidMage. Supports both text and image input modes.
Endpoints
| Contract item | Value |
|---|---|
| Capability | seedream-5-5-ai-image-generator |
| Submit | POST https://vidmage.ai/api/v1/seedream-5-5-ai-image-generator/submit |
| Query | POST https://vidmage.ai/api/v1/seedream-5-5-ai-image-generator/query |
| Task identifier | taskId |
| Result field | imageUrl |
Authenticate with Authorization: Bearer YOUR_API_KEY. Save the task identifier and query the same capability. Use a stable Idempotency-Key for submission retries.
Product guide: Seedream 5.5 API
Parameters and input rules
| Field | Type | Required | Default | Meaning and limits |
|---|---|---|---|---|
mode | string | No | "text-to-image" | Explicit operation selector. Omit to infer from the supplied inputs. Values: "text-to-image", "image-edit", "layer-decomposition" |
prompt | string | No | Not specified | Text prompt describing the image to generate (max 5000 chars). Optional when the selected image operation is fully defined by its source image. For an unspecified character or figurine, use an original non-branded character with no logos and no resemblance to existing copyrighted superheroes; preserve any character the user explicitly names. Maximum characters: 5000 |
imageUrl | string | No | Not specified | Optional input image URL. When provided, the task runs in image operation mode. |
imageUrls | string[] | No | Not specified | Ordered input image URLs for image editing mode. The prompt can reference them by their one-based order. Up to 30 MB per file. Minimum items: 1Maximum items: 10 |
resolution | string | No | "2k" | Output resolution tier. Values: "1k", "1.5k", "2k", "3k", "auto" |
width | integer | No | 1024 | Output width in pixels. Used when resolution is not selected. Minimum: 240Maximum: 8595 |
height | integer | No | 1024 | Output height in pixels. Used when resolution is not selected. Minimum: 240Maximum: 8595 |
outputFormat | string | No | "png" | Output image format. Values: "png", "jpeg" |
watermark | string | No | "false" | Whether to add a watermark. Values: "false", "true" |
background | string | No | "auto" | Output background mode. Values: "auto", "transparent", "opaque" |
optimizePromptMode | string | No | "standard" | Prompt optimization mode. Values: "standard" |
safetyIdentifier | string | No | Not specified | Optional end-user identifier. Minimum characters: 0Maximum characters: 64 |
maxImages | integer | No | 30 | Maximum number of layers including the base image. Minimum: 2Maximum: 100 |
textRecognition | string | No | "false" | Whether to recognize text in layers. Values: "false", "true" |
text to image
Input media selects the mode. Use the VidMage field names and mode limits below together with the parameter table.
| Control | Mode-specific rule |
|---|---|
prompt | Required; 5–5000 characters. |
aspectRatio | Not used in this mode. |
resolution | Values: "1k", "1.5k", "2k", "3k". Default: 2k. |
width | Output width in pixels. Used when resolution is not selected. Minimum: 240Maximum: 8595Default: 1024 |
height | Output height in pixels. Used when resolution is not selected. Minimum: 240Maximum: 8595Default: 1024 |
outputFormat | Output image format. Values: "png", "jpeg"Default: "png" |
watermark | Whether to add a watermark. Values: "false", "true"Default: "false" |
background | Output background mode. Values: "auto", "transparent", "opaque"Default: "auto" |
optimizePromptMode | Prompt optimization mode. Values: "standard"Default: "standard" |
safetyIdentifier | Optional end-user identifier. Minimum characters: 0Maximum characters: 64 |
image edit
Input media selects the mode. Use the VidMage field names and mode limits below together with the parameter table.
| Control | Mode-specific rule |
|---|---|
prompt | Required; 5–5000 characters. |
aspectRatio | Not used in this mode. |
resolution | Values: "1k", "1.5k", "2k", "3k". Default: 2k. |
imageUrls | Up to 10 files. Maximum 30 MB per file. Formats: jpg, jpeg, png, webp. |
| References | At least one reference input is required. |
width | Output width in pixels. Used when resolution is not selected. Minimum: 240Maximum: 8595Default: 1024 |
height | Output height in pixels. Used when resolution is not selected. Minimum: 240Maximum: 8595Default: 1024 |
outputFormat | Output image format. Values: "png", "jpeg"Default: "png" |
watermark | Whether to add a watermark. Values: "false", "true"Default: "false" |
background | Output background mode. Values: "auto", "transparent", "opaque"Default: "auto" |
optimizePromptMode | Prompt optimization mode. Values: "standard"Default: "standard" |
safetyIdentifier | Optional end-user identifier. Minimum characters: 0Maximum characters: 64 |
layer decomposition
Input media selects the mode. Use the VidMage field names and mode limits below together with the parameter table.
| Control | Mode-specific rule |
|---|---|
prompt | Optional; 0–2000 characters. |
aspectRatio | Not used in this mode. |
resolution | Values: "auto", "1k", "1.5k", "2k", "3k". Default: auto. |
imageUrl | Up to 1 files. Maximum 30 MB per file. Formats: jpg, jpeg, png, webp, bmp, tiff, gif. |
| References | At least one reference input is required. |
maxImages | Maximum number of layers including the base image. Minimum: 2Maximum: 100Default: 30 |
textRecognition | Whether to recognize text in layers. Values: "false", "true"Default: "false" |
outputFormat | Base image output format. Layers are always PNG. Values: "png", "jpeg"Default: "png" |
watermark | Whether to add a watermark. Values: "false", "true"Default: "false" |
optimizePromptMode | Prompt optimization mode. Values: "standard"Default: "standard" |
safetyIdentifier | Optional end-user identifier. Minimum characters: 0Maximum characters: 64 |
Example request
{
"imageUrl": "https://vidmage.ai/assets/images/samples/blue-eyed-woman-sunlight.webp",
"mode": "layer-decomposition",
"prompt": "A carefully arranged product still life with clear foreground, middle-ground, and background objects",
"resolution": "auto",
"maxImages": 30,
"textRecognition": "false",
"outputFormat": "png",
"watermark": "false",
"optimizePromptMode": "standard"
}# Set VIDMAGE_IDEMPOTENCY_KEY to a unique value for this task; preserve it for transport retries.
curl -X POST "https://vidmage.ai/api/v1/seedream-5-5-ai-image-generator/submit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
-H "Content-Type: application/json" \
-d '{"imageUrl":"https://vidmage.ai/assets/images/samples/blue-eyed-woman-sunlight.webp","mode":"layer-decomposition","prompt":"A carefully arranged product still life with clear foreground, middle-ground, and background objects","resolution":"auto","maxImages":30,"textRecognition":"false","outputFormat":"png","watermark":"false","optimizePromptMode":"standard"}'
# -> { "success": true, "taskId": "...", "creditsConsumed": ... }Task results and recovery
URL of the generated image. Layer decomposition also returns structured layer metadata when available. Read imageUrl from the completed query response. Preserve taskId while the task is running.
curl -X POST "https://vidmage.ai/api/v1/seedream-5-5-ai-image-generator/query" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "taskId": "TASK_ID_FROM_SUBMIT" }'
# -> { "success": true, "data": { "status": "...", "imageUrl": "https://..." } }Submission and task queries report the available task and usage information. A timeout is not a confirmed failure. Recover the existing task instead of resubmitting.
For face selection and error recovery, follow Task lifecycle. MCP uses the normalized taskId argument in get_task_result, including capabilities whose REST identifier is requestId.
Credits
| Component / option | Rate | Minimum |
|---|---|---|
| 1k | 10 credits / generation | — |
| 1.5k | 10 credits / generation | — |
| 2k | 15 credits / generation | — |
| 3k | 30 credits / generation | — |
| auto | 10 credits / generation | — |
Base charge is per generation at the selected resolution.
Use the Playground or the MCP credit estimator for your exact inputs. Credits and billing.
