Seedream AI Image Generator
POST /api/v1/seedream-ai-image-generator/submit
prompt is required.
Required inputs
promptstring- Text prompt describing the image to generate (max 2000 chars). 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.
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-ai-image-generator/submit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
-H "Content-Type: application/json" \
-d '{"prompt":"Luxury perfume bottle on black stone with soft mist, dramatic studio lighting, premium advertising photography","width":2048,"height":2048,"sequentialImageGeneration":"disabled","maxImages":1}'
# -> { "success": true, "taskId": "...", "creditsConsumed": ... }Parameters and input rules8 fields
| Field | Type | Required | Default | Meaning and limits |
|---|---|---|---|---|
prompt | string | Yes | Not specified | Text prompt describing the image to generate (max 2000 chars). 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. Minimum length: 5 · Maximum length: 2000 |
imageUrl | string | No | Not specified | Optional input image URL. When provided, the task runs in image edit 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. Minimum items: 1 · Maximum items: 10 |
width | number | No | 2048 | Output width in pixels; ignored when a resolution tier is selected. Default: 2048 · Minimum: 512 · Maximum: 8192 · Multiple of: 8 · Whole numbers only |
height | number | No | 2048 | Output height in pixels; ignored when a resolution tier is selected. Default: 2048 · Minimum: 512 · Maximum: 8192 · Whole numbers only |
sequentialImageGeneration | string | No | "disabled" | Allow the model to generate a coherent image sequence. Values: "disabled", "auto" · Default: "disabled" |
maxImages | number | No | 1 | Maximum number of images to generate in a sequence. Default: 1 · Minimum: 1 · Maximum: 15 · Multiple of: 1 · Whole numbers only |
resolution | string | No | Not specified | Optional output resolution tier; overrides width and height. Values: "2k", "4k" |
Mode-specific fields & media limits
Text To Image rules
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 5 characters; maximum 2000 characters |
width | Range: 512 to 8192; Default: 2048 |
height | Range: 512 to 8192; Default: 2048 |
sequentialImageGeneration | Values: "disabled", "auto"; Default: "disabled" |
maxImages | Range: 1 to 15; Default: 1 |
resolution | Values: "2k", "4k" |
Image Edit rules
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 5 characters; maximum 2000 characters |
imageUrls | Image input; up to 10 items |
width | Range: 512 to 8192; Default: 2048 |
height | Range: 512 to 8192; Default: 2048 |
sequentialImageGeneration | Values: "disabled", "auto"; Default: "disabled" |
maxImages | Range: 1 to 15; Default: 1 |
resolution | Values: "2k", "4k" |
Retrieve the result
Save taskId from the accepted submission and send it to this endpoint:
POST /api/v1/seedream-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-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://..." } }