Seedance 2.0 DISKON 15% | Buat di Video Generator →

Midjourney Text to Image API

midjourney /

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.

text-to-image
Input

Seret & lepas atau klik untuk mengunggah

Enable native 2k HD generation for version 8.1.
The random seed to use for the generation.

Siap

A photorealistic fashion portrait of an adult woman standing in a room filled with tall mirrors, wearing a silver satin dress, multiple reflections around her, soft studio lighting, elegant mysterious expression, luxury editorial photography, cinematic composition, ultra-detailed, no text
A photorealistic fashion portrait of an adult woman standing in a room filled with tall mirrors, wearing a silver satin dress, multiple reflections around her, soft studio lighting, elegant mysterious expression, luxury editorial photography, cinematic composition, ultra-detailed, no text
A photorealistic fashion portrait of an adult woman standing in a room filled with tall mirrors, wearing a silver satin dress, multiple reflections around her, soft studio lighting, elegant mysterious expression, luxury editorial photography, cinematic composition, ultra-detailed, no text
A photorealistic fashion portrait of an adult woman standing in a room filled with tall mirrors, wearing a silver satin dress, multiple reflections around her, soft studio lighting, elegant mysterious expression, luxury editorial photography, cinematic composition, ultra-detailed, no text

$0.1per run·~10 / $1

Selanjutnya:

ContohLihat semua

A photorealistic fashion portrait of an adult woman standing in a room filled with tall mirrors, wearing a silver satin dress, multiple reflections around her, soft studio lighting, elegant mysterious expression, luxury editorial photography, cinematic composition, ultra-detailed, no text

A photorealistic fashion portrait of an adult woman standing in a room filled with tall mirrors, wearing a silver satin dress, multiple reflections around her, soft studio lighting, elegant mysterious expression, luxury editorial photography, cinematic composition, ultra-detailed, no text

ultra-realistic, cinematic lighting, soft focus, aesthetic composition, delicate details, beautiful color grading, serene atmosphere, masterpiece photography style, elegant and poetic feeling .

ultra-realistic, cinematic lighting, soft focus, aesthetic composition, delicate details, beautiful color grading, serene atmosphere, masterpiece photography style, elegant and poetic feeling .

A lone, heavily armored knight made of stained glass, standing guard at the shattered gate of a crystal palace floating in a void of swirling galaxies. Cracks in the glass armor leak faint, colorful light. Dramatic low-angle shot, octane render, volumetric nebula lighting, sense of duty and loss.

A lone, heavily armored knight made of stained glass, standing guard at the shattered gate of a crystal palace floating in a void of swirling galaxies. Cracks in the glass armor leak faint, colorful light. Dramatic low-angle shot, octane render, volumetric nebula lighting, sense of duty and loss.

ultra-realistic, cinematic lighting, soft focus, aesthetic composition, delicate details, beautiful color grading, serene atmosphere, masterpiece photography style, elegant and poetic feeling — add the text “MJ” subtly in the bottom right corner of the image

ultra-realistic, cinematic lighting, soft focus, aesthetic composition, delicate details, beautiful color grading, serene atmosphere, masterpiece photography style, elegant and poetic feeling — add the text “MJ” subtly in the bottom right corner of the image

Cinematic action frame capturing the climax of a wizard duel. Two mages, one cloaked in shadow wielding green necrotic energy, the other in white robes wielding golden divine light, clash their spells in the center of a crumbling cathedral interior. Sparks, debris, and magical particles explode outwards. Dynamic Dutch angle, motion blur, high fantasy art, style of Magic the Gathering illustration.

Cinematic action frame capturing the climax of a wizard duel. Two mages, one cloaked in shadow wielding green necrotic energy, the other in white robes wielding golden divine light, clash their spells in the center of a crumbling cathedral interior. Sparks, debris, and magical particles explode outwards. Dynamic Dutch angle, motion blur, high fantasy art, style of Magic the Gathering illustration.

