Midjourney API
Service discontinued
Midjourney API service is no longer provided by PiAPI.
PiAPI no longer provides the Midjourney API service. Visit LegNext.ai for similar image-generation services.
Pay-as-you-go access through PiAPI.
Service discontinued
Midjourney API service is no longer provided by PiAPI.
Capabilities from the production model page.
Midjourney API service is no longer provided by PiAPI.
LegNext.ai provides similar image-generation services.
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Add credits on the billing page when you are ready to scale beyond the free tier.
POST your first task following the API docs, then poll the task until the result is ready.
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "midjourney",
"task_type": "imagine",
"input": {
"prompt": "a cute puppy",
"aspect_ratio": "1:1",
"process_mode": "fast",
"skip_prompt_check": false
}
}'
# → { "task_id": "9d5a…", "status": "pending" }curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'
# poll until status = completed
{
"data": {
"status": "completed",
"output": {
"image_url": "https://img.theapi.app/ephemeral/…"
}
}
}$ npm install -g piapi-cli $ piapi run midjourney-api \ prompt="a cute puppy" \ aspect_ratio=1:1 \ process_mode=fast \ skip_prompt_check=false ✓ Task completed! https://img.theapi.app/ephemeral/…
Midjourney API service is no longer provided by PiAPI.
LegNext.ai provides similar image-generation services.
More questions? See the API docs.
Midjourney API