Midjourney AI Image Generator
POST /api/v1/midjourney-ai-image-generator/submit
prompt is required.
Required inputs
promptstring- Text prompt describing the image to generate (max 8192 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/midjourney-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","prompt":"A serene mountain observatory above the clouds at sunrise, cinematic wide-angle landscape photography","aspectRatio":"1:1","chaos":0,"quality":"1","stylize":0,"weird":0,"raw":false,"iw":1,"sref":"https://vidmage.ai/assets/images/samples/blue-eyed-woman-sunlight.webp","sw":100,"sv":4,"oref":"https://vidmage.ai/assets/images/samples/blue-eyed-woman-sunlight.webp","ow":100,"tile":false}'
# -> { "success": true, "taskId": "...", "creditsConsumed": ... }Parameters and input rules16 fields
| Field | Type | Required | Default | Meaning and limits |
|---|---|---|---|---|
prompt | string | Yes | Not specified | Text prompt describing the image to generate (max 8192 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: 1 · Maximum length: 8192 |
aspectRatio | string | No | "1:1" | Output aspect ratio. Values: "1:1", "4:3", "3:2", "16:9", "3:4", "2:3", "9:16" · Default: "1:1" |
negativePrompt | string | No | Not specified | Describe content that should not appear in the image. Maximum length: 2000 |
chaos | number | No | 0 | Increase variation and unpredictability. Default: 0 · Minimum: 0 · Maximum: 100 · Multiple of: 1 · Whole numbers only |
quality | string | No | "1" | Rendering quality level. Values: "1", "2", "4" · Default: "1" |
stylize | number | No | 0 | Control the strength of Midjourney styling. Default: 0 · Minimum: 0 · Maximum: 1000 · Multiple of: 1 · Whole numbers only |
weird | number | No | 0 | Control unconventional and experimental aesthetics. Default: 0 · Minimum: 0 · Maximum: 3000 · Multiple of: 1 · Whole numbers only |
raw | boolean | No | false | Reduce automatic styling for more literal prompt control. Default: false |
imageUrl | string | No | Not specified | Optional base image prompt. No additional field constraint listed. |
iw | number | No | 1 | Control the influence of the base image prompt. Requires imageUrl when supplied. Default: 1 · Minimum: 0 · Maximum: 3 · Multiple of: 1 · Requires: imageUrl · Whole numbers only |
sref | string | No | Not specified | Optional style reference image. No additional field constraint listed. |
sw | number | No | 100 | Control the influence of the style reference. Requires sref when supplied. Default: 100 · Minimum: 0 · Maximum: 1000 · Multiple of: 1 · Requires: sref · Whole numbers only |
sv | number | No | 4 | Style reference model version. Requires sref when supplied. Default: 4 · Minimum: 1 · Maximum: 6 · Multiple of: 1 · Requires: sref · Whole numbers only |
oref | string | No | Not specified | Optional Omni reference image. No additional field constraint listed. |
ow | number | No | 100 | Control the influence of the Omni reference. Requires oref when supplied. Default: 100 · Minimum: 1 · Maximum: 1000 · Multiple of: 1 · Requires: oref · Whole numbers only |
tile | boolean | No | false | Create a seamless repeating pattern. Default: false |
Mode-specific fields & media limits
Text To Image rules
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 1 characters; maximum 8192 characters |
aspectRatio | Values: "1:1", "4:3", "3:2", "16:9", "3:4", "2:3", "9:16"; mode default: "1:1" |
negativePrompt | Maximum characters: 2000 |
chaos | Range: 0 to 100; Default: 0 |
quality | Values: "1", "2", "4"; Default: "1" |
stylize | Range: 0 to 1000; Default: 0 |
weird | Range: 0 to 3000; Default: 0 |
raw | Default: false |
imageUrl | No additional field constraint listed. |
iw | Range: 0 to 3; Default: 1 |
sref | No additional field constraint listed. |
sw | Range: 0 to 1000; Default: 100 |
sv | Range: 1 to 6; Default: 4 |
oref | No additional field constraint listed. |
ow | Range: 1 to 1000; Default: 100 |
tile | Default: false |
Retrieve the result
Save taskId from the accepted submission and send it to this endpoint:
POST /api/v1/midjourney-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/midjourney-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://..." } }