AI API Overview
AI API Gateway SemutSSH memungkinkan Anda mengakses berbagai model AI dari berbagai provider menggunakan satu API key.
Model Tersedia
Section titled “Model Tersedia”| Model | Provider | Context | Use Case |
|---|---|---|---|
claude-sonnet-4-5-20250514 | Anthropic | 200K | Coding, reasoning |
claude-opus-4-5-20250514 | Anthropic | 200K | Complex tasks |
gemini-2.0-pro | 1M | Long context |
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”- Starter: 60 requests/minute
- Pro: 300 requests/minute
- Enterprise: Custom
Error Handling
Section titled “Error Handling”API kami 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/messages \ -H "Content-Type: application/json" \ -H "x-api-key: sk-semut-your-key" \ -H "anthropic-version: 2023-06-01" \ -d '{ "model": "claude-sonnet-4-5-20250514", "max_tokens": 1024, "messages": [ {"role": "user", "content": "Hello, Claude!"} ] }'