Skip to main content

1. Get your API key

Before you call any API, you need a API-KEY.

Create your account

open the API Console. You can sign in with Google.
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 returned jobId to poll the result:

Sample response

Task statuses

Need help?