---
title: API 金鑰物件 | RunAPI
description: 可驗證 RunAPI 請求的標準 API 金鑰。其明文值不屬於此可重用物件的一部分。
url: https://runapi.ai/zh-HK/docs/api/management/keys/object.md
canonical: https://runapi.ai/zh-HK/docs/api/management/keys/object
locale: zh-HK
---

> HTML 版本: https://runapi.ai/zh-HK/docs/api/management/keys/object
> 智能代理網站索引: https://runapi.ai/llms.txt

# API 金鑰物件

可驗證 RunAPI 請求的標準 API 金鑰。其明文值不屬於此可重用物件的一部分。

## 物件欄位

資源可重用物件共享的穩定欄位。

### API 金鑰

```json
{
  "allowed_models": {
    "description": "可選的模型白名單。",
    "required": true,
    "type": "array | null"
  },
  "created_at": {
    "description": "金鑰的建立時間。",
    "required": true,
    "type": "string"
  },
  "credit_limit_cents": {
    "description": "以美分為單位的可選金鑰消費上限。",
    "required": true,
    "type": "integer | null"
  },
  "credit_limit_reset_interval": {
    "description": "可選的金鑰消費上限重置週期。",
    "enum": [
      "daily",
      "weekly",
      "monthly",
      null
    ],
    "required": true,
    "type": "string | null"
  },
  "credit_limit_windows": {
    "description": "以支援的窗口持續時間為鍵的滾動消費上限。",
    "properties": {
      "1d": {
        "description": "",
        "properties": {
          "limit_cents": {
            "description": "此滾動窗口的消費上限，以美分為單位。",
            "required": true,
            "type": "integer"
          }
        },
        "required": false,
        "type": "credit_limit_window"
      },
      "1h": {
        "description": "",
        "properties": {
          "limit_cents": {
            "description": "此滾動窗口的消費上限，以美分為單位。",
            "required": true,
            "type": "integer"
          }
        },
        "required": false,
        "type": "credit_limit_window"
      },
      "7d": {
        "description": "",
        "properties": {
          "limit_cents": {
            "description": "此滾動窗口的消費上限，以美分為單位。",
            "required": true,
            "type": "integer"
          }
        },
        "required": false,
        "type": "credit_limit_window"
      }
    },
    "required": true,
    "type": "credit_limit_windows"
  },
  "enabled": {
    "description": "此金鑰是否能驗證請求身份。",
    "required": true,
    "type": "boolean"
  },
  "guardrail_id": {
    "description": "已附加的防護欄前綴 ID",
    "required": true,
    "type": "string | null"
  },
  "id": {
    "description": "API 金鑰前綴 ID。",
    "required": true,
    "type": "string"
  },
  "last_used_at": {
    "description": "金鑰的最後使用時間",
    "required": true,
    "type": "string | null"
  },
  "masked_token": {
    "description": "已遮蔽的 API 金鑰值。",
    "required": true,
    "type": "string"
  },
  "name": {
    "description": "友好的 API 金鑰名稱。",
    "required": true,
    "type": "string"
  }
}
```

## 相關參考資料

- [API 金鑰](https://runapi.ai/zh-HK/docs/api/management/keys.md)
- [列出 API 金鑰](https://runapi.ai/zh-HK/docs/api/management/keys/list.md)
- [擷取 API 金鑰](https://runapi.ai/zh-HK/docs/api/management/keys/retrieve.md)
- [建立 API 金鑰](https://runapi.ai/zh-HK/docs/api/management/keys/create.md)
- [更新 API 金鑰](https://runapi.ai/zh-HK/docs/api/management/keys/update.md)
- [刪除 API 金鑰](https://runapi.ai/zh-HK/docs/api/management/keys/delete.md)

---

## RunAPI 的更多內容

- [首頁](https://runapi.ai/zh-HK/.md)
- [模型目錄](https://runapi.ai/zh-HK/models.md)
- [收費](https://runapi.ai/zh-HK/pricing.md)
- [服務商](https://runapi.ai/zh-HK/models)
- [文件](https://runapi.ai/zh-HK/docs/guides)
- [SDK](https://runapi.ai/zh-HK/sdk.md)
- [CLI](https://runapi.ai/zh-HK/cli.md)
- [MCP Server](https://runapi.ai/zh-HK/mcp.md)
- [Claude Code 與 Cursor](https://runapi.ai/zh-HK/claude-code-vs-cursor.md)
- [Cursor API 設定](https://runapi.ai/zh-HK/cursor-api-setup.md)
- [RunAPI 與 OpenRouter](https://runapi.ai/zh-HK/openrouter-alternative.md)
- [企業版](https://runapi.ai/zh-HK/contact.md)
- [聯絡](https://runapi.ai/zh-HK/contact.md)
- [條款](https://runapi.ai/zh-HK/terms.md)
- [私隱](https://runapi.ai/zh-HK/privacy.md)
- [智能代理網站索引](https://runapi.ai/llms.txt)

聯絡我們: contact@runapi.ai

## 結構化資料

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-HK",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-HK/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-HK",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/zh-HKicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "TechArticle",
    "headline": "API 金鑰物件",
    "description": "可驗證 RunAPI 請求的標準 API 金鑰。其明文值不屬於此可重用物件的一部分。",
    "url": "https://runapi.ai/zh-HK/docs/api/management/keys/object",
    "mainEntityOfPage": "https://runapi.ai/zh-HK/docs/api/management/keys/object"
  }
]
```
