Skip to content
Home

Midjourney Diffusion

midjourney_diffusion

Midjourney Diffusion uses a diffusion model to generate high-quality images with artistic style control.

MidJourney interface notes

MidJourney endpoints are split into direct generation and secondary editing. Direct generation only requires a prompt and other required fields to create an image. Secondary editing requires an upstream task ID and an image number from a previous task. diffusion is a direct generation endpoint.

Prompt parameters

In the text field, official prompt parameters must be appended to the same string instead of being passed as separate JSON fields. Multiple parameters can be used in one prompt.

Prompt tips

  • Use short, clear, specific descriptions and prioritize what should appear in the image.
  • Use concrete numbers when possible, such as “three cats” instead of “cats”.
  • Use --no to exclude content instead of only describing what you do not want in natural language.
  • Add important details around subject, medium, environment, lighting, color, mood, and composition.

Common control parameters

ParameterMeaningValues and notes
--ar / --aspectAspect ratioSets the output image aspect ratio, for example --ar 16:9. Ratios greater than 2:1 are experimental and may produce unpredictable results.
:: / ::<weight>Multi-prompt and weightsSplits prompt fragments with double colons and optionally adds weights, for example space::2 ship. The total weight must be positive.
{option1,option2}Permutation promptsUses braces to generate multiple prompt variants, for example a {red,green,yellow} bird. Each generated prompt is billed separately.
--v / --versionModel versionUse --v 8.1. Examples and requests in these docs use --v 8.1 consistently.
--iwImage weightControls how strongly image prompts affect the result relative to text prompts. The default is 1.
--draftDraft modeEnables faster draft generation. Availability depends on the current model capability.
--noNegative promptSpecifies content that should not appear, for example --no plants.
--quality / --qQuality and render timeControls render effort and GPU usage. Common values include 0.25, 0.5, and 1; some versions support 2.
--repeat / --rRepeat generationCreates multiple tasks from the same prompt. The official range is 1-40.
--seedSeedSpecifies an integer from 0-4294967295. The same prompt and seed usually produce similar results.
--stopEarly stopStops the task at a percentage from 10-100. Lower values usually create blurrier results with fewer details.
--relax / --fast / --turboGeneration speedOverrides the current setting and runs the current task in slow, fast, or turbo mode.
--stylize / --sStylizationControls the strength of the default aesthetic algorithm. The default is usually 100; common range is 0-1000.
--chaos / --cDiversityControls variation and unpredictability, from 0-100. Higher values create more divergent results.
--weird / --wWeirdnessExplores more unusual aesthetics. Common range is 0-3000.
--styleStyle modeThe main model commonly uses --style raw to reduce default beautification. Niji 5 can use cute, expressive, original, or scenic.
--expCreative styleRange 0-100. Higher values usually make images more detailed, lively, and creative.
--tileTileGenerates seamless repeatable patterns.

Image and style reference parameters

ParameterMeaningValues and notes
--sref <image URL|style code|random>Style referenceReferences the visual style of an image or style code. Multiple sources can be combined, for example --sref URL1::2 URL2::1.
--swStyle reference weightControls style reference strength, from 0-1000. The default is usually 100. --sw is not compatible with Moodboards.
--svStyle reference versionSelects the style reference algorithm version. Availability depends on the current model capability.
--cref <image URL>Character referenceKeeps character features from the reference image. Availability depends on the current model capability.
--cwCharacter reference weightControls how much character detail is preserved, from 0-100. --cw 0 focuses more on the face; --cw 100 tries to preserve face, hair, clothing, and more details.
--oref <image URL>Omni referenceKeeps consistency for the person, character, object, or vehicle in the reference image. Only one omni-reference image can be used at a time.
--owOmni reference weightControls omni-reference strength, from 1-1000. Higher values increase consistency, but very high values may make results unstable.

Examples

  • A cinematic sunset landscape, ultra detailed --ar 16:9 --v 8.1 --s 250 --seed 1234
  • A clean product photo of a glass teapot --oref https://example.com/object.png --ow 300 --sref https://example.com/style.png --sw 120 --no text, watermark

Examples in this documentation use --v 8.1. If a parameter does not take effect, rely on the current model capability and platform response.

POST /v1/queue/midjourney_diffusion # Create task
GET /v1/queue/midjourney_diffusion/requests/{request_id}/status # Query status
GET /v1/queue/midjourney_diffusion/requests/{request_id}/response # Get result
PUT /v1/queue/midjourney_diffusion/requests/{request_id}/cancel # Cancel task
Terminal window
curl --location "https://cloud.seaart.ai/model/v1/queue/midjourney_diffusion" \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"text": "A red apple on a white table, clean studio lighting, simple background."
}'
text string required

Text description for image generation. Youchuan/Midjourney prompt parameters can be appended to the same string, such as --ar 16:9, --v 8.1, or --seed 1234.

Length range: 1 - 8192 characters

{
"request_id": "mmsu_01hxyz...",
"response_url": "https://cloud.seaart.ai/model/v1/queue/midjourney_diffusion/requests/mmsu_01hxyz.../response",
"status_url": "https://cloud.seaart.ai/model/v1/queue/midjourney_diffusion/requests/mmsu_01hxyz.../status",
"cancel_url": "https://cloud.seaart.ai/model/v1/queue/midjourney_diffusion/requests/mmsu_01hxyz.../cancel",
"queue_position": 0
}
FieldTypeDescription
request_idstringTask ID used for all follow-up operations.
response_urlstringURL for retrieving the final result.
status_urlstringURL for querying task status.
cancel_urlstringURL for canceling the task.
queue_positionintQueue position.