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

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

# API Key 物件

可用於驗證 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-TW/docs/api/management/keys.md)
- [列出 API 金鑰](https://runapi.ai/zh-TW/docs/api/management/keys/list.md)
- [擷取 API 金鑰](https://runapi.ai/zh-TW/docs/api/management/keys/retrieve.md)
- [建立 API 金鑰](https://runapi.ai/zh-TW/docs/api/management/keys/create.md)
- [更新 API 金鑰](https://runapi.ai/zh-TW/docs/api/management/keys/update.md)
- [刪除 API 金鑰](https://runapi.ai/zh-TW/docs/api/management/keys/delete.md)

---

## RunAPI 的更多內容

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

聯絡我們: contact@runapi.ai

## 結構化資料

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