OpenAI-Compatible Endpoint

MuAPI exposes an OpenAI-compatible image generation API so any app that already speaks the OpenAI protocol works out of the box — no plugins, no code changes.

FieldValue
Base URLhttps://api.muapi.ai/v1
Auth headerAuthorization: Bearer <your-api-key>
EndpointsGET /v1/models · POST /v1/images/generations

Available models

FLUX 1

Model IDDescription
flux-schnellFast generation (~5 s). Default.
flux-devHigher quality (~20 s).
flux-kontext-devFLUX Kontext T2I — dev.
flux-kontext-proFLUX Kontext T2I — pro.
flux-kontext-maxFLUX Kontext T2I — max.

FLUX 2

Model IDDescription
flux-2-devFLUX 2 Dev.
flux-2-flexFLUX 2 Flex.
flux-2-proFLUX 2 Pro.
flux-2-klein-4bFLUX 2 Klein 4B.
flux-2-klein-4b-turboFLUX 2 Klein 4B Turbo.
flux-2-klein-9bFLUX 2 Klein 9B.
flux-2-klein-9b-turboFLUX 2 Klein 9B Turbo.

HiDream

Model IDDescription
hidream-fastHiDream-I1 Fast.
hidream-devHiDream-I1 Dev.
hidream-fullHiDream-I1 Full — highest quality.

Seedream

Model IDDescription
seedreamByteDance Seedream (v3).
seedream-v4ByteDance Seedream v4.
seedream-v4.5ByteDance Seedream v4.5.
seedream-5.0Seedream 5.0.

Nano Banana

Model IDDescription
nano-bananaNano Banana.
nano-banana-proNano Banana Pro.
nano-banana-2Nano Banana 2.

Kling Image

Model IDDescription
kling-o1Kling O1 text-to-image.
kling-o3Kling O3 text-to-image.

Hunyuan

Model IDDescription
hunyuan-2.1Hunyuan Image 2.1.
hunyuan-3.0Hunyuan Image 3.0.

Other models

Model IDDescription
reveReve text-to-image.
ideogram-v3Ideogram v3.
chromaChroma image generation.
sdxlStable Diffusion XL.
z-imageZ-Image P.
qwenQwen text-to-image.
vidu-q2Vidu Q2 text-to-image.
grok-imagineGrok Imagine.
grok-imagine-qualityGrok Imagine (quality mode).
wan2.1-t2iWan 2.1 text-to-image.
wan2.5-t2iWan 2.5 text-to-image.
wan2.6-t2iWan 2.6 text-to-image.
wan2.7-t2iWan 2.7 text-to-image.
wan2.7-t2i-proWan 2.7 text-to-image Pro.
midjourneyMidjourney v7 text-to-image.
gpt4oGPT-4o text-to-image.
gpt-image-2GPT Image 2 text-to-image.

DALL-E aliases

Model IDRoutes to
dall-e-3flux-schnell
dall-e-2flux-schnell

The dall-e-3 / dall-e-2 aliases let apps that hard-code DALL-E model names work without any configuration change.


Quick test

# List models
curl https://api.muapi.ai/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"

# Generate an image
curl https://api.muapi.ai/v1/images/generations \
  -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-schnell",
    "prompt": "A golden retriever surfing on a neon wave, cinematic",
    "n": 1,
    "size": "1024x1024"
  }'

Response:

{
  "created": 1719411200,
  "data": [
    { "url": "https://cdn.muapi.ai/..." }
  ]
}

Supported sizes

sizeDimensions
1024x1024Square (default)
1792x1024Landscape
1024x1792Portrait

Open WebUI

  1. Go to Admin Panel → Settings → Images
  2. Set Image Generation Engine to OpenAI
  3. Set API Base URL to https://api.muapi.ai/v1
  4. Set API Key to your MuAPI key
  5. Set Image Model to flux-schnell (or flux-dev for higher quality)
  6. Click Save — the 📷 image button in any chat thread is now powered by MuAPI

LM Studio

  1. Open My Models → Image Models
  2. Click Add Custom Endpoint
  3. Set Base URL to https://api.muapi.ai/v1
  4. Set API Key to your MuAPI key
  5. Choose flux-schnell or flux-dev as the model

AnythingLLM

  1. Go to Settings → AI Providers → Image Generation
  2. Select OpenAI as the provider
  3. Set Base URL to https://api.muapi.ai/v1
  4. Set API Key to your MuAPI key
  5. Set Model to flux-schnell

Any other OpenAI-compatible app

Point the app's OpenAI base URL to https://api.muapi.ai/v1 and provide your MuAPI key as the API key. If the app asks for an image model name, use any model ID from the table above — flux-schnell (fastest default), flux-dev, midjourney, gpt4o, nano-banana, seedream-5.0, and 40+ others. Apps that hard-code dall-e-3 or dall-e-2 also work without any changes.


Get your API key

Sign up at muapi.ai and go to Dashboard → API Keys → Create Key.