Midjourney Text To Image
Playground
Try it on WavespeedAI!Create high-quality, artistic images from text prompts using Midjourney’s renowned creative interpretation. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Features
Midjourney Text-to-Image
Midjourney Text-to-Image generates images from a text prompt. Describe the image you want, optionally add a style reference image, choose an aspect ratio, and adjust generation controls such as stylize, chaos, weird, HD mode, quality, and seed.
Why Choose This?
-
Prompt-based image generation
Generate images directly from a text prompt. -
Style reference support
Use an optional style reference image to guide the visual style of the generated images. -
Flexible aspect ratios
Choose from multiple output aspect ratios, including square, vertical, horizontal, and cinematic formats. -
Generation control parameters
Adjuststylize,chaos, andweirdto control aesthetic strength, variation, and unconventional visual characteristics. -
HD and quality options
Enable HD mode and choose the supported quality setting for Midjourney v8.1. -
Seed support
Use a fixed seed for more reproducible results, or set-1for a random seed.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text prompt describing the image to generate. Minimum length: 1. Maximum length: 1024. |
| sref | No | Optional style reference image URL. |
| aspect_ratio | No | Aspect ratio of the generated images. Supported values: 1:1, 9:16, 16:9, 4:3, 3:4, 2:3, 3:2, 9:21, 21:9. Default: 1:1. |
| hd | No | Enable HD generation mode. Default: false. |
| quality | No | Generation quality setting supported by Midjourney v8.1. Supported values: 1, 4. Default: 1. |
| stylize | No | Controls how strongly Midjourney’s aesthetic style influences the result. Range: 0 to 1000. Default: 0. |
| chaos | No | Controls variation and unpredictability. Range: 0 to 100. Default: 0. |
| weird | No | Adds unconventional or surreal characteristics. Range: 0 to 3000. Default: 0. |
| seed | No | Random seed. Use -1 for a random seed. Range: -1 to 2147483647. Default: -1. |
How to Use
- Write your prompt — Describe the image you want to generate.
- Add a style reference (optional) — Provide
srefif you want to guide the image style with a reference image. - Choose an aspect ratio (optional) — Select the output format, such as
1:1,9:16, or16:9. - Adjust generation settings (optional) — Configure
hd,quality,stylize,chaos,weird, andseedas needed. - Submit — Generate four image outputs.
Output
Returns generated image URL(s) in the standard WaveSpeed prediction response.
Each request generates 4 images.
Pricing
Pricing is fixed at $0.10 per request.
| Output | Cost |
|---|---|
| 4 images | $0.10 |
Billing Rules
- Each request generates 4 images.
- Each request costs $0.10.
- Effective price per image is $0.025.
- The listed request price applies to the generation request.
Best Use Cases
- Creative image generation — Generate original images from text prompts.
- Concept art — Create visual concepts for characters, scenes, objects, and environments.
- Social media visuals — Generate images for posts, thumbnails, banners, and campaigns.
- Style exploration — Use
sref,stylize,chaos, andweirdto test different visual directions. - Cinematic and vertical formats — Use aspect ratios such as
16:9,21:9,9:16, or9:21for different content formats.
Pro Tips
- Keep prompts clear and specific.
- Use
srefwhen you want the output to follow a specific visual style. - Use
stylizeto control the strength of Midjourney’s aesthetic influence. - Increase
chaoswhen you want more variation across outputs. - Increase
weirdwhen you want more unconventional or surreal results. - Use a fixed
seedwhen you want more reproducible generations. - Use
-1for random seed generation. - Choose the aspect ratio based on the final use case, such as
1:1for square images,9:16for vertical content, or16:9for widescreen images.
Notes
promptis the only required field.sref,aspect_ratio,hd,quality,stylize,chaos,weird, andseedare optional.- Default
aspect_ratiois1:1. - Default
hdisfalse. - Default
qualityis1. - Default
stylizeis0. - Default
chaosis0. - Default
weirdis0. - Default
seedis-1, which uses a random seed. - Ensure uploaded style reference image URLs are publicly accessible.
<ApiPage model={model}>
## Authentication
For authentication details, please refer to the [Authentication Guide](/docs-authentication).
## API Endpoints
### Submit Task & Query Result
## Parameters
### Task Submission Parameters
#### Request Parameters
#### Response Parameters
<SubmitResponse />
#### Result Request Parameters
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| id | string | Yes | - | Task ID |
#### Result Response Parameters
| Parameter | Type | Description |
|-----------|------|-------------|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., "success") |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction, the ID of the prediction to get |
| data.model | string | Model ID used for the prediction |
| data.outputs | string | Array of URLs to the generated content (empty when status is not completed). |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: `created`, `processing`, `completed`, or `failed` |
| data.created_at | string | ISO timestamp of when the request was created (e.g., "2023-04-01T12:34:56.789Z") |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
</ApiPage>