跳转到主要内容
GET /api/models
返回所有可用于生成的活跃 AI 模型列表。这是一个公开端点 — 无需认证。 响应缓存 5 分钟。

响应

返回包含 models 数组的对象:
id
string
模型的唯一标识符。生成时用作 modelId
name
string
模型的显示名称。
provider
string
模型供应商(如 “Google”、“ByteDance”、“Midjourney”)。
credits_per_generation
number
每次生成消耗的基础积分。
supported_ratios
string[]
支持的宽高比数组(如 ["1:1", "3:4", "16:9"])。
max_reference_images
number
接受的最大参考图片数量(0 = 不支持)。
media_type
string
输出类型:"image""video"
extra_config
object
额外的模型特定配置(分辨率、定价层级、标签等)。

示例

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"]
      }
    }
  ]
}