原生OpenAI格式
获取当前可用的模型列表。
根据请求头自动识别返回格式:
- 包含
x-api-key头时返回 Anthropic 格式 - 包含
x-goog-api-key头 或 查询参数时返回 Gemini 格式 - 其他情况返回 OpenAI 格式
GET
/v1/models
https://api.covanexus.com
Authorization
Header
Query
Authorization
Authorization BearerAuth
Authorization Bearer <token>
使用 Bearer Token 认证。格式:Authorization: Bearer $COVA_NEXUS_API_KEY
in: header
Query Parameters
key? string
Google API Key(用于 Gemini 格式)
Header Parameters
x-api-key? string
Anthropic API Key(用于 Claude 格式)
anthropic-version? string
Anthropic API 版本
x-goog-api-key? string
Google API Key(用于 Gemini 格式)
Response Body
| 状态码 | 类型 |
|---|---|
| 200 | application/json |
| 401 | application/json |
curl -X GET "https://api.covanexus.com/v1/models" \ -H "Authorization: Bearer "
200
401
{
"object": "list",
"data": [
{
"id": "gpt-4",
"object": "model",
"created": 0,
"owned_by": "openai"
}
]
}BearerAuth