跳转到主要内容
GET /api/models
返回所有可用于生成的活跃 AI 模型列表。公开端点,无需认证。

响应

{ success: true, models: [...] }。每个模型对象包含:
id
string
模型唯一标识符。生成时用作 modelId
name
string
显示名称。
provider
string
模型供应商家族(如 OpenAI / Google / ByteDance / Midjourney)。仅供展示,不是请求参数。
credits_per_generation
number
每次生成消耗的积分。按秒计费的视频模型请参考 extra_config.pricingPerSec 中的实际费率。
supported_ratios
string[]
aspectRatio 接受的取值。Seedance 另支持 "adaptive"
max_reference_images
number
最大参考图片数量(0 表示该模型不支持参考图)。
media_type
string
"image""video"
extra_config
object
模型特定配置。可放心使用的字段:
字段适用模型说明
resolutions图片 / 视频resolution 允许的取值(图片 "1K" / "2K" / "3K" / "4K",视频 "480p" / "720p" / "1080p"
tiersSeedance 2.0可选档位(fast / pro),通过 tier 选择
durationsSeedance 2.0duration 允许的取值(秒)
pricingPerSecSeedance 2.0每秒积分,按档位再按分辨率分级
pricingPerSecWithVideoSeedance 2.0提供 referenceVideo 时的每秒积分,按档位再按分辨率分级
minBillableTableSeedance 2.0续写场景按 duration 的最低计费秒数
响应里可能出现其他键,未列在上表的请视为信息性字段,随时可能调整。

示例

curl https://www.meigen.ai/api/models
{
  "success": true,
  "models": [
    {
      "id": "gemini-3-pro-image-preview",
      "name": "Nanobanana Pro",
      "provider": "Google",
      "credits_per_generation": 10,
      "supported_ratios": ["1:1", "3:2", "2:3", "16:9", "9:16", "4:3", "3:4", "4:5", "5:4", "21:9"],
      "max_reference_images": 5,
      "media_type": "image",
      "extra_config": {}
    },
    {
      "id": "seedance-2-0",
      "name": "Seedance 2.0",
      "provider": "ByteDance",
      "credits_per_generation": 60,
      "supported_ratios": ["adaptive", "16:9", "4:3", "1:1", "3:4", "9:16", "21:9"],
      "max_reference_images": 2,
      "media_type": "video",
      "extra_config": {
        "tiers": ["fast", "pro"],
        "resolutions": ["480p", "720p", "1080p"],
        "durations": [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
      }
    }
  ]
}
示例中只列出了两个代表模型。实际端点返回全部启用模型;响应会做短暂缓存。