58API Help Center58API Help Center
User GuideAI ApplicationsAPI DocumentationHelp & Support

Midjourney V8.2 Image Generation API

Text-to-image for midjourney-v8.2, fast, and turbo. POST https://api.58api.net/v1/images/generations; each successful request returns 4 images.

Supported Models

This page applies to midjourney-v8.2, midjourney-v8.2-fast, and midjourney-v8.2-turbo. Each successful request returns 4 images.

Endpoints and Authentication

Base URL: https://api.58api.net

Authorization: Bearer $API_KEY
Content-Type: application/json
Use caseMethodEndpoint
Text-to-imagePOST/v1/images/generations

Text-to-Image

curl https://api.58api.net/v1/images/generations \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "midjourney-v8.2",
    "prompt": "An ancient Eastern city shrouded in mist, cinematic lighting, rich detail, ultra HD --ar 16:9 --s 250"
  }'

Request Parameters

ParameterTypeRequiredDescription
modelstringYesmidjourney-v8.2, midjourney-v8.2-fast, or midjourney-v8.2-turbo
promptstringYesSubject, scene, style, and Midjourney parameter flags

Midjourney adjustments go at the end of prompt in --parameter value format; they are not sent as separate JSON fields.

Supported Prompt Flags

FlagExampleDescription
--s--s 250Stylize, 0–1000
--c--c 20Chaos, 0–100
--w--w 250Weird, 0–3000
--iw--iw 1.5Image Weight, 0–3, used with reference images
--seed--seed 123Integer seed
--q--q 10.25, 0.5, 1, 2
--no--no text, watermarkNegative prompt
--raw--rawRaw mode
--hd--hdHD mode
--tile--tileTile mode
--draft--draftDraft mode
--ar--ar 16:9Aspect ratio
--stop--stop 80Stop percentage

Response Format

{
  "created": 1760000000,
  "data": [
    { "url": "https://..." },
    { "url": "https://..." },
    { "url": "https://..." },
    { "url": "https://..." }
  ],
  "model": "midjourney-v8.2"
}

Save the image links from data[].url.

Usage Rules

  • To switch between the standard, Fast, and Turbo modes, change only model.
  • Set the aspect ratio with --ar; do not put it in size.
  • Use the corresponding prompt flags for style, chaos, seed, and quality.