Overview
Midjourney is an async image model for high-quality diffusion generation, source-image-guided generation, region editing, variation, upscaling, reroll, and draft enhancement. Use this page when you are ready to call the API after trying Midjourney in the APIXO playground.Workflow categories
Endpoint and authentication
Base URL:
All requests require your APIXO API key:
Copy-paste async quickstart
This minimal request submits a text-to-image task and returns ataskId.
taskId; you need it to poll for the final result.
Poll for result
resultJson after state becomes success:
data.supported_actions directly when you want to present follow-up actions to users. It is returned at the same level as resultJson and is only present when follow-up operations are available.
The follow-up action set depends on the source task mode:
enhance is only returned for successful v7 + draft generation-family results. Follow-up actions that continue from a specific image can include imageIndex_options so clients can ask the user which image to continue from.
Request body
Text-to-image
Image-to-image
Image-edit
Useimage-edit when you want to edit a specific region. When supported, omitting mask, canvas, and imgPos uses a full-image edit region based on image_urls[0].
Vary
Upscale
Reroll
Enhance
Parameters
Result delivery mode. Use
async for polling with statusTask, or callback for webhook delivery.Required when
request_type is callback. Must be a public HTTPS URL that can receive the final task payload. See Webhooks.Response format
Submit task response
POST /generateTask/midjourney returns a task ID when the task is accepted:
Status response fields
Optional follow-up actions for successful results. This field is returned at the same level as
resultJson in data.Webhook callback mode
Use callback mode when your backend should receive the final result automatically instead of polling.Billing
New non-LLM requests use 1 credit =$0.001. Calculate the full amount, including billable quantity and add-ons, apply the applicable account discount, then round the request total upward to the next whole credit. Agreed fixed unit prices retain their precision and replace the standard price and discount; final rounding still applies. See credit conversion and rounding.
Midjourney is billed per use. The selected mode and speed determine the unit price.
The current public pricing is easiest to understand in two families:
For current API rates in USD, see API pricing.
Latency and polling
Actual latency may vary by prompt complexity, mode, selected route, and current queue load.
Rate limits and concurrency can vary by account, API key, and route. If you receive
429, slow down requests and retry with backoff. For account-level details, see System APIs.
Errors and troubleshooting
HTTP errors
Task failure codes
Common fixes
See Error Codes for the full error reference.
MCP integration
The complete model schema declares result decoding inmcp.result and supported file bindings in mcp.attachments. These are client integration metadata, not generation input parameters. Attachment paths: mask.url, image_urls, cref_urls, oref_urls, sref_urls[].url. Preserve the user’s file order. For a path containing [], supply the parent array items and their metadata in input, then bind files to an explicit item index, such as [0]. Model parameter validation remains on the API.