API docs / Image models
Midjourney v8.1 API
Generate four Midjourney v8.1 images from one prompt.
- Model id
wavespeed/midjourney/text-to-image- Provider
- Midjourney
- Output
- Image
- Price
- From 35 credits per run, the same as on voor.ai. Options such as length or resolution can change it.
Request
POST https://voor.ai/v1/generations with "model": "wavespeed/midjourney/text-to-image". Poll GET /v1/tasks/{id} or receive the signed webhook. See the overview for keys, idempotency, webhooks and errors.
curl https://voor.ai/v1/generations \
-H "Authorization: Bearer $VOOR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "wavespeed/midjourney/text-to-image",
"input": {
"prompt": "A red fox standing in fresh snow at golden hour, soft light"
},
"callback_url": "https://example.com/webhooks/voor"
}'
# Then poll the task (or wait for the webhook):
curl https://voor.ai/v1/tasks/TASK_ID \
-H "Authorization: Bearer $VOOR_API_KEY"Input parameters
| Name | Type | Details |
|---|---|---|
promptrequired | string | Text prompt describing the image to generate. Up to 1024 characters |
style_reference_images | array of URLs | Optional style reference image URL. Up to 1 files · Accepts image/* |
aspect_ratio | string | Aspect ratio of the generated images. Default: One of: 1:1, 9:16, 16:9, 4:3, 3:4, 2:3, 3:2, 9:21, 21:9 |
quality | number | Generation quality setting supported by Midjourney v8.1. Default: One of: 1, 4 |
seed | number | Random seed. Use -1 for a random seed. Default: Min -1 · Max 2147483647 |
chaos | number | Controls variation and unpredictability. Default: Min 0 · Max 100 |
hd | boolean | Enable HD generation mode. Default: |
stylize | number | Controls how strongly Midjourney's aesthetic influences the result. Default: Min 0 · Max 1000 |
weird | number | Adds unconventional or surreal characteristics. Default: Min 0 · Max 3000 |