# AI Stats Docs > Documentation for AI Stats Gateway, SDKs, routing, pricing, guardrails, async jobs, and model discovery across providers. ## Docs - [Authentication](https://docs.ai-stats.phaseo.app/v1/api-reference/authentication.md): Authenticate requests with bearer API keys and manage key lifecycle safely. - [Get Activity](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/activity.md): Retrieve recent API activity for a team with configurable time range and pagination. - [Anthropic Messages](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/anthropic-messages.md): Anthropic-compatible Messages endpoint at /v1/messages. - [Async Jobs WebSocket](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/async-jobs-ws.md): Subscribe to owned batch or video async job updates over WebSocket. - [TTS (Text to Speech) (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/audio-speech.md): Generate TTS audio from text using the specified voice and format. - [STT (Speech to Text) (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/audio-transcriptions.md): Convert audio to text (STT) with the selected transcription model. - [Translations (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/audio-translations.md): Translate spoken audio into another language with the specified translation model. - [Batches (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/batches.md): Create an async batch job and attach observability metadata such as session ids and webhooks. - [Batch status (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/batches-status.md): Retrieve the current status for a previously created batch job. - [Chat Completions](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/chat-completions.md): Generate chat-based completions using the OpenAI-compatible chat endpoint. - [Credits (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/credits.md): How the Gateway tracks and bills for requests. - [Embeddings (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/embeddings.md): Create embeddings with the AI Stats embeddings endpoint. - [List Endpoints](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/endpoints.md): List the currently exposed gateway endpoint IDs and a small sample of recent public model IDs. - [Files (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/files.md): Upload a file for batch processing. The gateway stores ownership metadata so the same workspace can later retrieve the file or its content. - [List files (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/files-list.md): Lists files when the underlying provider key supports it. On the shared gateway key this currently returns `file_list_not_supported_with_shared_gateway_key`. - [Retrieve file (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/files-retrieve.md): Retrieve metadata for a file that belongs to the authenticated workspace. - [Generation lookup (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/generation.md): Retrieve a specific generation by ID. - [Guardrails](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/guardrails.md): Programmatic guardrails management for workspaces and keys. - [Images Edits (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/images-edits.md): Apply edits to an existing image using the specified model and prompt. - [Image generations (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/images-generations.md): Creates an image given a prompt. - [Get Current API Key](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/key-current.md): Inspect the currently authenticated standard Gateway API key. - [Create API Key](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/keys-create.md): Create a new API key in the authenticated workspace. - [Delete API Key](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/keys-delete.md): Delete an API key in the authenticated workspace. - [Get API Key](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/keys-get.md): Retrieve a single API key by id or hash. - [List API Keys](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/keys-list.md): List API keys for the authenticated workspace. - [Update API Key](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/keys-update.md): Update API key metadata and status. - [Models (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/models.md): Browse gateway-native models through AI Stats Gateway, including optional non-routable availability details. - [Moderations (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/moderations.md): Classifies if text violates OpenAI's usage policies. - [Music Generation (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/music-generate.md): Generates music using the requested model and provider settings. - [Music Status (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/music-status.md): Check the status of an asynchronous music generation job. - [OCR (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/ocr.md): Extracts text from an image using the requested model. - [List Organisations](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/organisations.md): List provider organisations from the shared catalogue with simple pagination. - [Calculate Pricing](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/pricing-calculate.md): Estimate the bill for a specific provider/model/endpoint usage payload. - [List Pricing Models](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/pricing-models.md): List the currently active catalogue pricing cards exposed through the gateway. - [List Providers](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/providers.md): Browse the catalogue of API providers supported by the gateway. - [Responses](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/responses.md): Creates a response using the Responses API. - [Video cancel (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/video-cancel.md): Cancel a video generation request. - [Video content (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/video-content.md): Download the rendered video content for a completed generation. - [Video delete (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/video-delete.md): Tombstone a terminal video generation request record. - [Video download URL (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/video-download-url.md): Issue a temporary signed download URL for a completed video generation. - [Video generation (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/video-generation.md): Creates an async video generation job. Poll the returned `polling_url` every 20 seconds until the job reaches a terminal status. - [Video list (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/video-list.md): List owned video generation jobs for the authenticated workspace. - [Video models (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/video-models.md): List active public video model capabilities. - [Video status (Beta)](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/video-status.md): Check the status of a video generation request. - [Create Workspace](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/workspaces-create.md): Create a new workspace. - [Delete Workspace](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/workspaces-delete.md): Delete a workspace by id or slug. - [Get Workspace](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/workspaces-get.md): Retrieve a workspace by id or slug. - [List Workspaces](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/workspaces-list.md): List workspaces owned by the authenticated management key owner. - [Update Workspace](https://docs.ai-stats.phaseo.app/v1/api-reference/endpoint/workspaces-update.md): Update workspace metadata. - [Errors and Debugging](https://docs.ai-stats.phaseo.app/v1/api-reference/errors.md): Understand AI Stats error responses and fix common request, provider, and routing issues faster. - [Introduction To The AI Gateway](https://docs.ai-stats.phaseo.app/v1/api-reference/introduction.md): Base URL, authentication, and endpoint families for the AI Stats Gateway. - [Limits](https://docs.ai-stats.phaseo.app/v1/api-reference/limits.md): Understand provider-driven rate limits and how to build resilient retry behavior. - [Parameters](https://docs.ai-stats.phaseo.app/v1/api-reference/parameters.md): Field-by-field request parameter reference for AI Stats text, routing, and debug controls. - [Streaming](https://docs.ai-stats.phaseo.app/v1/api-reference/streaming.md): Stream model output in real time using SSE on core text endpoints. - [Changelog](https://docs.ai-stats.phaseo.app/v1/changelog.md): Recent product updates, SDK changes, and model releases across AI Stats. - [Code of Conduct](https://docs.ai-stats.phaseo.app/v1/community/code-of-conduct.md): Expected behavior for contributors and community members. - [Contact and Support](https://docs.ai-stats.phaseo.app/v1/community/contact-and-support.md): How to get help or report issues with AI Stats. - [FAQ](https://docs.ai-stats.phaseo.app/v1/community/faq.md): Answers to common questions about AI Stats and the Gateway. - [Editing a Model](https://docs.ai-stats.phaseo.app/v1/contributing/editing-a-model.md): Update model metadata, pricing, and capabilities in the AI Stats data set. - [Editing an Organisation](https://docs.ai-stats.phaseo.app/v1/contributing/editing-an-organisation.md): Update organisation records in the AI Stats data set. - [How to Contribute](https://docs.ai-stats.phaseo.app/v1/contributing/how-to-contribute.md): A step-by-step guide on how to make your first contribution to AI Stats - from setting up your environment to submitting a pull request. - [Contributing to AI Stats](https://docs.ai-stats.phaseo.app/v1/contributing/overview.md): Learn how to contribute data, documentation, or improvements to the AI Stats project and help build the world's most comprehensive AI database. - [Repository Structure](https://docs.ai-stats.phaseo.app/v1/contributing/repo-structure.md): Understand how the AI Stats repository is organized - where to find data, documentation, and configuration files. - [Run a coding-review agent with runtime tools](https://docs.ai-stats.phaseo.app/v1/cookbook/agent-sdk-coding-review.md): Build a resumable coding-review workflow with local runtime tools, strict JSON, and human approval checkpoints. - [Triage tickets with the C# Agent SDK](https://docs.ai-stats.phaseo.app/v1/cookbook/agent-sdk-csharp-ticket-triage.md): Use the C# Agent SDK for a local-tool ticket triage loop that stays inside one .NET service. - [Build a durable agent loop in TypeScript](https://docs.ai-stats.phaseo.app/v1/cookbook/agent-sdk-durable-loop.md): Run a resumable agent loop on top of AI Stats Gateway with the TypeScript Agent SDK. - [Build an ops runbook agent in Go](https://docs.ai-stats.phaseo.app/v1/cookbook/agent-sdk-go-ops-runbook.md): Use the Go Agent SDK to combine a few deterministic local tools into one bounded troubleshooting loop. - [Fan out local agent tools concurrently](https://docs.ai-stats.phaseo.app/v1/cookbook/agent-sdk-parallel-tools.md): Use bounded local tool concurrency in the TypeScript Agent SDK so one model turn can gather independent context without serializing every tool call. - [Review CMS content with the PHP Agent SDK](https://docs.ai-stats.phaseo.app/v1/cookbook/agent-sdk-php-content-review.md): Use the PHP Agent SDK to wrap one local content lookup tool in a bounded review loop. - [Extract structured JSON with the Python Agent SDK](https://docs.ai-stats.phaseo.app/v1/cookbook/agent-sdk-python-structured-extraction.md): Use the Python Agent SDK for a bounded local-tool loop that returns strict JSON through AI Stats Gateway. - [Research with structured output and web search](https://docs.ai-stats.phaseo.app/v1/cookbook/agent-sdk-research-brief.md): Build a search-backed TypeScript agent that returns strict JSON through the Agent SDK. - [Summarize internal notes with the Ruby Agent SDK](https://docs.ai-stats.phaseo.app/v1/cookbook/agent-sdk-ruby-rag-notes.md): Use the Ruby Agent SDK to query local notes and return one bounded summary through AI Stats Gateway. - [Support triage with presets and guardrail-aware failures](https://docs.ai-stats.phaseo.app/v1/cookbook/agent-sdk-support-triage.md): Run a preset-driven support triage agent that returns strict JSON, pauses high-risk cases for review, and keeps guardrail failures visible. - [Run async batches with webhooks](https://docs.ai-stats.phaseo.app/v1/cookbook/async-batch-webhooks.md): Create batch jobs, recover with polling, and consume standardized webhook deliveries without losing lifecycle visibility. - [Run async video with webhooks](https://docs.ai-stats.phaseo.app/v1/cookbook/async-video-webhooks.md): Create long-running video jobs, poll status safely, and consume standardized webhook deliveries. - [Build a Next.js Web Chat App](https://docs.ai-stats.phaseo.app/v1/cookbook/build-a-nextjs-web-chat-app.md): Use the existing Next.js sample chat app as a full walkthrough, with a copyable build prompt at the top. - [Build a Node REST Smoke App](https://docs.ai-stats.phaseo.app/v1/cookbook/build-a-node-rest-smoke-app.md): Use the Node quickstart sample as a walkthrough for a raw HTTP integration and smoke-test script. - [Build a Python Gateway CLI](https://docs.ai-stats.phaseo.app/v1/cookbook/build-a-python-gateway-cli.md): Use the Python quickstart sample as a full walkthrough for a Python-first CLI or backend integration. - [Build an OAuth Next.js Workbench](https://docs.ai-stats.phaseo.app/v1/cookbook/build-an-oauth-nextjs-workbench.md): Use the full OAuth Next.js example as a walkthrough for a signed-in gateway app with a unified proxy. - [Choose a video generation model](https://docs.ai-stats.phaseo.app/v1/cookbook/choose-a-video-generation-model.md): Use the public video model catalogue to choose a model based on inputs, outputs, parameters, providers, and pricing. - [Set up coding agents with SKILL.md](https://docs.ai-stats.phaseo.app/v1/cookbook/coding-agents-skill-md.md): Pair the SDK with a SKILL.md file so local coding agents can use your AI Stats integration consistently. - [Launch on the free router](https://docs.ai-stats.phaseo.app/v1/cookbook/free-router-first-deploy.md): Start with ai-stats/free so your first integration can run without choosing a single fixed free model up front. - [Generate and download a video from text](https://docs.ai-stats.phaseo.app/v1/cookbook/generate-and-download-a-video-from-text.md): Create one text-to-video job, poll until terminal, and fetch the final output safely. - [Roll out guardrails on API keys](https://docs.ai-stats.phaseo.app/v1/cookbook/guardrails-for-api-keys.md): Apply guardrails to API keys, test enforcement before rollout, and verify blocks, redactions, and flags from activity views. - [Cookbook](https://docs.ai-stats.phaseo.app/v1/cookbook/index.md): Scenario-driven recipes for shipping with AI Stats faster. - [Mini App Starter Prompts](https://docs.ai-stats.phaseo.app/v1/cookbook/mini-app-starter-prompts.md): Copyable prompts for coding agents to build small AI Stats apps with raw HTTP, SDKs, or agent runtimes. - [Pin or ignore providers per request](https://docs.ai-stats.phaseo.app/v1/cookbook/pin-or-ignore-providers-per-request.md): Use request-level provider controls to prefer one provider order, constrain the pool, or remove a provider from consideration. - [Set plugin defaults for structured JSON workflows](https://docs.ai-stats.phaseo.app/v1/cookbook/plugin-defaults-and-response-healing.md): Use workspace, preset, and request-level plugin policy to keep response healing consistent. - [Roll out presets and debug routing](https://docs.ai-stats.phaseo.app/v1/cookbook/preset-rollout-and-routing-debug.md): Use presets to standardize prompt and routing defaults, then inspect request details to understand why AI Stats routed a request the way it did. - [Use response caching with presets](https://docs.ai-stats.phaseo.app/v1/cookbook/response-caching-with-presets.md): Combine preset defaults with deterministic response caching so repeated requests return fast and predictably. - [Use response healing for structured JSON](https://docs.ai-stats.phaseo.app/v1/cookbook/response-healing-for-structured-json.md): Recover near-valid structured JSON outputs without widening schemas or hand-retrying malformed responses. - [Route only to EU or ZDR-capable providers](https://docs.ai-stats.phaseo.app/v1/cookbook/route-only-to-eu-or-zdr-providers.md): Apply request-level residency and zero-data-retention requirements so a model only routes to compliant provider offers. - [Ship preset-driven structured JSON with the Python SDK](https://docs.ai-stats.phaseo.app/v1/cookbook/sdk-python-presets-and-json.md): Use the official Python SDK with presets, structured outputs, and request-level debugging without dropping to raw HTTP calls. - [Ground one TypeScript SDK workflow with managed web search](https://docs.ai-stats.phaseo.app/v1/cookbook/sdk-typescript-managed-search.md): Use the official TypeScript SDK with presets, managed web search, and response metadata so one workflow stays grounded and debuggable. - [Send provider-specific video options](https://docs.ai-stats.phaseo.app/v1/cookbook/send-provider-specific-video-options.md): Add provider-specific video settings through `provider_params` without losing the shared gateway request shape. - [Sort providers by price, latency, or throughput](https://docs.ai-stats.phaseo.app/v1/cookbook/sort-providers-by-price-latency-or-throughput.md): Use request-level provider sorting to prefer the cheapest, fastest, or highest-throughput route for one model. - [Ground follow-up extraction with web fetch](https://docs.ai-stats.phaseo.app/v1/cookbook/tool-grounding-with-web-fetch.md): Use `gateway:web_fetch` to pull bounded page text into the tool loop for deterministic follow-up extraction and review. - [Use image inputs for video generation](https://docs.ai-stats.phaseo.app/v1/cookbook/use-image-inputs-for-video-generation.md): Attach first-frame or reference-image inputs to a video generation request with the gateway input reference shape. - [Debug web search requests](https://docs.ai-stats.phaseo.app/v1/cookbook/web-search-debugging.md): Verify web-search requests, confirm provider support, and inspect returned search results and citations. - [Authentication](https://docs.ai-stats.phaseo.app/v1/developers/authentication.md): Use API keys to authenticate every request to AI Stats Gateway. - [Best Practices](https://docs.ai-stats.phaseo.app/v1/developers/best-practices.md): Ship reliable AI features by following these architecture, security, and observability guidelines. - [Error Handling](https://docs.ai-stats.phaseo.app/v1/developers/error-handling.md): Understand error types and recovery strategies for reliable Gateway integrations. - [Integrating with the Gateway](https://docs.ai-stats.phaseo.app/v1/developers/integrating-with-the-gateway.md): Connect your application to AI Stats Gateway, start on free models, then scale to paid models. - [Developers Introduction](https://docs.ai-stats.phaseo.app/v1/developers/introduction.md): A practical overview of AI Stats Gateway and the fastest path from first call to production. - [Management API Keys](https://docs.ai-stats.phaseo.app/v1/developers/management-api-keys.md): Create management API keys in the dashboard and use them for elevated administration APIs. - [Rate Limits](https://docs.ai-stats.phaseo.app/v1/developers/rate-limits.md): Learn how rate limits work through our Gateway and providers. - [Exploring API Providers](https://docs.ai-stats.phaseo.app/v1/exploring/api-providers.md): Understand what API providers do and how to evaluate them for reliability, performance, and cost. - [Exploring Benchmarks](https://docs.ai-stats.phaseo.app/v1/exploring/benchmarks.md): Understand how AI model benchmarks are collected, standardised, and visualised on AI Stats. - [Exploring Models](https://docs.ai-stats.phaseo.app/v1/exploring/models.md): Learn how to browse, compare, and understand the AI models listed on AI Stats. - [Exploring Organisations](https://docs.ai-stats.phaseo.app/v1/exploring/organisations.md): Discover the companies, research groups, and communities that develop and publish AI models. - [Overview](https://docs.ai-stats.phaseo.app/v1/exploring/overview.md): Learn how to explore models, benchmarks, providers, and pricing data across the AI ecosystem. - [Pricing & Performance](https://docs.ai-stats.phaseo.app/v1/exploring/pricing-performance.md): Understand how model pricing and performance are measured, compared, and normalised across providers on AI Stats. - [Subscription Plans](https://docs.ai-stats.phaseo.app/v1/exploring/subscription-plans.md): Overview of subscription plans and tiers offered by API providers and how they affect access and pricing. - [App Attribution](https://docs.ai-stats.phaseo.app/v1/guides/app-attribution.md): Attach app metadata to Gateway requests for analytics and auditing. - [Context and Token Budgeting](https://docs.ai-stats.phaseo.app/v1/guides/context-and-token-budgeting.md): How to allocate prompt and output tokens for quality, speed, and cost. - [Examples](https://docs.ai-stats.phaseo.app/v1/guides/examples.md): Copy-paste requests plus full sample projects and cookbook walkthroughs for common AI Stats integrations. - [Guides Overview](https://docs.ai-stats.phaseo.app/v1/guides/index.md): A practical map of the AI Stats Guides, from zero-credit free-model start to production operations. - [Inference Parameters](https://docs.ai-stats.phaseo.app/v1/guides/inference-parameters.md): How core request parameters affect quality, determinism, latency, and cost. - [AI SDK](https://docs.ai-stats.phaseo.app/v1/guides/integrations/ai-sdk.md): Use the official AI Stats provider for the Vercel AI SDK. - [AI Stats CLI](https://docs.ai-stats.phaseo.app/v1/guides/integrations/aistats-cli.md): Install the official AI Stats CLI, sign in with browser OAuth or device code, and manage keys, guardrails, and workspaces from the terminal. - [Claude Code](https://docs.ai-stats.phaseo.app/v1/guides/integrations/claude-code.md): Connect Claude Code to the AI Stats Gateway via the Anthropic-compatible API. - [Codex](https://docs.ai-stats.phaseo.app/v1/guides/integrations/codex.md): Use the AI Stats Gateway as a custom provider for Codex CLI. - [Docs MCP](https://docs.ai-stats.phaseo.app/v1/guides/integrations/docs-mcp.md): Connect the AI Stats documentation MCP server to Codex, Claude Code, Cursor, or VS Code. - [Integrations Overview](https://docs.ai-stats.phaseo.app/v1/guides/integrations/index.md): Connect the AI Stats Gateway to popular tools and runtimes. - [OpenCode](https://docs.ai-stats.phaseo.app/v1/guides/integrations/opencode.md): Connect OpenCode to the AI Stats Gateway for multi-provider routing. - [Model Quantization](https://docs.ai-stats.phaseo.app/v1/guides/model-quantization.md): Overview of quantization and where to go next in the quantization + parameters guide series. - [Multimodality](https://docs.ai-stats.phaseo.app/v1/guides/multimodality.md): Use text, image, audio, video, and other modalities through the Gateway. - [Presets](https://docs.ai-stats.phaseo.app/v1/guides/presets.md): Save reusable Gateway configurations for your team. - [Principles](https://docs.ai-stats.phaseo.app/v1/guides/principles.md): The core ideas that guide AI Stats and the Gateway. - [Provider Statuses](https://docs.ai-stats.phaseo.app/v1/guides/provider-statuses.md): What Active, Coming Soon, Deranked, Not Active, and Disabled mean on AI Stats model pages. - [Quantization Formats](https://docs.ai-stats.phaseo.app/v1/guides/quantization-formats.md): BF16, FP16, FP8, FP4, INT8, INT4 and what each format means in practice. - [Quantization Methods](https://docs.ai-stats.phaseo.app/v1/guides/quantization-methods.md): How quantization methods differ from numeric formats, and why method choice matters. - [Choosing a Quantization Strategy](https://docs.ai-stats.phaseo.app/v1/guides/quantization-selection.md): A practical framework for selecting BF16/FP8/INT8/INT4 variants by workload. - [Routing and Fallbacks](https://docs.ai-stats.phaseo.app/v1/guides/routing-and-fallbacks.md): How the Gateway selects providers and keeps requests reliable. - [Sampling and Decoding](https://docs.ai-stats.phaseo.app/v1/guides/sampling-and-decoding.md): How decoding strategies and penalties shape model outputs. - [Service Tiers](https://docs.ai-stats.phaseo.app/v1/guides/service-tiers.md): How Standard, Priority, Flex, and Batch pricing modes work in AI Stats Gateway. - [Streaming](https://docs.ai-stats.phaseo.app/v1/guides/streaming.md): Use server-sent events (SSE) for low-latency token delivery. - [Streaming in Production](https://docs.ai-stats.phaseo.app/v1/guides/streaming-production.md): Operational patterns for robust streaming UX and backend reliability. - [Streaming SSE Events](https://docs.ai-stats.phaseo.app/v1/guides/streaming-sse.md): Understand frame structure and parse SSE streams safely. - [Structured Outputs](https://docs.ai-stats.phaseo.app/v1/guides/structured-outputs.md): Return predictable JSON with json_object or json_schema output formats. - [Structured Output Schemas](https://docs.ai-stats.phaseo.app/v1/guides/structured-outputs-schemas.md): How to design practical JSON schemas for model output. - [Structured Output Validation](https://docs.ai-stats.phaseo.app/v1/guides/structured-outputs-validation.md): Server-side validation, retries, and fallback strategies for structured output. - [Tool Calling](https://docs.ai-stats.phaseo.app/v1/guides/tool-calling.md): Use model-driven function calls safely through the Gateway. - [Tool Calling Patterns](https://docs.ai-stats.phaseo.app/v1/guides/tool-calling-patterns.md): Reliable tool-calling loops for chat completions and responses endpoints. - [Tool Calling Safety and Validation](https://docs.ai-stats.phaseo.app/v1/guides/tool-calling-safety.md): Validate tool arguments, harden execution, and avoid unsafe model actions. - [WebSocket Mode](https://docs.ai-stats.phaseo.app/v1/guides/websocket-mode.md): Gateway-first walkthrough for /v1/responses/ws with concrete connection, turn, and recovery flow. - [Start Here](https://docs.ai-stats.phaseo.app/v1/index.md): Get your first successful AI Stats API request in under 5 minutes, then choose the right path for SDKs, routing, agents, or production rollout. - [Migration Assistant](https://docs.ai-stats.phaseo.app/v1/migration-guides/assistant.md): Interactive migration guide for moving to the AI Stats Gateway. - [Feature Parity Matrix](https://docs.ai-stats.phaseo.app/v1/migration-guides/feature-parity-matrix.md): See what you can migrate to AI Stats confidently today, and which areas still need extra care. - [Migrating from Anthropic SDK](https://docs.ai-stats.phaseo.app/v1/migration-guides/from-anthropic.md): Step-by-step guide to migrate your Anthropic SDK integration to AI Stats Gateway. - [Migrating from Cloudflare AI Gateway](https://docs.ai-stats.phaseo.app/v1/migration-guides/from-cloudflare.md): Step-by-step guide to migrate your Cloudflare AI Gateway integration to AI Stats Gateway. - [Migrating from Helicone AI Gateway](https://docs.ai-stats.phaseo.app/v1/migration-guides/from-helicone.md): Step-by-step guide to migrate your Helicone AI Gateway integration to AI Stats Gateway. - [Migrating from LiteLLM](https://docs.ai-stats.phaseo.app/v1/migration-guides/from-litellm.md): Step-by-step guide to migrate your LiteLLM integration to AI Stats Gateway. - [Migrating from LLM Gateway](https://docs.ai-stats.phaseo.app/v1/migration-guides/from-llmgateway.md): Move from LLMGateway to AI Stats Gateway with an OpenAI-compatible endpoint swap, model-ID verification, and staged rollout validation. - [Migrating from OpenAI SDK](https://docs.ai-stats.phaseo.app/v1/migration-guides/from-openai.md): Step-by-step guide to migrate your OpenAI SDK integration to AI Stats Gateway. - [Migration from OpenRouter](https://docs.ai-stats.phaseo.app/v1/migration-guides/from-openrouter.md): Move from OpenRouter to AI Stats Gateway with a controlled rollout, explicit parity checks, and minimal request-shape changes. - [Migrating from Vercel AI Gateway](https://docs.ai-stats.phaseo.app/v1/migration-guides/from-vercel.md): Replace Vercel AI Gateway routing with AI Stats Gateway while preserving AI SDK or OpenAI-compatible application behavior. - [Gateway Parity Review](https://docs.ai-stats.phaseo.app/v1/migration-guides/gateway-parity-review.md): Understand how ready AI Stats is for migrations from OpenRouter, Vercel AI Gateway, and LLMGateway. - [Migration Guides](https://docs.ai-stats.phaseo.app/v1/migration-guides/index.md): Guides for moving between platforms or upgrading from one model to a newer model. - [Anthropic: Claude Opus 4.1 to 4.8](https://docs.ai-stats.phaseo.app/v1/model-migrations/anthropic-claude-opus-4-1-to-4-8.md): The concrete migration steps to move deprecated Claude Opus 4.1 traffic onto Claude Opus 4.8. - [Anthropic: Claude Opus 4.5 to 4.6](https://docs.ai-stats.phaseo.app/v1/model-migrations/anthropic-claude-opus-4-5-to-4-6.md): The concrete API and behavior changes to review when upgrading from Claude Opus 4.5 to Claude Opus 4.6. - [Anthropic: Claude Opus 4.6 to 4.7](https://docs.ai-stats.phaseo.app/v1/model-migrations/anthropic-claude-opus-4-6-to-4-7.md): Model migration notes for upgrading Anthropic Claude Opus 4.6 traffic to Claude Opus 4.7. - [Anthropic: Claude Sonnet 4.5 to 4.6](https://docs.ai-stats.phaseo.app/v1/model-migrations/anthropic-claude-sonnet-4-5-to-4-6.md): The concrete API and behavior changes to review when upgrading from Claude Sonnet 4.5 to Claude Sonnet 4.6. - [Google: Migrating to Gemini 3 and 3.1](https://docs.ai-stats.phaseo.app/v1/model-migrations/google-migrating-to-gemini-3-and-3-1.md): The API and behavior changes to review when upgrading existing Gemini integrations to Gemini 3 or Gemini 3.1. - [Google: Nano Banana 1 to Nano Banana 2](https://docs.ai-stats.phaseo.app/v1/model-migrations/google-nano-banana-1-to-nano-banana-2.md): What actually changes when image workflows move from Nano Banana 1 to Nano Banana 2. - [Model Migrations](https://docs.ai-stats.phaseo.app/v1/model-migrations/index.md): Model-specific upgrade guides for moving production traffic from an older model release to a newer one. - [Mistral: Mistral Small 3.2 to Mistral Small 4](https://docs.ai-stats.phaseo.app/v1/model-migrations/mistral-small-3-2-to-mistral-small-4.md): Gateway migration notes for upgrading Mistral Small traffic to Mistral Small 4, including reasoning_effort behavior. - [OpenAI: Migrating to GPT-5.4](https://docs.ai-stats.phaseo.app/v1/model-migrations/openai-migrating-to-gpt-5-4.md): What materially changes when you move existing OpenAI traffic onto GPT-5.4. - [xAI: Grok 4.20](https://docs.ai-stats.phaseo.app/v1/model-migrations/xai-grok-4-20.md): Gateway-focused migration notes for Grok 4.20, including reasoning toggle and multi-agent effort controls. - [Pricing Tiers](https://docs.ai-stats.phaseo.app/v1/pricing/tiers.md): Understand the flat 5% credit purchase fee and how Gateway billing works - [Quickstart (5 minutes)](https://docs.ai-stats.phaseo.app/v1/quickstart.md): From signup to first successful request in under 5 minutes, starting on a free model. - [Benchmark Methodology](https://docs.ai-stats.phaseo.app/v1/research/benchmark-methodology.md): Learn how AI Stats collects, normalises, and publishes benchmark results. - [Citation](https://docs.ai-stats.phaseo.app/v1/research/citation.md): How to acknowledge AI Stats data, benchmarks, and gateway tooling in your work. - [Submitting Scores](https://docs.ai-stats.phaseo.app/v1/research/submitting-scores.md): Share new benchmark results with the AI Stats community in a structured, reviewable way. - [Agent SDK Overview](https://docs.ai-stats.phaseo.app/v1/sdk-reference/agent-sdk/overview.md): Build local, resumable agent loops on top of AI Stats Gateway across the supported Agent SDK languages. - [C++ SDK Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/cpp/installation.md): How to use the preview C++ SDK - [C++ SDK (preview)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/cpp/overview.md): Experimental C++ headers for the AI Stats Gateway. - [Usage](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/agent-sdk.md): Run a minimal local agent loop on top of AI Stats Gateway with the C# Agent SDK. - [Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/agent-sdk-installation.md): Install the C# Agent SDK and its core client dependency. - [Overview](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/agent-sdk-overview.md): What the C# Agent SDK is for and what surface it currently exposes. - [TTS (Text to Speech)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/audio-speech.md): Call /audio/speech with the C# SDK. - [STT (Speech to Text)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/audio-transcriptions.md): Call /audio/transcriptions with the C# SDK. - [Translations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/audio-translations.md): Call /audio/translations with the C# SDK. - [Batches](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/batches.md): Call /batches with the C# SDK. - [Chat completions](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/chat-completions.md): Call /chat/completions with the C# SDK. - [Embeddings](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/embeddings.md): Call /embeddings with the C# SDK. - [Files](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/files.md): Use the C# SDK for file upload, metadata, and file-content retrieval. - [Generation lookup](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/generation.md): Call /generations to retrieve a past generation. - [Image edits](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/images-edits.md): Call /images/edits with the C# SDK. - [Image generations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/images-generations.md): Call /images/generations with the C# SDK. - [C# SDK Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/installation.md): Set up the preview C# SDK from source. - [Models](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/models.md): List models with the C# SDK. - [Moderations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/moderations.md): Call /moderations with the C# SDK. - [C# SDK (preview)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/overview.md): Local-preview C# wrapper for the AI Stats API. - [Responses](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/responses.md): Call the Responses API with the C# SDK. - [C# SDK Usage](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/usage.md): Current wrapper methods supported by the preview C# SDK. - [Video generation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/csharp/video-generation.md): Create and manage async video jobs with the C# SDK. - [Usage](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/agent-sdk.md): Run a minimal local agent loop on top of AI Stats Gateway with the Go Agent SDK. - [Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/agent-sdk-installation.md): Install the Go Agent SDK and its core client dependency. - [Overview](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/agent-sdk-overview.md): What the Go Agent SDK is for and what surface it currently exposes. - [TTS (Text to Speech)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/audio-speech.md): Call /audio/speech with the Go wrapper. - [STT (Speech to Text)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/audio-transcriptions.md): Call /audio/transcriptions with the Go wrapper. - [Translations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/audio-translations.md): Call /audio/translations with the Go wrapper. - [Batches](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/batches.md): Create and retrieve batch jobs with the Go SDK wrapper. - [Chat completions](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/chat-completions.md): Call /chat/completions with the Go wrapper. - [Embeddings](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/embeddings.md): Call /embeddings with the Go wrapper. - [Files](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/files.md): Use the Go SDK for file metadata and file-content retrieval. - [Generation lookup](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/generation.md): Look up saved generations with the Go SDK. - [Image edits](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/images-edits.md): Edit images with the Go SDK. - [Image generations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/images-generations.md): Generate images with the Go SDK. - [Go SDK Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/installation.md): Set up the preview Go SDK from source. - [Models](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/models.md): List models with the Go wrapper. - [Moderations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/moderations.md): Call /moderations with the Go wrapper. - [Go SDK (preview)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/overview.md): Local-preview Go wrapper for the AI Stats API. - [Responses](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/responses.md): Call /responses with the Go wrapper. - [Go SDK Usage](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/usage.md): Current wrapper methods supported by the preview Go SDK. - [Video generation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/go/video-generation.md): Create and manage async video jobs with the Go SDK. - [TTS (Text to Speech)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/audio-speech.md): Call /audio/speech with the Java SDK. - [STT (Speech to Text)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/audio-transcriptions.md): Call /audio/transcriptions with the Java SDK. - [Translations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/audio-translations.md): Call /audio/translations with the Java SDK. - [Batches](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/batches.md): Call /batches with the Java SDK. - [Chat completions](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/chat-completions.md): Call /chat/completions with the Java SDK. - [Embeddings](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/embeddings.md): Call /embeddings with the Java SDK. - [Files](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/files.md): Use the Java SDK for file upload, metadata, and file-content retrieval. - [Generation lookup](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/generation.md): Call /generations to retrieve a prior generation record. - [Image edits](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/images-edits.md): Call /images/edits with the Java SDK. - [Image generations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/images-generations.md): Call /images/generations with the Java SDK. - [Java SDK Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/installation.md): How to build and use the preview Java SDK - [Models](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/models.md): List /models with the Java SDK. - [Moderations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/moderations.md): Call /moderations with the Java SDK. - [Java SDK (preview)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/overview.md): Experimental Java client for the AI Stats Gateway. - [Responses](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/responses.md): Call /responses with the Java SDK. - [Java SDK Usage](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/usage.md): How to initialize and use the Java SDK wrapper. - [Video generation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/java/video-generation.md): Create and manage async video jobs with the Java SDK. - [Usage](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/agent-sdk.md): Run a minimal local agent loop on top of AI Stats Gateway with the PHP Agent SDK. - [Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/agent-sdk-installation.md): Install the PHP Agent SDK and its core client dependency. - [Overview](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/agent-sdk-overview.md): What the PHP Agent SDK is for and what surface it currently exposes. - [TTS (Text to Speech)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/audio-speech.md): Call /audio/speech with the PHP SDK. - [STT (Speech to Text)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/audio-transcriptions.md): Call /audio/transcriptions with the PHP SDK. - [Translations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/audio-translations.md): Call /audio/translations with the PHP SDK. - [Batches](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/batches.md): Call /batches with the PHP SDK. - [Chat completions](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/chat-completions.md): Call /chat/completions with the PHP SDK. - [Embeddings](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/embeddings.md): Call /embeddings with the PHP SDK. - [Files](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/files.md): Use the PHP SDK for file upload, metadata, and file-content retrieval. - [Generation lookup](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/generation.md): Call /generations to retrieve a past generation. - [Image edits](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/images-edits.md): Call /images/edits with the PHP SDK. - [Image generations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/images-generations.md): Call /images/generations with the PHP SDK. - [PHP SDK Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/installation.md): Set up the preview PHP SDK from source. - [Models](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/models.md): List models with the PHP SDK. - [Moderations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/moderations.md): Call /moderations with the PHP SDK. - [PHP SDK (preview)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/overview.md): Local-preview PHP wrapper for the AI Stats API. - [Responses](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/responses.md): Call the Responses API with the PHP SDK. - [PHP SDK Usage](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/usage.md): Current wrapper methods supported by the preview PHP SDK. - [Video generation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/php/video-generation.md): Create and manage async video jobs with the PHP SDK. - [Usage](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/agent-sdk.md): Run a minimal local agent loop on top of AI Stats Gateway with the Python Agent SDK. - [Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/agent-sdk-installation.md): Install the Python Agent SDK and its core client dependency. - [Overview](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/agent-sdk-overview.md): What the Python Agent SDK is for and what surface it currently exposes. - [TTS (Text to Speech)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/audio-speech.md): Call /audio/speech with the Python SDK. - [STT (Speech to Text)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/audio-transcriptions.md): Call /audio/transcriptions with the Python SDK. - [Translations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/audio-translations.md): Call /audio/translations with the Python SDK. - [Batches](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/batches.md): Create and inspect batch jobs with the Python SDK. - [Chat completions](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/chat-completions.md): Call /chat/completions with the Python SDK. - [Embeddings](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/embeddings.md): Call /embeddings with the Python SDK. - [Files](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/files.md): Call /files with the Python SDK. - [Generation lookup](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/generation.md): Call /generations lookup with the Python SDK. - [Image edits](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/images-edits.md): Call /images/edits with the Python SDK. - [Image generations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/images-generations.md): Call /images/generations with the Python SDK. - [Python SDK Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/installation.md): How to install and set up the AI Stats Python SDK - [Models](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/models.md): List models with the Python SDK. - [Moderations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/moderations.md): Call /moderations with the Python SDK. - [Python SDK Overview](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/overview.md): Official Python client for the AI Stats Gateway API - [Responses](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/responses.md): Call the Responses API with the Python SDK. - [Python SDK Usage](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/usage.md): Endpoint-by-endpoint examples using the Python SDK. - [Video generation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/python/video-generation.md): Create and manage async video jobs with the Python SDK. - [Usage](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/agent-sdk.md): Run a minimal local agent loop on top of AI Stats Gateway with the Ruby Agent SDK. - [Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/agent-sdk-installation.md): Install the Ruby Agent SDK and its core client dependency. - [Overview](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/agent-sdk-overview.md): What the Ruby Agent SDK is for and what surface it currently exposes. - [TTS (Text to Speech)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/audio-speech.md): Call /audio/speech with the Ruby SDK. - [STT (Speech to Text)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/audio-transcriptions.md): Call /audio/transcriptions with the Ruby SDK. - [Translations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/audio-translations.md): Call /audio/translations with the Ruby SDK. - [Batches](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/batches.md): Call /batches with the Ruby SDK. - [Chat completions](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/chat-completions.md): Call /chat/completions with the Ruby SDK. - [Embeddings](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/embeddings.md): Call /embeddings with the Ruby SDK. - [Files](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/files.md): Use the Ruby SDK for file upload, metadata, and file-content retrieval. - [Generation lookup](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/generation.md): Call /generations to retrieve a past generation. - [Image edits](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/images-edits.md): Call /images/edits with the Ruby SDK. - [Image generations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/images-generations.md): Call /images/generations with the Ruby SDK. - [Ruby SDK Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/installation.md): Set up the preview Ruby SDK from source. - [Models](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/models.md): List models with the Ruby SDK. - [Moderations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/moderations.md): Call /moderations with the Ruby SDK. - [Ruby SDK (preview)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/overview.md): Local-preview Ruby wrapper for the AI Stats API. - [Responses](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/responses.md): Call the Responses API with the Ruby SDK. - [Ruby SDK Usage](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/usage.md): Current wrapper methods supported by the preview Ruby SDK. - [Video generation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/ruby/video-generation.md): Create and manage async video jobs with the Ruby SDK. - [Rust SDK Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/rust/installation.md): How to build and use the preview Rust SDK - [Rust SDK (preview)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/rust/overview.md): Experimental Rust client for the AI Stats Gateway. - [AI SDK (Vercel) Overview](https://docs.ai-stats.phaseo.app/v1/sdk-reference/sdk/ai-sdk.md): Use the official AI Stats provider with Vercel AI SDK v6. - [TTS / STT (AI SDK)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/sdk/audio/index.md): Speech-to-text (STT) and text-to-speech (TTS) with AI Stats provider models. - [Embeddings (AI SDK)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/sdk/embeddings/index.md): Create embeddings with AI Stats provider models in Vercel AI SDK. - [Generate Text (AI SDK)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/sdk/generate-text/index.md): Non-streaming text generation with Vercel AI SDK and AI Stats. - [Model Discovery (AI SDK)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/sdk/get-models/index.md): How to fetch live model IDs for use with the AI SDK provider. - [Images (AI SDK)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/sdk/images/index.md): Generate images with Vercel AI SDK and the AI Stats provider. - [Stream Text (AI SDK)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/sdk/stream-text/index.md): Streaming text generation with Vercel AI SDK and AI Stats. - [Structured Output (AI SDK)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/sdk/structured-output/index.md): Generate schema-validated JSON objects with AI Stats and Vercel AI SDK. - [Tool Calling (AI SDK)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/sdk/tool-calling/index.md): Function/tool calling with Vercel AI SDK and AI Stats provider. - [Usage](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/agent-sdk.md): Build your own agentic applications on top of AI Stats Gateway with the TypeScript Agent SDK. - [Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/agent-sdk-installation.md): Install the TypeScript Agent SDK and its core dependency. - [Overview](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/agent-sdk-overview.md): What the TypeScript Agent SDK is for and when to use it. - [TTS (Text to Speech)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/audio-speech.md): Call /audio/speech with the TypeScript SDK. - [STT (Speech to Text)](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/audio-transcriptions.md): Call /audio/transcriptions with the TypeScript SDK. - [Translations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/audio-translations.md): Call /audio/translations with the TypeScript SDK. - [Batches](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/batches.md): Call /batches with the TypeScript SDK. - [Chat completions](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/chat-completions.md): Call /chat/completions with the TypeScript SDK. - [Embeddings](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/embeddings.md): Call /embeddings with the TypeScript SDK. - [Files](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/files.md): Call /files with the TypeScript SDK. - [Generation lookup](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/generation.md): Call /generation to retrieve a past generation. - [Image edits](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/images-edits.md): Call /images/edits with the TypeScript SDK. - [Image generations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/images-generations.md): Call /images/generations with the TypeScript SDK. - [TypeScript SDK Installation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/installation.md): How to install and set up the AI Stats TypeScript SDK - [Models](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/models.md): List models with the TypeScript SDK. - [Moderations](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/moderations.md): Call /moderations with the TypeScript SDK. - [TypeScript SDK Overview](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/overview.md): Official TypeScript client for the AI Stats Gateway API - [Responses](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/responses.md): Call the Responses API with the TypeScript SDK. - [TypeScript SDK Usage](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/usage.md): Endpoint-by-endpoint examples using the TypeScript SDK. - [Video generation](https://docs.ai-stats.phaseo.app/v1/sdk-reference/typescript/video-generation.md): Create and manage async video jobs with the TypeScript SDK. ## OpenAPI Specs - [openapi](https://docs.ai-stats.phaseo.app/api-reference/openapi.json) ## Optional - [GitHub](https://github.com/AI-Stats/AI-Stats) - [Discord](https://discord.gg/aQyywCvgZ5)