콘텐츠로 건너뛰기
DeepTokenAI 크리에이티브 스위트
홈대시보드모델리더보드문서가격엔터프라이즈블로그
    인증

    Introduction

    • 시작하기
    • 빠른 시작
    • 통합

    API

    • 인증
    • 채팅 완성
    • 모델
    • 오류

    Billing

    • 과금
    • 조직

    Introduction

    • 시작하기
    • 빠른 시작
    • 통합

    API

    • 인증
    • 채팅 완성
    • 모델
    • 오류

    Billing

    • 과금
    • 조직

    Authentication

    Every /v1/* call is authenticated by an API key sent as a Bearer token:

    Authorization: Bearer dtk_...
    
    경고

    There is no second-factor on the gateway itself — API keys are the absolute security boundary. Rotate keys immediately if they may have leaked, and prefer short-lived, environment-specific keys over a single shared one.

    Key lifecycle

    • Create — Dashboard → API Keys → New key.

      중요

      Copy the secret key immediately. We only show it once upon creation and never store the plaintext key on our servers (only the hash). It cannot be retrieved later if lost.

    • Revoke — Revoke flips the key to a revoked state. Calls immediately return 401 invalid_api_key. Revoked keys never reactivate.

    • Delete — Deleting a revoked key removes the row entirely. Usage history attributed to the key remains.

    Scopes & limits

    Each key supports:

    • Model allowlist — comma-separated model ids. Empty means "all models". Calls to disallowed models return 403 model_not_allowed.
    • IP allowlist — CIDR list. Calls from outside the list return 403 ip_not_allowed.
    • Rolling USD ceilings — 5h / 1d / 7d windows. Breaching any window returns 403 budget_limit_exceeded until the window rolls.

    Per-call cost attribution

    The gateway writes one row to the usage ledger per request, capturing the API key id, organization (if X-DeepToken-Org is set), model, tokens, credits, and time-to-first-token for streaming calls. The dashboard's Usage page, the wallet's recent-debits list, and admin's analytics all read from the same ledger.

    Previous

    통합

    Next

    채팅 완성

    이 페이지에서

    • Key lifecycle
    • Scopes & limits
    • Per-call cost attribution