Dokumentasi API

Akses 600+ model AI — Claude, GPT, Gemini, DeepSeek, Qwen, GLM — lewat satu API key. Kompatibel OpenAI & Anthropic, langsung jalan di Cursor, Cline, Claude Code, dan Continue.

Status API: Aktif & sehat — siap dipakai

Informasi umum

Base URLhttps://api.tokenlaju.com/v1
API Keylaju-xxxxxxxxxxxx (dari dashboard)
FormatKompatibel OpenAI & Anthropic

Endpoint

GET/v1/models
GET/v1/balance
POST/v1/chat/completions
GET/v1/usage

Tes cepat (cURL)

Ganti laju-xxxx dengan API key kamu.

# call ke endpoint OpenAI-compatible
curl https://api.tokenlaju.com/v1/chat/completions \
  -H "Authorization: Bearer laju-xxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-chat",
    "messages": [{"role":"user","content":"Halo TokenLaju!"}]
  }'

Panduan setup per tool

Cursor memakai format OpenAI. Atur di Settings → Models.

  1. Buka Cursor → Settings → Models (Ctrl/Cmd + Shift + J).
  2. Scroll ke OpenAI API Key.
  3. Aktifkan Override OpenAI Base URL, tempel https://api.tokenlaju.com/v1
  4. Tempel API key laju-... ke kolom OpenAI API Key.
  5. Klik Verify, aktifkan key-nya.
  6. Tambah model manual, mis. deepseek-chat, lalu pilih.

Cursor hanya melewatkan base URL kustom kalau kamu menambah model manual & mematikan model default Cursor.

Tips hemat token

Kelola sesi

Mulai sesi baru tiap ganti topik. Konteks panjang = token boros.

Batasi konteks

Lampirkan hanya file yang perlu. Pecah tugas besar jadi kecil.

Pilih model tepat

Model hemat (Qwen / Gemini Flash) buat ringan, Opus / GPT buat berat.

Butuh bantuan setup?

Tim kami siap bantu 24 jam via WhatsApp.

Hubungi admin