Documentation

GateML is an OpenAI-compatible API gateway. Point your existing code at https://api.gateml.io/v1 and your requests are routed, observed, and protected — with automatic fallback on failures.

New here? Start with the Quickstart →
What GateML does

When your code calls POST /v1/chat/completions with a GateML key, we:

  1. Validate your API key (test or live)
  2. Route to your configured primary model (e.g. gpt-4o)
  3. On 429 or 5xx, retry the next model in your fallback chain
  4. Log the request — latency, tokens, cost, status
  5. Return the response in standard OpenAI format
Key concepts
Test keys (gml-sk-test_...)
Return synthetic responses. No real LLM calls. No charges. Use during development.
Live keys (gml-sk-live_...)
Forward to real providers using your stored provider API keys.
Provider keys
Your OpenAI / Anthropic / Google API keys, stored encrypted (AES-256) in GateML.
Fallback chain
Ordered list of models to try on failure. Configure in Gateway → Routing.
Quicklinks
→ Quickstart
Up and running in 3 minutes
→ SDKs
Python, TypeScript, Go, Ruby, PHP
→ Get your API key
Free account, no credit card
→ Changelog
What's new in GateML