İçeriğe atla
DeepTokenYapay zeka yaratıcı paketi
Ana SayfaKontrol PaneliModellerLiderlik TablosuBelgelerFiyatlandırmaKurumsalBlog
    Kimlik doğrulama

    Introduction

    • Başlangıç
    • Hızlı başlangıç
    • Entegrasyonlar

    API

    • Kimlik doğrulama
    • Sohbet tamamlama
    • Modeller
    • Hatalar

    Billing

    • Faturalandırma
    • Organizasyonlar

    Introduction

    • Başlangıç
    • Hızlı başlangıç
    • Entegrasyonlar

    API

    • Kimlik doğrulama
    • Sohbet tamamlama
    • Modeller
    • Hatalar

    Billing

    • Faturalandırma
    • Organizasyonlar

    Authentication

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

    Authorization: Bearer dtk_...
    
    Uyarı

    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.

      Önemli

      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

    Entegrasyonlar

    Next

    Sohbet tamamlama

    Bu sayfada

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