Skip to main content
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.

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 /messages for Anthropic-compatible clients and /chat/completions or /responses for 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.
Last modified on February 17, 2026