Skip to main content
OpenPAI integrates Midjourney and Suno via Midjourney-Proxy / Plus and the Suno API, using an asynchronous task calling model.

Midjourney

Available model IDs

Async flow

1

Submit a task

POST /mj/submit/imagine returns result (the task ID).
2

Poll the task

GET /mj/task/{id}/fetch until status is SUCCESS or FAILURE.
3

Get the image

On success, the imageUrl field returns the 2×2 grid PNG link.
4

Follow-up actions (optional)

POST /mj/submit/change submits U/V/Reroll, passing taskId and action.

Example: text-to-image

Response:
Poll:
See the detailed Midjourney API docs.

Suno (music generation)

Available model IDs

Async flow

On success, audio_url in the response is a downloadable MP3 link and video_url is an animated video. See the detailed Suno API docs.

Billing notes

  • Midjourney and Suno are billed per task, unlike token-based models.
  • Failed tasks (upstream errors) are not billed.
  • Tasks the user cancels are settled by the resources already consumed.
The specific multipliers shown in Console → Models are authoritative.