AI GATEWAY API v2 CLOUDFLARE PAGES READY v—

Multi-Provider AI Gateway

One REST endpoint, any AI provider. OpenRouter, Groq, Google Gemini, or any custom OpenAI-compatible server — switchable per request, pluggable in minutes.

checking API…

Endpoints

MethodPathAuthDescription
GET/api/v1/healthpublicLiveness probe
GET/api/v1/providerskey*List providers, models & configuration status
POST/api/v1/chatkey*Chat completion via any configured provider

* key = required only when API_SECRET_KEY is set on the server (header: X-API-Key)

Available providers (live)

loading…

Quick test

copy# Chat (default provider)
curl -X POST https://YOUR-DOMAIN/api/v1/chat \
  -H "Content-Type: application/json" \
  -d '{"message": "What is the meaning of life?"}'
copy# Pick a provider + multi-turn
curl -X POST https://YOUR-DOMAIN/api/v1/chat \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "openrouter",
    "messages": [
      {"role": "user", "content": "Hi!"},
      {"role": "assistant", "content": "Hello!"},
      {"role": "user", "content": "Tell me a joke"}
    ],
    "temperature": 0.8
  }'