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)
Cek saldotokenlaju.com/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.
- Buka Cursor → Settings → Models (Ctrl/Cmd + Shift + J).
- Scroll ke OpenAI API Key.
- Aktifkan Override OpenAI Base URL, tempel
https://api.tokenlaju.com/v1 - Tempel API key
laju-...ke kolom OpenAI API Key. - Klik Verify, aktifkan key-nya.
- 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.