Skip to main content
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

Common fail_reason values:
  • Banned prompt detected — banned prompt content
  • Task 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 is midjourney. Billing keys are generated from action, version, and speed. The usual match order is:
Notes:
  • speed=relax or omitted speed does not add a speed suffix; fast / turbo add the corresponding suffix.
  • Main versions normalize to v8.2, v8.1, v7, v6.1, v5.2, and v5.1.
  • niji=true + version=7/6 normalizes to niji7 / niji6.
See console pricing. Failed jobs are fully refunded.