Get started
Overview
Experiential Labs is an OpenAI-compatible model gateway: one base URL in front of every model: hosted providers, your own provider keys, our platform-funded credits, and self-hosted or custom models. Point an OpenAI client at it and change nothing else.
The base-url swap
Everything starts here. Keep your existing OpenAI integration and point it at https://api-pr-668.preview.experientiallabs.ai/v1 with an Experiential Labs key. The gateway speaks the OpenAI wire protocol for both Chat Completions and the Responses API, streaming included, so the only lines that change are the base URL and the key.
curl "https://api-pr-668.preview.experientiallabs.ai/v1/chat/completions" \-H "Authorization: Bearer $EXPLABS_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "claude-opus-5", "messages": [{"role": "user", "content": "Hello"}]}'
Ready to run it end to end? The Quickstart takes you from signing in to a streamed response in under a minute.
How it works
A request names a model by its slug (for example claude-opus-5). The gateway resolves that slug through a per-model provider waterfall, an ordered list of ways to reach the model, trying each rung and failing over on capacity or transport errors until one succeeds. You get the first good response; the routing is invisible.
Every model is paid for through one of two lanes, with no markup either way:
- Pass-through (BYOK): your own provider key. The provider bills you directly; we add nothing.
- Platform-funded: our credits, priced from the public catalog. Each call draws down your balance.
What's in these docs
- QuickstartSign in, copy your key, and make your first call in under a minute.
- Setup promptsCopy-paste prompts that make your coding agent do the setup for you.
- The core loopGet a key, check credits, list models, call them, read usage.
- AuthenticationThe xpl_ key: how it looks, the Bearer header, and what one key can and cannot do.
- Coding agentsRoute Claude Code, Conductor, Codex, OpenCode, Cline, and other agents through the gateway.
- ModelsThe catalog, provider waterfalls, BYOK keys, and local models.
- Anthropic APICall the gateway with the Anthropic Messages API and the Anthropic SDKs.
- ErrorsEvery error code, what it means, and how to recover.
- Credits & billingPlatform credits, BYOK pass-through, spend limits, alerts, and auto-recharge.
- TelemetryRead usage and spend over the API, and bring your own traces in as telemetry.
- API referenceThe OpenAI-compatible inference API and the management API.
Agents and tools should read /llms.txt, the complete machine-readable reference.