Cinematic establishing shot for a sci-fi film. Ultra-wide angle view of a colossal, ancient alien derelict spaceship half-buried in the crimson sands of a desolate desert planet under twin suns. Tiny human explorers in white suits stand near its base for scale. Golden hour lighting, atmospheric dust, photorealistic matte painting, style of Denis Villeneuve.

Cinematic establishing shot for a sci-fi film. Ultra-wide angle view of a colossal, ancient alien derelict spaceship half-buried in the crimson sands of a desolate desert planet under twin suns. Tiny human explorers in white suits stand near its base for scale. Golden hour lighting, atmospheric dust, photorealistic matte painting, style of Denis Villeneuve.

Surreal cinematic shot. A fully furnished, vintage living room (armchair, lamp, bookshelf) is completely submerged underwater. Sunlight filters down from the surface, creating rippling caustic patterns on the furniture. A lone figure in a flowing white dress floats peacefully in the center of the room. Ethereal, dreamlike atmosphere, photorealistic, style of Gregory Crewdson.

Surreal cinematic shot. A fully furnished, vintage living room (armchair, lamp, bookshelf) is completely submerged underwater. Sunlight filters down from the surface, creating rippling caustic patterns on the furniture. A lone figure in a flowing white dress floats peacefully in the center of the room. Ethereal, dreamlike atmosphere, photorealistic, style of Gregory Crewdson.

Model Terkait

README

Midjourney Text-to-Image

Midjourney Text-to-Image generates high-quality images from natural-language prompts with flexible aspect ratios, style controls, reference image guidance, and support for multiple Midjourney model versions. It is suitable for concept art, stylized visuals, cinematic imagery, anime-inspired art, and other prompt-driven image generation workflows.

Why Choose This?

  • Flexible Midjourney model versions Choose from 6, 6.1, 7, or 8.1 depending on your preferred look and behavior.

  • Strong style control Fine-tune the result with stylize, chaos, and weird to balance coherence, creativity, and experimental output.

  • Reference image support Use sref to guide the generated image toward a desired visual direction.

  • Aspect ratio control Supports square, portrait, landscape, and cinematic aspect ratios.

  • Optional HD generation Version 8.1 supports optional native 2k HD generation.

  • Anime-focused mode Use niji settings when you want anime or Eastern-aesthetic results.

Parameters

ParameterRequiredDescription
promptYesThe text prompt describing the image you want to generate.
srefNoURL of the image to use as a style reference for generation.
aspect_ratioNoAspect ratio of the generated image. Supported values: 1:1, 9:16, 16:9, 4:3, 3:4, 2:3, 3:2, 9:21, 21:9. Default: 1:1.
qualityNoControls image detail and processing time. Supported values: 0.25, 0.5, 1, 2. Default: 1.
stylizeNoControls artistic styling strength. Range: 0–1000. Default: 0.
chaosNoAdds variety and unpredictability to results. Range: 0–100. Default: 0.
weirdNoMakes the result more quirky or unconventional. Range: 0–3000. Default: 0.
versionNoMidjourney model version. Supported values: 6, 6.1, 7, 8.1. Default: 8.1.
hdNoEnable native 2k HD generation for version 8.1. Default: false.
nijiNoAnime/Eastern-aesthetic mode selection. Supported values: 0, 5, 6, 7, close. Default: close.
seedNoSeed for reproducibility. Use -1 for random generation. Default: -1.

How to Use

  1. Write your prompt — describe the subject, style, lighting, mood, and composition you want.
  2. Choose aspect ratio — select the output framing that fits your use case.
  3. Set style controls (optional) — adjust stylize, chaos, and weird for more artistic or experimental results.
  4. Choose version — use the Midjourney version that best matches your workflow.
  5. Enable HD (optional) — turn on hd if you are using version 8.1 and want higher-resolution output.
  6. Add a reference image (optional) — use sref when you want stronger style guidance.
  7. Set seed (optional) — use -1 for random output, or a fixed seed for more reproducible results.
  8. Submit — run the model and download the generated image.

Example Prompt

