AI API Overview
AI API Gateway SemutSSH memungkinkan Anda mengakses berbagai model AI dari berbagai provider menggunakan satu API key. API 100% kompatibel dengan format OpenAI SDK.
Model Tersedia
Section titled “Model Tersedia”Lebih dari 60 model dari 9 provider:
| Provider | Contoh Model |
|---|---|
| Anthropic | Claude Opus 4.6, Claude Sonnet 4.6, Claude Sonnet 5, Claude Fable 5 |
| Gemini 3.1 Pro Preview, Gemini 3 Flash Preview, Gemini 3.5 Flash | |
| Zhipu AI | GLM 5, GLM 5.1, GLM 5.2 |
| Moonshot AI | Kimi K2, Kimi K2.5 Thinking, Kimi K2.6, Kimi K2.7 Code |
| DeepSeek | DeepSeek V4 Pro, DeepSeek V4 Flash |
| MiniMax | MiniMax M2.5, M2.7, M3 |
| Alibaba | Qwen 3.6 Plus, Qwen 3.7 Plus |
| Xiaomi | Mimo V2.5 |
| OpenAI (via GPT plan) | GPT-5.4, GPT-5.5, GPT-5.6 Luna/Sol/Terra |
Daftar model lengkap dapat dilihat di halaman pricing bagian “Model AI Tersedia”.
Base URL
Section titled “Base URL”https://ai.semutssh.comAuthentication
Section titled “Authentication”Gunakan API key Anda di header Authorization:
Authorization: Bearer sk-semut-your-keyAtau untuk SDK Anthropic, gunakan header x-api-key:
x-api-key: sk-semut-your-keyRate Limits
Section titled “Rate Limits”- RPM: 30 requests/minute (semua plan)
- Parallel requests: 1–10 tergantung plan (lihat detail di pricing)
- Budget harian/bulanan: tergantung plan (Daily $5, Lite $50, Pro $125, dst)
Kategori Plan
Section titled “Kategori Plan”| Kategori | Deskripsi |
|---|---|
| Unified | Akses semua model (Claude, Gemini, GLM, Kimi, DeepSeek, dll) dengan budget bulanan |
| Claude Plan | Harga 1:1 official Anthropic, supports prompt caching, Claude Desktop compatible di tier Pro+ |
| GLM Plan | Harga 1:1 official Z.AI/GLM, supports prompt caching |
| GPT Plan | Harga per model sesuai official OpenAI |
Detail plan dan pricing lihat di halaman pricing atau Subscribe Plan AI.
Error Handling
Section titled “Error Handling”API mengembalikan error dalam format standar:
{ "error": { "type": "rate_limit_error", "message": "Rate limit exceeded. Please try again later." }}Contoh Request
Section titled “Contoh Request”curl https://ai.semutssh.com/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-semut-your-key" \ -d '{ "model": "claude-sonnet-4-6", "max_tokens": 1024, "messages": [ {"role": "user", "content": "Hello, Claude!"} ] }'Lebih lengkap lihat di REST API.