Most tools can connect to the Gateway by pointing their base URL to the AI Stats API and using an AI Stats API key. The guides below cover common integration patterns and caveats.Documentation Index
Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
Use this file to discover all available pages before exploring further.
General setup checklist
- Use your AI Stats API key as a Bearer token.
- Set the base URL to
https://api.phaseo.app/v1. - Pass model ids exactly as listed in the Models endpoint.
- Use
/messagesfor Anthropic-compatible clients and/chat/completionsor/responsesfor OpenAI-compatible clients.
Integration guides
AI SDK
Use the AI SDK provider wrapper for AI Stats.
Claude Code
Route Claude-compatible workflows through the Gateway.
Codex
Connect coding agents to the Gateway.
OpenCode
Use OpenCode with AI Stats routing and analytics.
Examples
Ready-to-run request examples and payloads.