Source: https://01router.com/zh/docs/models/ideogram-4.5/quote Base URL: https://01router.com/api/v1 # Ideogram 4.5 · 报价 请求体与创建任务相同。返回按价格排序的可用供应商,以及无法处理该请求的供应商及原因。 `POST /api/v1/quote` 公开接口 · 无需 API Key ## 输入参数 | Field | Type | Required | Description | Constraints | | --- | --- | --- | --- | --- | | model | string | yes | 模型目录中的 slug;项目密钥也可使用项目自定义的模型 slug。 | options: [ "ideogram-4.5" ] | | input | object | yes | 模型专属的输入对象。必填字段、默认值和限制见对应模型文档。 | | | provider | string | no | 可选供应商 slug。不传时自动路由;项目配置可能固定供应商。 | | | project | string | no | 可选项目 ID,使用该项目公开的模型目录和路由配置。 | | | input.prompt | string | yes | | | | input.image_urls | string[] | no | Optional — switches to image editing | maxItems: 1 | | input.aspect_ratio | enum | no | | default: "1:1"; options: [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3" ] | | input.quality | enum | no | | default: "medium"; options: [ "low", "medium", "high" ] | | input.num_images | integer | no | | default: 1; min: 1; max: 4 | | input.seed | integer | no | | min: 0; max: 2147483647 | ## 输出字段 | Field | Type | Required | Description | Constraints | | --- | --- | --- | --- | --- | | model | string | — | 模型目录中的 slug;项目密钥也可使用项目自定义的模型 slug。 | | | input | object | — | 模型专属的输入对象。必填字段、默认值和限制见对应模型文档。 | | | providers | array | — | 按价格排序的可用供应商,包含 unit、quantity、price_usd、original_price_usd 和 credits。 | | | unavailable | array | — | 无法处理此请求的供应商及原因。 | | ## cURL ```bash curl 'https://01router.com/api/v1/quote' \ -H "Content-Type: application/json" \ -d '{ "model": "ideogram-4.5", "input": { "prompt": "A cinematic landscape at sunrise.", "aspect_ratio": "1:1", "quality": "medium", "num_images": 1 } }' ``` ## 200 · application/json ```json { "model": "ideogram-4.5", "type": "image", "input": { "prompt": "A cinematic landscape at sunrise.", "aspect_ratio": "1:1", "quality": "medium", "num_images": 1 }, "providers": [ { "provider": "01router", "provider_name": "01Router", "unit": "second", "quantity": 5, "price_usd": 1, "original_price_usd": null, "credits": 100 } ], "unavailable": [] } ```