Seedream 5.5 AI Image Generator
POST /api/v1/seedream-5-5-ai-image-generator/submit
Required inputs
Required inputs depend on the selected mode. Check the mode rules below before submitting.
Edit the sample inputs for your own task before submitting.
# 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": ... }Parameters and input rules14 fields
| 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" · Default: "text-to-image" |
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 length: 5000 |
imageUrl | string | No | Not specified | Optional input image URL. When provided, the task runs in image operation mode. No additional field constraint listed. |
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: 1 · Maximum items: 10 |
resolution | string | No | "2k" | Output resolution tier. Values: "1k", "1.5k", "2k", "3k", "auto" · Default: "2k" |
width | number | No | 1024 | Output width in pixels. Used when resolution is not selected. Default: 1024 · Minimum: 240 · Maximum: 8595 · Whole numbers only |
height | number | No | 1024 | Output height in pixels. Used when resolution is not selected. Default: 1024 · Minimum: 240 · Maximum: 8595 · Whole numbers only |
outputFormat | string | No | "png" | Output image format. Values: "png", "jpeg" · Default: "png" |
watermark | string | No | "false" | Whether to add a watermark. Values: "false", "true" · Default: "false" |
background | string | No | "auto" | Output background mode. Values: "auto", "transparent", "opaque" · Default: "auto" |
optimizePromptMode | string | No | "standard" | Prompt optimization mode. Values: "standard" · Default: "standard" |
safetyIdentifier | string | No | Not specified | Optional end-user identifier. Minimum length: 0 · Maximum length: 64 |
maxImages | number | No | 30 | Maximum number of layers including the base image. Default: 30 · Minimum: 2 · Maximum: 100 · Whole numbers only |
textRecognition | string | No | "false" | Whether to recognize text in layers. Values: "false", "true" · Default: "false" |
Mode-specific fields & media limits
Text To Image rules
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 5 characters; maximum 5000 characters |
resolution | Values: "1k", "1.5k", "2k", "3k"; mode default: "2k" |
width | Range: 240 to 8595; Default: 1024 |
height | Range: 240 to 8595; Default: 1024 |
outputFormat | Values: "png", "jpeg"; Default: "png" |
watermark | Values: "false", "true"; Default: "false" |
background | Values: "auto", "transparent", "opaque"; Default: "auto" |
optimizePromptMode | Values: "standard"; Default: "standard" |
safetyIdentifier | Maximum characters: 64 |
Image Edit rules
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 5 characters; maximum 5000 characters |
resolution | Values: "1k", "1.5k", "2k", "3k"; mode default: "2k" |
imageUrls | Image input; up to 10 items |
width | Range: 240 to 8595; Default: 1024 |
height | Range: 240 to 8595; Default: 1024 |
outputFormat | Values: "png", "jpeg"; Default: "png" |
watermark | Values: "false", "true"; Default: "false" |
background | Values: "auto", "transparent", "opaque"; Default: "auto" |
optimizePromptMode | Values: "standard"; Default: "standard" |
safetyIdentifier | Maximum characters: 64 |
Layer Decomposition rules
| Control | Mode-specific rule |
|---|---|
prompt | Optional; minimum 0 characters; maximum 2000 characters |
resolution | Values: "auto", "1k", "1.5k", "2k", "3k"; mode default: "auto" |
imageUrl | Image input; up to 1 items |
maxImages | Range: 2 to 100; Default: 30 |
textRecognition | Values: "false", "true"; Default: "false" |
outputFormat | Values: "png", "jpeg"; Default: "png" |
watermark | Values: "false", "true"; Default: "false" |
optimizePromptMode | Values: "standard"; Default: "standard" |
safetyIdentifier | Maximum characters: 64 |
Retrieve the result
Save taskId from the accepted submission and send it to this endpoint:
POST /api/v1/seedream-5-5-ai-image-generator/query
Use the same Bearer API key. On completion, read the imageUrl result field.
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://..." } }