1. Get your API key
Before you call any API, you need aAPI-KEY.
Create your account
Sign in to Midjourney API
Sign in to Midjourney API
open the API Console. You can sign in with
Google.Default key and trial quota
Default key and trial quota
After your account is created, Midjourney API generates a default
API-KEY. This key is used across all Midjourney API endpoints.New accounts also receive 10 quota as trial balance.2. Add the request header
All requests must include your API key in the header:3. Send your first request
Step 1: Submit a generation request
The example below creates a Midjourney image task.Sample response
Step 2: Fetch the task result
Use the returnedjobId to poll the result:
Sample response
Task statuses
| Status | Meaning |
|---|---|
0 | In progress |
1 | Completed successfully |
2 | Failed |
Need help?
- For support, see Contact