Midjourney
midjourney
A text-to-image and image-prompt generation model by Midjourney, supporting 1:1, 16:9, and 9:16 aspect ratios, with adjustable stylize, chaos, and weird strengths, suitable for concept exploration, stylized illustration, and marketing sketch iteration
Try midjourney
Input
Output
Pricing
midjourney per call
| Specifications | Unit Price |
|---|---|
| relax | $0.0644 |
| fast | $0.0787 |
| turbo | $0.1429 |
Overview
This is an image generation model for visual creation and concept exploration. It supports generating images directly from pure text prompts, and also supports uploading images as references to guide generation. Developers can adjust the direction of the output through parameters such as aspect ratio, stylization strength, randomness, and run speed. It suits scenarios that require rapid iteration on visual concepts, such as marketing assets, concept design, storyboard sketches, and illustration exploration.
Key highlights
- Dual channels: text-to-image and image-to-image — generate images from scratch with prompts, or provide image URLs as references to guide composition and style direction.
- Multiple versions with different stylistic leanings — switch between versions 8.2, 8.1, 7, 6.1, 5.2, and 5.1 according to the project's needs for stylization and prompt fidelity.
- Quantifiable stylization and randomness controls — stylization strength supports 0 to 1000, chaos supports 0 to 100, and weird supports 0 to 3000, making it easy to control image stability and experimentation.
- Three speed tiers and three aspect ratios — speed can be set to relax, fast, or turbo, and aspect ratio can be set to 1:1, 16:9, or 9:16, adapting to different paces and placement positions.
Capabilities
- Image generation from text prompts: submit a prompt of up to 2000 characters to generate an image, with the aspect ratio selectable among 1:1, 16:9, and 9:16, suitable for rapidly producing visual drafts.
- Reference-guided generation: provide at least one https image link in image_urls to guide the generation direction as an image prompt, used together with a text prompt.
- Stylization strength control: use stylize to adjust, between 0 and 1000, how much the model applies its own aesthetics. Lower values stay closer to the literal description, while higher values produce more distinctive visual styles.
- Randomness and experimentation controls: chaos, between 0 and 100, increases compositional variation, while weird, between 0 and 3000, introduces more unconventional visual elements, suitable for exploring alternatives.
- Version and speed switching: version can be set to one of 8.2, 8.1, 7, 6.1, 5.2, and 5.1, and speed can be set to one of relax, fast, and turbo, combined according to project pace and style preference.
Use cases
- Asset sketches for marketing and content teams — batch-generate 16:9 or 9:16 visual options with prompts for early-stage selection of social media images, posters, and landing page visuals.
- Style exploration for concept designers — raise stylize and switch between versions to quickly compare multiple stylistic directions and settle on a direction for characters, scenes, and product concepts.
- Early previsualization for storyboards and shot lists — generate shot images from short prompts combined with reference images and place them in storyboards to communicate composition, mood, and shot rhythm.
- Illustration and editorial visual creation — use the chaos and weird parameters to generate unconventional compositions and textures as a starting point for inspiration for illustrations, covers, and feature images.
- Derivative expansion of existing images — upload reference images together with text prompts to generate variants in the same style, for serialized visual assets and multi-size image extensions.
Limitations and selection guidance
Prompts are limited to 2000 characters, and parameter syntax beginning with a hyphen is not supported inside prompts; style parameters must be set through separate parameters. The aspect ratio can only be one of 1:1, 16:9, and 9:16, and version and speed are likewise single-select. If reference images are used, the links must be https addresses and at least one must be provided. The output is a static image and does not include video or audio products.
What's new
View changelog →- New model Midjourney Image Generation Models Now Available
Frequently asked questions
View all FAQs →-
Which versions are available now?
The version can be 8.2, 8.1, 7, 6.1, 5.2, or 5.1; the default is 8.2. Different versions differ in their emphasis on stylization strength and fidelity to literal prompts: newer versions generally adhere more closely to complex descriptions and keep details stable, while earlier versions such as 5.1 and 5.2 are more strongly stylized. If you want the behavior of the latest generation, keep the default 8.2; if you want a style closer to older releases, specify the corresponding version number.
-
Does a higher version draw better?
It is not a simple matter of higher versus lower; rather, it is a difference in orientation. Newer versions are generally more stable in prompt understanding and detail consistency, while 5.1 and 5.2 have stronger stylization. Choose based on your goal: for stable details and comprehension of complex descriptions, use a newer version; for a stronger painterly feel, you can go back to 5.1 or 5.2.
-
How can I control how faithfully the model follows the prompt?
Lower stylize (you can go down to 0) so the image stays closer to the literal description; raising it makes the model apply more of its own aesthetic. If you still feel the prompt is being overpowered by the style, you can also switch version to a setting with more restrained stylization and try again. chaos is another dimension: it affects how diverse and unusual the results are, and does not solve the fidelity issue.
-
How can I write prompts to get better results?
Write in the order of "subject and action → scene and environment → style and medium → lighting and color tone," and prefer concrete nouns over stacked adjectives. Prompts are capped at 2000 characters, and do not inline parameters such as --ar or --v; use size for the aspect ratio, stylize for style strength, and version for the version. Pass parameters through fields rather than mixing them into the prompt. To extend an existing image, pair it with image_urls to pass an image as an image prompt.
Create a generation task
https://api.hiapi.ai/v1/tasks Headers
AuthorizationstringRequiredAccount API key. Required on every request. Example: Bearer YOUR_HIAPI_API_KEY. Get your API key
Content-TypestringOptionalThe request body is always parsed as JSON; when sent, only application/json (optionally with charset) is accepted — any other value returns 415. Example: application/json.
Idempotency-KeystringOptionalIdempotency key, up to 255 bytes. Retries with the same key from the same account create the task only once; replays return the original taskId.
On network timeouts or client retries, the same key creates the task only once — no double charges (scope: the API key's account). Use a business-unique identifier as the key (e.g. "order-42"); replays return the original taskId, and keys expire 24 hours after the first request. See the Unified Async API overview for the full scenario matrix.
Body
modelstringRequiredCurrent fixed value: midjourney
routestringOptionalCurrent fixed value: default
inputobjectRequired
Business parameters for midjourney and route default — see the parameter table below.
sizestringOptionalDefault: "1:1"Aspect ratio of the generated image. Type: string. Optional. Default: 1:1. Allowed values: 1:1, 16:9, 9:16.
1:116:99:16chaosintegerOptionalmin 0max 100Randomness and diversity of the results; higher values produce greater variation between variants. Type: integer. Optional. Range: 0 to 100.
speedstringOptionalDefault: "relax"Generation speed tier, which also determines the per-call price. Type: string. Optional. Default: relax. Allowed values: relax, fast, turbo.
relaxfastturboweirdintegerOptionalmin 0max 3000Degree of weirdness of the results; higher values produce more unconventional styles. Type: integer. Optional. Range: 0 to 3000.
promptstringRequiredminLength 1maxLength 2000pattern ^([^-]|-[^-])*-?$Text prompt describing the content to generate. Type: string. Required. Text length: 1 to 2000.
stylizeintegerOptionalmin 0max 1000Artistic stylization strength; higher values produce more pronounced stylization. Type: integer. Optional. Range: 0 to 1000.
versionstringOptionalDefault: "8.2"Midjourney version number. Type: string. Optional. Default: 8.2. Allowed values: 8.2, 8.1, 7, 6.1, 5.2, 5.1.
8.28.176.15.25.1image_urlsarrayOptionalminItems 1List of reference image URLs, used for image-to-image generation. Type: array. Optional. The array must contain at least 1 item. The addresses must be publicly accessible https URLs.
Array [ string ]
callbackobjectOptional
Terminal-state notification config. When omitted, no callback is delivered — poll the task yourself. See the callback note below.
Provide callback.url when creating a task and HiAPI POSTs to your service once the task reaches a terminal state — no polling needed. The callback payload mirrors the task detail structure; signature verification, delivery retries and idempotency are documented on the Unified Async API overview page.
urlstringRequiredRequired when callback is present. A POST is sent to this URL once the task reaches a terminal state; must be a valid http(s) URL.
whenstringOptionalDefault: "final"Only final is supported today — notified on both success and fail.
finalstoragestringOptionalDefault: "temp"Artifact storage tier: temp (default, retained about 7 days) or persistent (long-term, billed by size). Insufficient balance or exceeding the storage cap silently downgrades to temp; the effective tier is shown in the task detail response.
temppersistentRequest examples
# Submit an async task; returns a taskId immediately (no waiting for generation)
curl -X POST "https://api.hiapi.ai/v1/tasks" \
-H "Authorization: Bearer $HIAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "midjourney",
"input": {
"size": "1:1",
"speed": "relax",
"prompt": "…",
"version": "8.2"
}
}' const res = await fetch("https://api.hiapi.ai/v1/tasks", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HIAPI_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "midjourney",
input: {
"size": "1:1",
"speed": "relax",
"prompt": "…",
"version": "8.2"
}
}),
});
const task = await res.json();
// { code: 200, message: "success", data: { taskId } } import os, requests
res = requests.post(
"https://api.hiapi.ai/v1/tasks",
headers={"Authorization": f"Bearer {os.environ['HIAPI_API_KEY']}"},
json={
"model": "midjourney",
"input": {
"size": "1:1",
"speed": "relax",
"prompt": "…",
"version": "8.2"
}
},
)
print(res.json()) # { code, message, data: { taskId } } 200 OK
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR"
}
} 400 Bad Request
{
"code": 400,
"message": "invalid request",
"data": null,
"error_code": "INVALID_REQUEST"
} Get task detail
https://api.hiapi.ai/v1/tasks/:id Response fields
taskIdstringRequiredTask ID, always prefixed with tk-hiapi-.
modelstringRequiredResolved full model name. Tasks submitted with the route parameter return base@route (e.g. gpt-image-2/text-to-image@ext); otherwise identical to the name passed at creation.
routestringOptionalPresent only when the task was submitted with an explicit route parameter; echoes the submitted value.
statusstringRequiredTask status.
queued Queued, not started yet.
handling Being processed.
archiving Processing finished, artifacts being prepared.
success Terminal: completed, artifacts available (output returned).
fail Terminal: failed (error returned).
After submission, check status: success and fail are terminal, everything else is non-terminal. Poll every 1–3 seconds until terminal. On success, download artifacts from output[].url and transfer them before expireAt; pass storage: "persistent" at creation time when long-term retention is needed.
creatednumberRequiredTask creation time (Unix seconds).
completednumberRequiredUnix seconds when the task reached a terminal state; fixed to 0 while not terminal.
outputarrayOptional
Present only when status == success. Artifact list — always an array; a single task may return multiple types at once (e.g. video + first_frame).
Array [ object ]
Array items
urlstringRequiredArtifact URL, directly downloadable.
typestringRequiredCurrent possible values: video, image, audio, first_frame, last_frame, thumbnail; more may be added later.
expireAtnumberRequiredUnix seconds until which the artifact remains accessible; download or transfer before it expires.
errorobjectOptional
Present only when status == fail.
codestringRequiredBusiness error code.
messagestringRequiredError description.
Response examples
Success
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR",
"model": "happyhorse-1-0",
"status": "success",
"created": 1777282033,
"completed": 1777282099,
"output": [
{
"url": "https://cdn.hiapi.ai/tasks/.../video.mp4",
"type": "video",
"expireAt": 1777886899
}
]
}
} Processing (non-terminal)
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "archiving",
"created": 1777282033,
"completed": 0
}
} Failed
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "fail",
"created": 1777282033,
"completed": 1777282099,
"error": {
"code": "TASK_FAILED",
"message": "task failed"
}
}
} Articles
View all articles →-
Comparison
Midjourney vs. Comparable Image Models: A Developer's Selection and Integration Guide
-
Tutorial
Midjourney Practical Guide: 5 High-Value Application Scenarios from a Developer's Perspective
-
Guide
Midjourney Developer Onboarding Guide: Capability Boundaries, API Integration, and Pricing in Practice
Related Models
View all models →Same Type
-
GPT Image 2 OpenAI $0.007 /image -
Ideogram V4.5 Ideogram $0.011 /image -
FLUX 3 Image Black Forest Labs $0.041 /image -
Nano Banana Pro Google $0.029 /image -
Ideogram V3 Character Ideogram $0.090 /image -
Grok Imagine xAI $0.011 /second -
GPT Image 2.6 OpenAI $0.023 /image -
Recraft V4.1 Recraft $0.010 /image -
FLUX.2 Klein 4B Black Forest Labs $0.0004 /image -
Grok Imagine Quality xAI $0.070 /image -
MiniMax H3 Image MiniMax $0.013 /image -
Nano Banana 2 Lite Google $0.033 /image