Skip to main content
POST

Authorizations

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

Body

string
required
Model name.Fixed value: "mj_v7_retexture"
object
required
Model parameters object.
string
required
Caller-defined task ID, used for idempotent submission and result queries.
  • 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 consumption.
string
Creation time, in ISO 8601 format.

Query Results

After a successful submission, call using the same out_task_id:
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 located in data.credits_used.