Source: https://01router.com/zh/docs/models/recraft-v4/model-detail Base URL: https://01router.com/api/v1 # Recraft V4 · 查询单个模型 模型对象包含 slug、name、type、vendor、params 和 providers。供应商条目包含其实际参数和价格档位。 `GET /api/v1/models/{slug}` 公开接口 · 无需 API Key ## 输入参数 | Field | Type | Required | Description | Constraints | | --- | --- | --- | --- | --- | | slug | string · path | yes | 模型目录中的 slug;项目密钥也可使用项目自定义的模型 slug。 | options: [ "recraft-v4" ] | ## 输出字段 | Field | Type | Required | Description | Constraints | | --- | --- | --- | --- | --- | | slug | string | — | 模型目录中的 slug;项目密钥也可使用项目自定义的模型 slug。 | | | params | array | — | 参数定义:name、type、required、default、options,以及已配置的 min、max、maxItems、maxLength。 | | | providers | array | — | 可用供应商、各自的参数约束及公开价格档位。 | | ## cURL ```bash curl 'https://01router.com/api/v1/models/recraft-v4' ``` ## 200 · application/json ```json { "slug": "recraft-v4", "name": "Recraft V4", "type": "image", "vendor": "Recraft", "description": "Recraft V4: brand-consistent illustrations, icons and design assets.", "tags": [ "text-to-image", "design" ], "coverUrl": "", "params": [ { "name": "prompt", "type": "text", "label": "Prompt", "required": true }, { "name": "aspect_ratio", "type": "enum", "label": "Aspect ratio", "options": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3" ], "default": "1:1" } ], "providers": [ { "provider": "fal", "providerName": "fal.ai", "discount": 90, "preferred": false, "params": [ { "name": "prompt", "type": "text", "label": "Prompt", "required": true }, { "name": "aspect_ratio", "type": "enum", "label": "Aspect ratio", "options": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3" ], "default": "1:1" } ], "prices": [ { "unit": "image", "conditions": {}, "priceMicros": 36000, "originalMicros": 40000, "credits": 4 } ] }, { "provider": "replicate", "providerName": "Replicate", "discount": 90, "preferred": false, "params": [ { "name": "prompt", "type": "text", "label": "Prompt", "required": true }, { "name": "aspect_ratio", "type": "enum", "label": "Aspect ratio", "options": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3" ], "default": "1:1" } ], "prices": [ { "unit": "image", "conditions": {}, "priceMicros": 36000, "originalMicros": 40000, "credits": 4 } ] }, { "provider": "wavespeed", "providerName": "WaveSpeedAI", "discount": 90, "preferred": false, "params": [ { "name": "prompt", "type": "text", "label": "Prompt", "required": true }, { "name": "aspect_ratio", "type": "enum", "label": "Aspect ratio", "options": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3" ], "default": "1:1" } ], "prices": [ { "unit": "image", "conditions": {}, "priceMicros": 36000, "originalMicros": 40000, "credits": 4 } ] }, { "provider": "vercel", "providerName": "Vercel AI Gateway", "discount": 90, "preferred": false, "params": [ { "name": "prompt", "type": "text", "label": "Prompt", "required": true }, { "name": "aspect_ratio", "type": "enum", "label": "Aspect ratio", "options": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3" ], "default": "1:1" } ], "prices": [ { "unit": "image", "conditions": {}, "priceMicros": 36000, "originalMicros": 40000, "credits": 4 } ] } ], "fromMicros": 36000, "fromOriginalMicros": 40000, "fromUnit": "image" } ```