Loading...

Midjourney /imagine Command

Master AI image generation and integrate it into your applications using our /diffusion API.

What is /imagine?

The /imagine command is Midjourney's core functionality for generating AI images from text prompts.

Text-to-image generation
Advanced parameters control
Multiple variations

Basic Usage

/imagine prompt: A beautiful sunset over mountains --v 6 --ar 16:9

--v 6: Midjourney version 6

--ar 16:9: 16:9 aspect ratio

Use /diffusion API

Integrate Midjourney's /imagine functionality directly into your applications.

API Example

curl --location 'https://api.legnext.ai/api/v1/diffusion' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
    "text": "A beautiful sunset over the snow mountains --v 7",
    "callback": "https://webhook.site/c98cb890-fb92-439f-8d60-42c8a51eb52d"
}'

Parameters

  • text: Your prompt
  • callback: Webhook URL

Response

Returns job ID for tracking progress

Popular Use Cases

Common ways to use the /imagine command for different content types.

/imagine prompt: Futuristic city skyline, cyberpunk style --v 6 --ar 16:9

Digital Art

Concept art and digital illustrations

/imagine prompt: Professional headshot, corporate style --v 6 --ar 1:1

Professional Photos

Marketing and presentation images

/imagine prompt: Product mockup, modern smartphone --v 6 --ar 4:3

Product Visualization

E-commerce and marketing mockups

/imagine prompt: Fantasy landscape, dragons and castles --v 6 --ar 21:9

Gaming Assets

Game and entertainment content

Ready to Start Generating?

Get started with our /diffusion API today.