Skip to main content
POST
Midjourney API
Midjourney uses ToAPIs task IDs. Requests require Authorization: Bearer YOUR_API_KEY. If you are in mainland China, use https://toapis.cn as the Base URL instead.
Supported actions: imagine, blend, describe, edits, upscale, variation, high-variation, low-variation, reroll, zoom, pan, inpaint, modal, video, remix-strong, remix-subtle. Every submission returns a task ID. Use the query endpoint to retrieve results. You do not need to provide or retain the upstream APIMart task ID.

Endpoints

The default generation endpoint is equivalent to imagine.

Common request fields

string
required
Must be midjourney.
string
Text prompt. Required for imagine and edits; optional for modal, which inherits the parent prompt by default.
string[]
Publicly accessible image URLs. Use the image upload endpoint first; do not submit base64 directly. Each image must be no larger than 12 MiB.
string
Parent task ID for image actions, video, and Remix. The task must belong to the user associated with the current API key.
string
default:"relax"
relax, fast, or turbo.
string
Midjourney version, such as v8.2, v8.1, v7, or v6.1.

Submit a task

cURL
Response
APIMart does not provide a cancellation endpoint. ToAPIs does not expose a fabricated cancellation endpoint. Failed tasks follow the standard refund and webhook rules.