Base URL:
https://api.apimart.aiAuth: Authorization: Bearer <token>New /v1/midjourney/... routes automatically inject model=midjourney; you do not need to pass model in the request body.Quick start
API overview
See each feature’s sub-page for full fields, examples, and notes.
See also: Best practices (polling / retries / troubleshooting) · End-to-end workflows (curl walkthroughs + client wrappers)
End-to-end flow
Errors
Error response format
Common errors
Task failures
Commonfail_reason values:
Banned prompt detected— banned prompt contentTask timeout— task timeout (auto refund after 30+ minutes)No available upstream— service temporarily unavailable, retry later
Billing
The unified model name for new MJ routes ismidjourney. Billing keys are generated from action, version, and speed. The usual match order is:
Notes:
speed=relaxor omittedspeeddoes not add a speed suffix;fast/turboadd the corresponding suffix.- Main versions normalize to
v8.2,v8.1,v7,v6.1,v5.2, andv5.1. niji=true + version=7/6normalizes toniji7/niji6.
See console pricing. Failed jobs are fully refunded.