This API provides low-latency access to Midjourney’s FAST generation capabilities.
Generate new images from a text prompt
POST /imagine
{
"prompt": "A cute puppy playing in the grass",
"webhook": "https://yourwebhook.com" // optional
}
Returns: {
"job_id": "12345...",
"prompt": "A cute puppy playing in the grass",
"webhook": "https://yourwebhook.com", // optional
"status": "pending",
}
Upscale an existing image to high resolution
POST /upscale
{
"job_id": "12345...",
"variation": 2,
"webhook": "https://yourwebhook.com" // optional
}
Returns: {
"job_id": "12345...",
"parent_job_id": "12345...",
"prompt": "A cute puppy playing in the grass",
"webhook": null,
"variation": 1,
"image_url": "https://midjourney-public...",
"job_type": "upscale",
"status": "completed"
}
Generate a new image from a prompt and upscale it. Combines the above two endpoints.
POST /api/imagine-and-upscale
{
"prompt": "A cute puppy playing in the grass",
"webhook": "https://yourwebhook.com" // optional
}
Returns: {
"job_id": "12345...",
"prompt": "A cute puppy playing in the grass",
"webhook": "https://yourwebhook.com", // optional
"image_url": "https://midjourney-public....",
"status": "completed",
"upscales": [
{
"job_id": "12345...",
"parent_job_id": "56789...",
"prompt": "A cute puppy playing in the grass",
"webhook": null,
"variation": 1,
"image_url": "https://midjourney-public....",
"job_type": "upscale",
"status": "completed"
},
{
"job_id": "12345...",
"parent_job_id": "56789...",
"prompt": "A cute puppy playing in the grass",
"webhook": null,
"variation": 2,
"image_url": "https://midjourney-public....",
"job_type": "upscale",
"status": "completed"
},
{
"job_id": "12345...",
"parent_job_id": "56789...",
"prompt": "A cute puppy playing in the grass",
"webhook": null,
"variation": 3,
"image_url": "https://midjourney-public....",
"job_type": "upscale",
"status": "completed"
},
{
"job_id": "12345...",
"parent_job_id": "56789...",
"prompt": "A cute puppy playing in the grass",
"webhook": null,
"variation": 4,
"image_url": "https://midjourney-public...",
"job_type": "upscale",
"status": "completed"
}
]
}
Check generation status and retrieve image URLs
GET /status/:job_id
Returns: {
"job_id": "12345...",
"parent_job_id": "56789...",
"prompt": "A cute puppy playing in the grass",
"webhook": null,
"variation": 4,
"image_url": "https://midjourney-public...",
"job_type": "upscale",
"status": "completed"
}
This API is powered by Midjourney’s FAST image generation for speed and ephemeral image URLs. Create amazing images instantly!