API Console
Repogen API — OpenAI-compatible. Swap your base URL, keep your existing code. Requests route to distributed Apple Silicon providers.
Endpoint Reference
Expand each endpoint to see request/response format and notes.
/v1/chat/completionsAuthStream or generate chat completions (OpenAI-compatible)
/v1/modelsList all available models with provider coverage and pricing
/v1/statsPlatform statistics: active providers, models, request counts
/v1/pricingCurrent pricing for all models (per million tokens)
/v1/balanceAuthCheck your account balance
/v1/usageAuthDetailed per-request usage and cost history
Base URL
https://api.repogen.xyz/v1All endpoints are relative to this base URL. Pricing endpoints are publicly accessible without authentication.
API Keys
All keys draw from your shared account balance. A key's spend cap is a sub-limit on that balance, not extra funds.
Sign in to create and manage your API keys.
Sign InQuick Start
Install the OpenAI SDK. The Repogen API is fully OpenAI-compatible — just change the base URL.
# No installation needed
export REPOGEN_API_KEY="<YOUR_API_KEY>"
export REPOGEN_BASE_URL="https://api.repogen.xyz/v1"Available Models
| Model ID | Type | Architecture |
|---|---|---|
| gpt-oss-20b | text | GPT-OSS (MoE) |
| gemma-4-26b | text | Gemma 4 (MoE) |
Model availability depends on online providers. Check /v1/models for real-time availability.
Chat Completions
Stream chat completions with any supported model. Supports system messages, multi-turn conversations, and streaming.
curl -X POST https://api.repogen.xyz/v1/chat/completions \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "llama-3.3-70b",
"messages": [{"role": "user", "content": "Hello!"}],
"stream": true
}'