Skip to main content
POST

Authorizations

string
required
All endpoints require authentication using a Bearer Token.Get the API Key:Visit the API Key management page to get your API Key.When using it, add the following to the request headers:

Body

string
required
Model name.Fixed value: "mj_v7"
object
required
Model parameters object.
string
required
Caller-defined task ID, used for idempotent submission and result retrieval.
  • Length: 1-64 characters
  • Only letters, numbers, underscores, and hyphens are allowed
  • Cannot be reused under the same API Key

Response

string
Caller task ID, which can be used to query the result.
string
Initial status, fixed as "pending".
number
Estimated credits consumed.
string
Creation time, in ISO 8601 format.

Query Results

After the submission is successful, call with the same out_task_id:
The task statuses include pending, processing, completed, and failed. After the task is completed, the result image is located in data.output, and the actual credits used are in data.credits_used.