Developer Reference & Quickstart
Dokumentasi API Key & Endpoint Router
Gunakan 1 API Key untuk mengakses seluruh model Claude melalui protokol standar Anthropic maupun OpenAI.
Anthropic Native Protocol
POST https://claudespro.web.id/v1/messages
Kompatibel dengan Claude Code CLI, Anthropic Python/TS SDK, dan aplikasi berbasis header x-api-key.
OpenAI Compatible Protocol
POST https://claudespro.web.id/v1/chat/completions
Kompatibel langsung dengan Cursor IDE, Cline, Continue.dev, NextChat, dan OpenAI SDK (Bearer Token).
Model Discovery Endpoint
GET https://claudespro.web.id/v1/models
Mengembalikan daftar seluruh ID model Claude yang aktif beserta informasi multiplier input dan output.
Konfigurasi di Cursor IDE, Cline, atau Continue.dev
Salin parameter berikut ke menu pengaturan provider OpenAI Compatible atau Anthropic Custom Base URL di IDE Anda:
Opsi A: Mode OpenAI Compatible (Cursor / Continue)
Base URL: https://claudespro.web.id/v1
API Key : cr-live-your-api-key-here
Model ID: claude-3-7-sonnet-20250219
Opsi B: Mode Anthropic Native (Cline / Claude Code)
Anthropic Base URL: https://claudespro.web.id
Anthropic API Key : cr-live-your-api-key-here
Model ID : claude-sonnet-4-20250514
Request ke Endpoint Native Anthropic (/v1/messages)
curl -X POST "https://claudespro.web.id/v1/messages" \
-H "Content-Type: application/json" \
-H "x-api-key: cr-live-your-api-key-here" \
-H "anthropic-version: 2023-06-01" \
-d '{
"model": "claude-3-7-sonnet-20250219",
"max_tokens": 1024,
"stream": false,
"messages": [
{"role": "user", "content": "Jelaskan keunggulan arsitektur Golang dalam 3 poin."}
]
}'
Request ke Endpoint OpenAI Compatible (/v1/chat/completions)
curl -X POST "https://claudespro.web.id/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cr-live-your-api-key-here" \
-d '{
"model": "claude-sonnet-4-20250514",
"stream": false,
"messages": [
{"role": "user", "content": "Buatkan fungsi koneksi database di Go."}
]
}'
Integrasi menggunakan Python SDK (Anthropic / OpenAI)
from anthropic import Anthropic
client = Anthropic(
api_key="cr-live-your-api-key-here",
base_url="https://claudespro.web.id"
)
message = client.messages.create(
model="claude-3-7-sonnet-20250219",
max_tokens=1024,
messages=[
{"role": "user", "content": "Halo Claudespro!"}
]
)
print(message.content[0].text)
Daftar Model & Rasio Pemotongan Kuota
Rumus perhitungan biaya token: Total = ceil(PromptTokens * InputRatio + CompletionTokens * OutputRatio)
| Nama Model | ID Parameter (model) |
Multiplier In | Multiplier Out |
|---|---|---|---|
| ⚡ Claude 3.7 Sonnet (Hybrid Reasoning) PRO | claude-3-7-sonnet-20250219 | 1.00x | 2.00x |
| ⚡ Claude 3.5 Sonnet v2 PRO | claude-3-5-sonnet-20241022 | 1.00x | 1.50x |
| 🚀 Claude 3.5 Haiku (Fast) PRO | claude-3-5-haiku-20241022 | 0.25x | 0.50x |
| 👑 Claude 3 Opus (Legacy Deep) PRO | claude-3-opus-20240229 | 3.00x | 5.00x |
| ⚡ Claude Sonnet 4.6 (Frontier) PRO | claude-sonnet-4-6 | 1.00x | 2.50x |
| ⚡ Claude Sonnet 5 (Next-Gen) PRO | claude-sonnet-5 | 1.25x | 3.00x |
| ⚡ Claude Sonnet 5.5 (Flagship) PRO | claude-sonnet-5-5 | 1.50x | 3.50x |
| 🚀 Claude Haiku 4.5 (Lightweight) PRO | claude-haiku-4-5 | 0.30x | 0.60x |
| 🚀 Claude Haiku 4.5 (2025-10 Snapshot) PRO | claude-haiku-4-5-20251001 | 0.30x | 0.60x |
| 🚀 Claude Haiku 5.5 (Ultra Fast) PRO | claude-haiku-5-5 | 0.40x | 0.80x |
| 👑 Claude Opus 4.6 (Deep Reasoning) PRO | claude-opus-4-6 | 2.50x | 4.50x |
| 👑 Claude Opus 4.7 (Advanced) PRO | claude-opus-4-7 | 3.00x | 5.00x |
| 👑 Claude Opus 4.8 (Frontier Opus) PRO | claude-opus-4-8 | 3.50x | 6.00x |
| 👑 Claude Opus 5 (Super Intelligence) PRO | claude-opus-5 | 4.00x | 7.00x |
| 👑 Claude Opus 5.5 (Max Reasoning) PRO | claude-opus-5-5 | 5.00x | 8.00x |
| 🎨 Claude Fable 5 (Creative & Logic) PRO | claude-fable-5 | 1.50x | 3.00x |
| 🎨 Claude Fable 5.1 (Enhanced) PRO | claude-fable-5-1 | 1.75x | 3.50x |
| 🎨 Claude Fable 5.1 (Dot Alias) PRO | claude-fable-5.1 | 1.75x | 3.50x |