OpenAI-compatible

AI Gateway API

A unified gateway giving you access to 11 state-of-the-art language models through a single, OpenAI-compatible endpoint. Drop it into any existing OpenAI SDK integration — no code changes beyond the base URL.

{#each [ { icon: ``, label: 'OpenAI SDK', desc: 'Drop-in replacement — change only base_url' }, { icon: ``, label: '11 Models', desc: 'NVIDIA NIM + Amazon Nova providers' }, { icon: ``, label: 'Agentic Loop', desc: 'Auto tool execution — up to 10 iterations' }, ] as f}
{@html f.icon}

{f.label}

{f.desc}

{/each}

Base URL

All API requests are made to this base URL. Append the endpoint path.

Endpoints

{#each [ { method: 'GET', path: '/v1/models', desc: 'List all available models' }, { method: 'POST', path: '/v1/chat/completions', desc: 'Create a chat completion' }, { method: 'GET', path: '/', desc: 'Detect the gateway base URL' }, ] as e} {/each}
Method Path
{e.method} {e.path}

Authentication

Every request must include an API key in one of these headers:

{#each [ { name: 'Authorization', value: 'Bearer sk-' }, { name: 'x-api-key', value: 'sk-' }, ] as h}

{h.name}

{h.value}
{/each}

Ready to get started?

Head to the Quick Start guide to make your first API call in under a minute.

Quick Start