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
Suno (music generation)
Available model IDs
Async flow
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.