切换外观
列出 Coding Plan OpenAI 可用模型
只返回当前账号套餐支持的在架模型。
GET/v1/coding/models- 鉴权与权益
- api-key-only
- 入口语境
- coding-plan
GET /v1/coding/models 接口
方法:
GET路径:
/v1/coding/models入口家族:
coding-plan计费语境:
coding-plan调用前置:
api-key-only
鉴权
BearerAuth
请求
此操作没有运行时请求参数或请求体。
响应
| 状态 | 说明 | Schema |
|---|---|---|
| 200 | 成功 | {"$ref":"#/components/schemas/OpenAiModelListResponse"} |
| 401 | API Key 无效或供应商同状态响应 | {"$ref":"#/components/schemas/OpenAiError"} |
| 500 | 平台内部错误或供应商同状态响应 | {"$ref":"#/components/schemas/OpenAiError"} |
流式行为
non-streaming
错误
invalid_api_keyinternal_error
限制
只鉴权,不预留套餐、不扣余额仅返回当前有效 Coding Plan 支持的在架模型
兼容性
inventory:contract-coding-openai-modelsprotocol:openai-compatible
可执行示例
cURL
sh
curl --request GET "${TOKENFACTORY_API_BASE_URL}/v1/coding/models" --silent --show-error --fail-with-body --max-time 60 --header "Authorization: Bearer ${TOKENFACTORY_API_KEY}"