Image Generation
Generate images from text prompts with Muapi's image models. Choose a model from the model catalog, submit a request through the unified API or OpenAI-compatible endpoint, then retrieve the result.
Choose a model
Muapi provides image generation and editing models across several model families. Browse the model catalog or use the Playground to compare models and options.
Generate an image
For apps that support the OpenAI image API, use Muapi's OpenAI-compatible image endpoint:
curl https://api.muapi.ai/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-schnell",
"prompt": "A small greenhouse in a rainy city at night",
"size": "1024x1024"
}'
Use an image model ID from the OpenAI-compatible API guide. For model-specific parameters, use that model's unified API endpoint and follow its schema.
Choose an integration
- OpenAI-compatible API — connect apps and SDKs that accept OpenAI image endpoints.
- Muapi CLI — generate images from a terminal or script.
- ComfyUI — build visual generation workflows.
- Quick Start — make a first API request.