Dokumentasi API
Akses puluhan model AI (Claude, GPT, Gemini, DeepSeek, Qwen, GLM) lewat satu API key — kompatibel OpenAI & Anthropic.
Status API: Aktif & Sehat — siap dipakai
Informasi Umum
Base URL
https://api.tokenlaju.com/v1
API Key
laju-xxxxxxxxxxxx (dari dashboard)
Cek saldo
Format
Kompatibel OpenAI & Anthropic
Tes Cepat (cURL)
Ganti laju-xxxx dengan API key kamu.
curl https://api.tokenlaju.com/v1/chat/completions \
-H "Authorization: Bearer laju-xxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-5-20250929",
"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, lalu tempel:
https://api.tokenlaju.com/v1 - Tempel API key
laju-...ke kolom OpenAI API Key. - Klik Verify, aktifkan key-nya.
- Tambah model manual, mis.
claude-sonnet-4-5-20250929, lalu pilih.
Cursor hanya melewati 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.