Skip to main content
GET /api/models
Returns a list of all active AI models available for generation. This is a public endpoint — no authentication required. The response is cached for 5 minutes.

Response

Returns an object with a models array:
id
string
The unique model identifier. Use this as modelId when generating.
name
string
The display name of the model.
provider
string
The model provider (e.g., “Google”, “ByteDance”, “Midjourney”).
credits_per_generation
number
Base credits consumed per generation.
supported_ratios
string[]
Array of supported aspect ratios (e.g., ["1:1", "3:4", "16:9"]).
max_reference_images
number
Maximum number of reference images accepted (0 = not supported).
media_type
string
Output type: "image" or "video".
extra_config
object
Additional model-specific configuration (resolutions, pricing tiers, tags, etc.).

Example

curl https://www.meigen.ai/api/models
{
  "success": true,
  "models": [
    {
      "id": "nanobanana-2",
      "name": "Nanobanana 2",
      "provider": "Google",
      "credits_per_generation": 5,
      "supported_ratios": ["1:1", "3:4", "4:5", "2:3", "9:16", "4:3", "5:4", "3:2", "16:9", "21:9"],
      "max_reference_images": 5,
      "media_type": "image",
      "extra_config": {
        "tags": ["New"]
      }
    },
    {
      "id": "seedream-5.0-lite",
      "name": "Seedream 5.0 Lite",
      "provider": "ByteDance",
      "credits_per_generation": 5,
      "supported_ratios": ["1:1", "3:4", "4:3", "16:9", "9:16", "3:2", "2:3"],
      "max_reference_images": 5,
      "media_type": "image",
      "extra_config": {
        "tags": ["New"],
        "resolutions": ["2K", "3K"]
      }
    }
  ]
}