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.

POST/v1/chat/completionsAuth

Stream or generate chat completions (OpenAI-compatible)

GET/v1/models

List all available models with provider coverage and pricing

GET/v1/stats

Platform statistics: active providers, models, request counts

GET/v1/pricing

Current pricing for all models (per million tokens)

GET/v1/balanceAuth

Check your account balance

GET/v1/usageAuth

Detailed per-request usage and cost history

Base URL

https://api.repogen.xyz/v1

All 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 In

Quick 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 IDTypeArchitecture
gpt-oss-20btextGPT-OSS (MoE)
gemma-4-26btextGemma 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
  }'