Midjourney
Sign in to try Midjourney
Sign in with your Google account and top up credits to get started.
Sign in with GoogleUse via API
Base URL: https://adverraai.com/hub/api/v1 · Authenticate with Authorization: Bearer YOUR_API_KEY
# 1) Submit a task
curl https://adverraai.com/hub/api/v1/images/generations \
-H "Authorization: Bearer $ADVERRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "midjourney",
"prompt": "a cat astronaut, cinematic",
"size": "1:1",
"n": 1
}'
# => {"id":"task_xxx","status":"queued",...}
# 2) Check status (every 3-5 seconds until status = completed)
curl https://adverraai.com/hub/api/v1/tasks/task_xxx -H "Authorization: Bearer $ADVERRA_API_KEY"
# => {"status":"completed","output":[{"type":"image","url":"https://..."}]}
import requests, time
API = "https://adverraai.com/hub/api/v1"
H = {"Authorization": "Bearer YOUR_API_KEY"}
task = requests.post(f"{API}/images/generations", headers=H, json={
"model": "midjourney",
"prompt": "a cat astronaut, cinematic",
"size": "1:1",
"n": 1
}).json()
while task["status"] not in ("completed", "failed"):
time.sleep(4)
task = requests.get(f"{API}/tasks/{task['id']}", headers=H).json()
print(task["status"], [o["url"] for o in task["output"]], task["credits_charged"])
const API = "https://adverraai.com/hub/api/v1", H = { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" };
let task = await (await fetch(`${API}/images/generations`, { method: "POST", headers: H, body: JSON.stringify({
model: "midjourney",
"prompt": "a cat astronaut, cinematic",
"size": "1:1",
"n": 1
}) })).json();
while (!["completed", "failed"].includes(task.status)) {
await new Promise(r => setTimeout(r, 4000));
task = await (await fetch(`${API}/tasks/${task.id}`, { headers: H })).json();
}
console.log(task.output);
Common parameters: prompt, image_urls, size / aspect_ratio, resolution, duration, n, negative_prompt, seed. Credits are reserved at an estimated price when you submit and adjusted to the actual cost when the task finishes (failed tasks are fully refunded).
Parameters for this model
Send as JSON in the request body. Fields marked * are required.
| Parameter | Type | Allowed values | Default | Description |
|---|---|---|---|---|
model * |
string | – | – | ID of the model to call — midjourney |
action |
string | imagine, blend, describe, edits, upscale, variation, high-variation, low-variation, reroll, zoom, pan, inpaint, modal, remix, remix-subtle, video | imagine | Mode (16 actions) — each action takes different fields, see the action table below |
โหมดทั้งหมด (ใส่ใน action)
ส่งที่ POST https://adverraai.com/hub/api/v1/generate ด้วย "model": "midjourney" + "action": "…" (ไม่ใส่ = imagine) · โหมดที่ต่อยอดจากงานเดิมใช้ task_id = รหัสงานใน Hub ของงานนั้น
| action | ทำอะไร | ต้องใส่ | ใส่เพิ่มได้ |
|---|---|---|---|
| สร้างภาพ | |||
imagine | สร้างภาพ (Imagine) สร้างภาพ 4 ภาพจากคำบรรยาย | prompt | nsfw_check, speed, image_urls, size, quality, style, version, seed, negative_prompt, stylize, chaos, weird, tile, niji, iw, cw, sw, cref, sref, dref, dw, repeat, raw, draft, hd, stop, extra |
blend | ผสมภาพ (Blend) ผสม 2–5 ภาพเป็นภาพใหม่ | image_urls | nsfw_check, dimensions, size, speed |
describe | อธิบายภาพ (Describe) ให้ Midjourney เขียน prompt จากภาพ | image_urls | nsfw_check, speed |
edits | แก้ภาพ (Edits) แก้ภาพเดิมด้วยคำบรรยาย | prompt, image_urls | nsfw_check, speed, size, quality, style, version, seed, negative_prompt, stylize, chaos, weird, tile, niji, iw, cw, sw, cref, sref, dref, dw, repeat, raw, draft, hd, stop, extra |
| ต่อยอดจากงานเดิม | |||
upscale | ขยายภาพ (Upscale) เลือกภาพจากงานเดิมมาขยาย | task_id | nsfw_check, index, custom_id, speed |
variation | รูปแบบใหม่ (Variation) สร้างรูปแบบใหม่จากภาพในงานเดิม | task_id | nsfw_check, index, custom_id, speed |
high-variation | เปลี่ยนมาก (Vary Strong) สร้างรูปแบบที่ต่างจากเดิมมาก | task_id | nsfw_check, index, custom_id, speed |
low-variation | เปลี่ยนน้อย (Vary Subtle) สร้างรูปแบบที่ใกล้เดิม | task_id | nsfw_check, index, custom_id, speed |
reroll | สร้างใหม่ (Reroll) สร้างงานเดิมใหม่อีกรอบ | task_id | nsfw_check, custom_id, speed |
zoom | ซูมออก (Zoom) ขยายพื้นที่รอบภาพ | task_id | nsfw_check, custom_id, index, zoom_ratio, speed |
pan | ขยายด้านข้าง (Pan) ต่อภาพไปทางซ้าย/ขวา/บน/ล่าง | task_id | nsfw_check, direction, custom_id, index, speed |
inpaint | แก้บางส่วน (Vary Region) เริ่มแก้บางส่วนของภาพ | task_id | nsfw_check, custom_id, index, speed |
modal | ส่งรายละเอียดเพิ่ม (Modal) ส่ง prompt/มาสก์ให้งานที่รอข้อมูล | task_id | nsfw_check, prompt, mask_url, speed |
remix | รีมิกซ์แรง (Remix Strong) รีมิกซ์ภาพเดิมด้วย prompt ใหม่ แบบเปลี่ยนมาก | task_id, index | nsfw_check, prompt, speed |
remix-subtle | รีมิกซ์เบา (Remix Subtle) รีมิกซ์ภาพเดิมด้วย prompt ใหม่ แบบเปลี่ยนน้อย | task_id, index | nsfw_check, prompt, speed |
| วิดีโอ | |||
video | สร้างวิดีโอ (Video) ทำวิดีโอจากภาพหรือจากงานเดิม | — | prompt, nsfw_check, image_urls, task_id, index, video_type, animate_mode, motion, batch_size, end_url |
🤖 ต่อกับ AI Agent
คัดลอกข้อความนี้ไปวางให้ AI Agent (เช่น Claude, ChatGPT, Gemini, Cursor, Codex) แล้วมันจะเรียกใช้โมเดลนี้ผ่านระบบของเราได้ทันที · ในข้อความมีวิธีเชื่อมต่อ พารามิเตอร์ และวิธีรับผลงานครบ · เลือกคีย์ด้านบนเพื่อใส่ในข้อความที่จะคัดลอก
# Adverra AI Hub — Midjourney (`midjourney`)
You can use this AI model through the Adverra AI Hub REST API. Follow these instructions exactly.
## Connection
- Base URL: https://adverraai.com/hub/api/v1
- Header: `Authorization: Bearer <ADVERRA_API_KEY>` (read the credential from the ADVERRA_API_KEY environment variable). Never print the key.
- Header: `Content-Type: application/json`
- Endpoint: `POST https://adverraai.com/hub/api/v1/generate`
- Credits are deducted from the user's Adverra balance (check with `GET https://adverraai.com/hub/api/v1/me`).
## Example request body
```json
{
"model": "midjourney",
"prompt": "a cute cat wearing sunglasses",
"size": "1:1"
}
```
## Parameters
- `model` (string, required) — ID of the model to call — midjourney
- `action` (string, optional) — Mode (16 actions) — each action takes different fields, see the action table below · allowed: imagine, blend, describe, edits, upscale, variation, high-variation, low-variation, reroll, zoom, pan, inpaint, modal, remix, remix-subtle, video · default: imagine
## Actions (send `"action"` in the body; default `imagine`)
All actions use `POST https://adverraai.com/hub/api/v1/generate` with `"model": "midjourney"`. Then poll `GET https://adverraai.com/hub/api/v1/tasks/{id}`. Follow-up actions take `task_id` = the Hub task ID of the earlier Midjourney job and `index` (which image).
- `imagine` — สร้างภาพ (Imagine) (สร้างภาพ 4 ภาพจากคำบรรยาย) · required: prompt · optional: nsfw_check, speed, image_urls, size, quality, style, version, seed, negative_prompt, stylize, chaos, weird, tile, niji, iw, cw, sw, cref, sref, dref, dw, repeat, raw, draft, hd, stop, extra
- `blend` — ผสมภาพ (Blend) (ผสม 2–5 ภาพเป็นภาพใหม่) · required: image_urls · optional: nsfw_check, dimensions, size, speed
- `describe` — อธิบายภาพ (Describe) (ให้ Midjourney เขียน prompt จากภาพ) · required: image_urls · optional: nsfw_check, speed
- `edits` — แก้ภาพ (Edits) (แก้ภาพเดิมด้วยคำบรรยาย) · required: prompt, image_urls · optional: nsfw_check, speed, size, quality, style, version, seed, negative_prompt, stylize, chaos, weird, tile, niji, iw, cw, sw, cref, sref, dref, dw, repeat, raw, draft, hd, stop, extra
- `upscale` — ขยายภาพ (Upscale) (เลือกภาพจากงานเดิมมาขยาย) · required: task_id · optional: nsfw_check, index, custom_id, speed
- `variation` — รูปแบบใหม่ (Variation) (สร้างรูปแบบใหม่จากภาพในงานเดิม) · required: task_id · optional: nsfw_check, index, custom_id, speed
- `high-variation` — เปลี่ยนมาก (Vary Strong) (สร้างรูปแบบที่ต่างจากเดิมมาก) · required: task_id · optional: nsfw_check, index, custom_id, speed
- `low-variation` — เปลี่ยนน้อย (Vary Subtle) (สร้างรูปแบบที่ใกล้เดิม) · required: task_id · optional: nsfw_check, index, custom_id, speed
- `reroll` — สร้างใหม่ (Reroll) (สร้างงานเดิมใหม่อีกรอบ) · required: task_id · optional: nsfw_check, custom_id, speed
- `zoom` — ซูมออก (Zoom) (ขยายพื้นที่รอบภาพ) · required: task_id · optional: nsfw_check, custom_id, index, zoom_ratio, speed
- `pan` — ขยายด้านข้าง (Pan) (ต่อภาพไปทางซ้าย/ขวา/บน/ล่าง) · required: task_id · optional: nsfw_check, direction, custom_id, index, speed
- `inpaint` — แก้บางส่วน (Vary Region) (เริ่มแก้บางส่วนของภาพ) · required: task_id · optional: nsfw_check, custom_id, index, speed
- `modal` — ส่งรายละเอียดเพิ่ม (Modal) (ส่ง prompt/มาสก์ให้งานที่รอข้อมูล) · required: task_id · optional: nsfw_check, prompt, mask_url, speed
- `remix` — รีมิกซ์แรง (Remix Strong) (รีมิกซ์ภาพเดิมด้วย prompt ใหม่ แบบเปลี่ยนมาก) · required: task_id, index · optional: nsfw_check, prompt, speed
- `remix-subtle` — รีมิกซ์เบา (Remix Subtle) (รีมิกซ์ภาพเดิมด้วย prompt ใหม่ แบบเปลี่ยนน้อย) · required: task_id, index · optional: nsfw_check, prompt, speed
- `video` — สร้างวิดีโอ (Video) (ทำวิดีโอจากภาพหรือจากงานเดิม) · optional: prompt, nsfw_check, image_urls, task_id, index, video_type, animate_mode, motion, batch_size, end_url
## Result
Returns a task object `{ "id": "task_...", "status": "queued" }`.
Poll `GET https://adverraai.com/hub/api/v1/tasks/{id}` every 5 seconds until `status` is `completed` or `failed`, then download every `output[].url` (links expire after about 24 hours).
If the user already has many jobs running, new jobs are queued automatically (`queued_waiting: true`) — keep polling, do not resubmit.
Optional: add `"wait": true` to the request to wait up to ~100 seconds for the result in one call.
## Errors
- 401 = invalid API key · 402 = not enough credits (tell the user to top up at ./?wallet=1) · 429 = too many requests (wait and retry) · 5xx = temporary error (credits are refunded automatically).
## MCP (optional)
Agents that support MCP can connect to `https://adverraai.com/hub/mcp.php` instead (setup guide: https://adverraai.com/hub/connect.php).
About this model
Midjourney is a Image model by Adverra AI Hub
Midjourney is a leading text-to-image AI model developed by Midjourney, renowned for its distinctive painterly aesthetics, strong composition, and cinematic lighting. It excels at generating high-quality images from text prompts or reference images. The model offers fine-grained control over style and creative parameters, making it ideal for a wide range of artistic and commercial applications.
Key features
- Generates high-quality images from text prompts
- Supports image-to-image generation using reference images
- Offers fine-grained control over style and aspect ratio
- Includes creative parameters like stylize, chaos, and weird
- Access to multiple Midjourney versions, including v8.2, v8.1, and Niji models
- Provides different generation speeds: relax, fast, and turbo
- Signature painterly aesthetic with strong composition and cinematic lighting
- Automatic refunds for failed generation jobs
What you can do
- Creating concept art and mood boards for creative projects
- Generating advertising and campaign visuals for brands
- Producing editorial illustrations and stylized covers
- Developing content and social media thumbnails
- Designing game and worldbuilding assets
- Integrating AI image generation into custom products and applications
Specs
- Input: Text prompts, optional image URLs
- Output: Images (download links available for 72 hours)
- Supported versions: v8.2, v8.1, v7, v6.1, v5.2, v5.1, Niji 7, Niji 6
- Creative controls: Stylize (0-1000), Chaos (0-100), Weird (0-3000)
- Generation speeds: Relax, Fast, Turbo
Prompt tips
- Describe the product, materials, light, and backdrop for detailed campaign visuals.
- Specify the subject, composition, palette, paper, and brushwork for unique art styles like watercolor.
- For storybook scenes, detail characters, setting, and lighting to create depth and atmosphere.
- Use the 'stylize' parameter to control the artistic intensity of the output.
- Experiment with 'chaos' to introduce variation and unexpected elements into your generations.
- Adjust the 'weird' parameter for more unconventional and unique image outputs.
Examples
Sample videos from the model developer's official channels