Models · Image
Midjourney 8.2 API
Was this page helpful?
Midjourney 8.2 is good for generating still images when you need its listed output sizes and aspect ratios.
By Wilson Sik Founder, Reviral Last updated
Pricing
Default example: 4 images at 1K costs 8 credits, or $0.10 at the $4.99 Mini Pack rate ($4.99 for 400 credits).
| Resolution | Unit | Credits | USD |
|---|---|---|---|
| 1K | Per image | 2 cr | $0.02 |
Accepted inputs
- Kind
- image
- Durations
- Not applicable
- Resolutions
- 1K
- Aspect ratios
- 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9
- Reference inputs
- Images: 1. Videos: unavailable. Audio: 0 (up to 0 bytes).
- Defaults
- 1K · 1:1 · count 4
Sample request
The request uses the current default settings for this model and the public GenerateMediaRequest schema.
curl -X POST "https://reviral.ai/api/v1/generate-media" \
-H "Authorization: Bearer $REVIRAL_API_KEY" \
-H "Idempotency-Key: first-generation" \
-H "Content-Type: application/json" \
--data '{"model":"midjourney-8.2","prompt":"A clean product photograph on a warm neutral background","size":"1K","aspectRatio":"1:1","count":4,"maxCredits":8}'Response and output
Accepted job
{
"data": {
"jobId": "550e8400-e29b-41d4-a716-446655440000",
"kind": "image",
"model": "midjourney-8.2",
"creditsCharged": 8,
"status": "queued",
"statusUrl": "/api/v1/jobs/550e8400-e29b-41d4-a716-446655440000"
}
}Ready job
{
"data": {
"jobId": "550e8400-e29b-41d4-a716-446655440000",
"kind": "image",
"model": "midjourney-8.2",
"creditsCharged": 8,
"status": "ready",
"statusUrl": "/api/v1/jobs/550e8400-e29b-41d4-a716-446655440000",
"outputUrls": [
"https://reviral.ai/signed-output"
]
}
}Error cases
404 model_not_available: the ID is no longer in the live catalog.409 price_changed: the current cost differs frommaxCredits.422 validation_error: duration, resolution, aspect ratio, size, or count is not accepted.422 content_refused: the model's content rules refused this request. Change the prompt or the reference images; the same request is usually refused again.error.creditsChargedis 0 once your credits are returned.429 rate_limit_exceeded: wait forRetry-Afterbefore retrying.
Frequently asked questions
- How much does the Midjourney 8.2 API cost?
- The default 4 images at 1K costs 8 credits, about $0.10 at the $4.99 Mini Pack rate ($4.99 for 400 credits). Read the live models endpoint before submitting.
- Which inputs does Midjourney 8.2 accept?
- It accepts the listed generation settings plus up to 1 image, 0 video, and 0 audio references. Zero means that reference kind is unavailable.
- How do I retrieve Midjourney 8.2 output?
- Poll the returned status URL until the job is ready, then download the signed output URL or URLs before they expire.