1. API Key 管理
AIone API
  • 引言
    • 快速开始
    • 认证方式
    • 错误码说明
    • 定价说明
    • 联系我们
    • 服务质量保障
    • 完整请求案例
    • 关于缓存与成本优化
    • 模型质量监控与保障
    • 关于模型真实性验证
    • 在IDE中使用AIone
    • 网络与连接说明
    • 模型命名与兼容规则
    • Gemini 图片生成
  • 聊天(Chat)
    • 基础文本对话
      POST
    • 流式响应
      POST
  • 模型(Models)
    • 获取模型列表
      GET
    • List Models
      GET
  • API Key 管理
    • List Keys
      GET
    • Create Key
      POST
    • Get Key
      GET
    • Update Key
      PUT
    • Delete Key
      DELETE
    • Rotate Key
      PUT
    • Disable Key
      PUT
    • Enable Key
      PUT
  • 用量统计
    • Query Usage
    • Get Dashboard
  • 账单
    • Get Current Plan
    • Get Billing Account
    • List Invoices
  • 数据模型
    • HTTPValidationError
    • DashboardResponse
    • KeyCreateRequest
    • KeyListResponse
    • PlanDetailResponse
    • ModelListResponse
    • KeyResponse
    • InvoiceListResponse
    • KeyRotateResponse
    • BillingAccountResponse
    • UsageRow
    • KeyUpdateRequest
    • ValidationError
    • TechDashboardData
    • ModelInfo
    • BusinessDashboardData
    • DailyTrend
    • TeamCostItem
    • ModelDistribution
  1. API Key 管理

Get Key

GET
/api/v1/gateway/keys/{key_id}

请求参数

Authorization
Path 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/gateway/keys/' \
--header 'Authorization: Bearer <token>'

返回响应

🟢200
application/json
Successful Response
Body

示例
{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
    "team_id": "810007d0-bec5-486c-b5d1-28fcd8a079ba",
    "name": "string",
    "key": "string",
    "key_prefix": "string",
    "models_allowed": [
        "string"
    ],
    "rpm_limit": 0,
    "tpm_limit": 0,
    "is_sandbox": true,
    "allowed_ips": [
        "string"
    ],
    "expires_at": "2019-08-24T14:15:22.123Z",
    "rotate_grace_until": "2019-08-24T14:15:22.123Z",
    "status": "string",
    "created_at": "string"
}
🟠422
修改于 2026-03-30 15:31:45
上一页
Create Key
下一页
Update Key
Built with