A cinematic sci-fi city street at night, neon reflections on wet pavement, dramatic fog, ultra-detailed architecture, moody lighting, dynamic composition

Pricing

Pricing is fixed per image, with an additional charge for HD generation on version 8.1.

ModeCost
Standard generation$0.10
Version 8.1 with hd=true$0.15

Billing Rules

  • Base price is $0.10 per image
  • Enabling hd adds a surcharge only when version = 8.1
  • version = 8.1 with hd=true costs $0.15 per image
  • aspect_ratio, quality, stylize, chaos, weird, niji, seed, and sref do not affect pricing

Best Use Cases

  • Concept art — Explore visual directions for environments, characters, and products.
  • Stylized illustration — Generate artistic, cinematic, or graphic compositions from text prompts.
  • Anime-inspired imagery — Use niji settings for anime and Eastern-aesthetic outputs.
  • Marketing creatives — Produce eye-catching visuals for campaigns, ads, and presentations.
  • Reference-guided ideation — Use sref to push the output closer to a target style or mood.

Pro Tips

  • Use stylize when you want a stronger artistic interpretation.
  • Increase chaos when you want more variation and less predictability.
  • Use weird sparingly when you want unusual or surreal results.
  • Only enable hd when you need the extra resolution, since it increases cost.
  • Use sref when style consistency matters more than purely prompt-based generation.
  • Keep seed fixed when comparing prompt or parameter changes across runs.

Notes

  • prompt is required.
  • hd only applies to version 8.1.
  • seed = -1 means random generation.
  • niji is intended for anime and Eastern-style visual output.
  • Pricing is fixed per image, with a higher price only for 8.1 HD generation.

Related Models

  • Other Midjourney image generation workflows — Useful when you want different generation modes or prompt setups.
  • Reference-guided image generation workflows — Useful when style steering from an image matters more heavily.
  • Anime-focused image generation workflows — Useful when stylized illustration and character art are the main priority.
Aksesibilitas:Situs web ini menggunakan model AI yang disediakan oleh pihak ketiga.

Text To Image API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/midjourney/text-to-image with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Text To Image below.

HTTP example
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/midjourney/text-to-image" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "aspect_ratio": "1:1",
    "quality": 1,
    "stylize": 0,
    "chaos": 0,
    "weird": 0,
    "version": "8.1",
    "hd": false,
    "niji": "close",
    "seed": -1,
    "enable_base64_output": false
}'

# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# When status is "completed", read the output from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');

const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env

const result = await client.run("midjourney/text-to-image", {
        "prompt": "A cinematic shot of a city at sunset, soft golden light",
        "aspect_ratio": "1:1",
        "quality": 1,
        "stylize": 0,
        "chaos": 0,
        "weird": 0,
        "version": "8.1",
        "hd": false,
        "niji": "close",
        "seed": -1,
        "enable_base64_output": false
});

console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "midjourney/text-to-image",
    {
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "aspect_ratio": "1:1",
    "quality": 1,
    "stylize": 0,
    "chaos": 0,
    "weird": 0,
    "version": "8.1",
    "hd": false,
    "niji": "close",
    "seed": -1,
    "enable_base64_output": false
}
)

print(output["outputs"][0])  # → URL of the generated output

Text To Image API — Frequently asked questions

What is the Text To Image API?

Text To Image is a Midjourney model for image generation, exposed as a REST API 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. You can call it programmatically or try it from the playground above.

How do I call the Text To Image API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/midjourney/midjourney-text-to-image.

How much does Text To Image cost per run?

Text To Image starts at $0.10 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.

What inputs does Text To Image accept?

Key inputs: `prompt`, `aspect_ratio`, `seed`, `chaos`, `enable_base64_output`, `hd`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/midjourney/midjourney-text-to-image.

How long does Text To Image take to generate?

Average end-to-end generation time on WaveSpeedAI is around 47 seconds per request — measured across recent runs. Queue time scales with global demand; live status is visible in the prediction record.

Can I use Text To Image outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (Midjourney). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.