# Phaseo Docs > Documentation for Phaseo Gateway, SDKs, routing, pricing, guardrails, async jobs, and model discovery across providers. ## Docs - [Start Here](https://phaseo.app/docs/v1/index.md): Choose the right Phaseo docs path for your first request, migration, SDK setup, or production rollout. - [Quickstart](https://phaseo.app/docs/v1/quickstart.md): Create an API key and make your first Phaseo request with a current text model. - [How Phaseo Works](https://phaseo.app/docs/v1/developers/introduction.md): Understand the Phaseo Gateway before you choose endpoints, SDKs, routing, or production settings. - [Examples](https://phaseo.app/docs/v1/guides/examples.md): Copy-paste Phaseo requests, runnable sample projects, and cookbook walkthroughs. - [Principles](https://phaseo.app/docs/v1/guides/principles.md): The product principles behind Phaseo Gateway, routing, observability, and model data. - [Authentication](https://phaseo.app/docs/v1/developers/authentication.md): Use API keys to authenticate every request to Phaseo Gateway. - [Integrating with the Gateway](https://phaseo.app/docs/v1/developers/integrating-with-the-gateway.md): Connect an application to Phaseo Gateway, choose an endpoint, and prepare the integration for production. - [CLI and MCP](https://phaseo.app/docs/v1/developers/cli-and-mcp.md): Use the Phaseo CLI for terminal automation or connect the authenticated MCP server to AI clients for live, read-only Phaseo data. - [FAQ](https://phaseo.app/docs/v1/community/faq.md): Answers to common questions about Phaseo and the Gateway. - [Exploring Models](https://phaseo.app/docs/v1/exploring/models.md): Learn how to browse, compare, and understand the AI models listed on Phaseo. - [Exploring API Providers](https://phaseo.app/docs/v1/exploring/api-providers.md): Understand what API providers do and how to evaluate them for reliability, performance, and cost. - [Routing and Fallbacks](https://phaseo.app/docs/v1/guides/routing-and-fallbacks.md): How the Gateway selects providers and keeps requests reliable. - [Provider-qualified model IDs](https://phaseo.app/docs/v1/guides/provider-qualified-models.md): Route a request to one exact provider and model using a single model identifier. - [Provider and Phaseo Statuses](https://phaseo.app/docs/v1/guides/provider-statuses.md): How upstream provider availability, Phaseo integration readiness, and routing health differ. - [Presets](https://phaseo.app/docs/v1/guides/presets.md): Save reusable Gateway configurations for your team. - [Collect Feedback for Presets](https://phaseo.app/docs/v1/guides/preset-feedback.md): Record response ratings and compare preset quality in the Phaseo dashboard. - [Service Tiers](https://phaseo.app/docs/v1/guides/service-tiers.md): How Standard, Priority, Flex, and Batch pricing modes work in Phaseo Gateway. - [Prompt Caching](https://phaseo.app/docs/v1/guides/prompt-caching.md): Reuse stable prompt context across Chat Completions, Responses, and Anthropic Messages requests. - [Multimodality](https://phaseo.app/docs/v1/guides/multimodality.md): Use text, image, audio, video, and other modalities through the Gateway. - [Tool Calling](https://phaseo.app/docs/v1/guides/tool-calling.md): Use model-driven function calls safely through the Gateway. - [Server Tools](https://phaseo.app/docs/v1/guides/server-tools/index.md): Let models call Phaseo-operated tools during a request. - [Datetime Server Tool](https://phaseo.app/docs/v1/guides/server-tools/datetime.md): Give models the current date and time in one or more timezones. - [Web Search Server Tool](https://phaseo.app/docs/v1/guides/server-tools/web-search.md): Let models search the web during a request. - [Web Fetch Server Tool](https://phaseo.app/docs/v1/guides/server-tools/web-fetch.md): Let models fetch and read specific URLs during a request. - [Advisor Server Tool](https://phaseo.app/docs/v1/guides/server-tools/advisor.md): Let one model consult another model mid-generation. - [Subagent Server Tool](https://phaseo.app/docs/v1/guides/server-tools/subagent.md): Let the main model delegate focused work to a worker model. - [Fusion Server Tool](https://phaseo.app/docs/v1/guides/server-tools/fusion.md): Run several analysis models and synthesize their findings. - [Search Models Server Tool](https://phaseo.app/docs/v1/guides/server-tools/search-models.md): Let a model discover suitable models from Phaseo's live catalogue. - [Image Generation](https://phaseo.app/docs/v1/guides/server-tools/image-generation.md): Let models create images through A Phaseo server tool. - [Apply Patch](https://phaseo.app/docs/v1/guides/server-tools/apply-patch.md): Let Responses models return validated patch operations. - [Structured Outputs](https://phaseo.app/docs/v1/guides/structured-outputs.md): Return predictable JSON with json_object or json_schema output formats. - [Structured Output Schemas](https://phaseo.app/docs/v1/guides/structured-outputs-schemas.md): How to design practical JSON schemas for model output. - [Structured Output Validation](https://phaseo.app/docs/v1/guides/structured-outputs-validation.md): Server-side validation, retries, and fallback strategies for structured output. - [Tool Calling Patterns](https://phaseo.app/docs/v1/guides/tool-calling-patterns.md): Reliable tool-calling loops for chat completions and responses endpoints. - [Tool Calling Safety and Validation](https://phaseo.app/docs/v1/guides/tool-calling-safety.md): Validate tool arguments, harden execution, and avoid unsafe model actions. - [Streaming](https://phaseo.app/docs/v1/guides/streaming.md): Use server-sent events (SSE) for low-latency token delivery. - [Streaming SSE Events](https://phaseo.app/docs/v1/guides/streaming-sse.md): Understand frame structure and parse SSE streams safely. - [Streaming in Production](https://phaseo.app/docs/v1/guides/streaming-production.md): Operational patterns for robust streaming UX and backend reliability. - [Model Quantization](https://phaseo.app/docs/v1/guides/model-quantization.md): Overview of quantization and where to go next in the quantization + parameters guide series. - [Quantization Formats](https://phaseo.app/docs/v1/guides/quantization-formats.md): BF16, FP16, FP8, FP4, INT8, INT4 and what each format means in practice. - [Quantization Methods](https://phaseo.app/docs/v1/guides/quantization-methods.md): How quantization methods differ from numeric formats, and why method choice matters. - [Choosing a Quantization Strategy](https://phaseo.app/docs/v1/guides/quantization-selection.md): A practical framework for selecting BF16/FP8/INT8/INT4 variants by workload. - [Inference Parameters](https://phaseo.app/docs/v1/guides/inference-parameters.md): How core request parameters affect quality, determinism, latency, and cost. - [Sampling and Decoding](https://phaseo.app/docs/v1/guides/sampling-and-decoding.md): How decoding strategies and penalties shape model outputs. - [Context and Token Budgeting](https://phaseo.app/docs/v1/guides/context-and-token-budgeting.md): How to allocate prompt and output tokens for quality, speed, and cost. - [App Attribution](https://phaseo.app/docs/v1/guides/app-attribution.md): Attach app metadata to Gateway requests for analytics and auditing. - [Integrations](https://phaseo.app/docs/v1/guides/integrations/index.md): Connect Phaseo to popular SDKs, frameworks, agents, and observability tools. - [Docs MCP](https://phaseo.app/docs/v1/guides/integrations/docs-mcp.md): Connect the Phaseo documentation MCP server to Codex, Claude Code, Cursor, or VS Code. - [Phaseo CLI](https://phaseo.app/docs/v1/guides/integrations/phaseo-cli.md): Install the official Phaseo CLI, connect coding harnesses, and manage Phaseo from the terminal. - [Observability](https://phaseo.app/docs/v1/guides/integrations/observability.md): Trace Phaseo requests with Langfuse, LangSmith, OpenTelemetry, and similar tools. - [LiveKit](https://phaseo.app/docs/v1/guides/integrations/livekit.md): Use Phaseo models in LiveKit Agents. - [Replit](https://phaseo.app/docs/v1/guides/integrations/replit.md): Call Phaseo from Replit applications and deployments. - [Workflow Automation](https://phaseo.app/docs/v1/guides/integrations/automation.md): Use Phaseo from Zapier, n8n, Pipedream, and other automation platforms. - [Infisical](https://phaseo.app/docs/v1/guides/integrations/infisical.md): Prepare automatic Phaseo API key rotation with Infisical. - [OpenAI SDK](https://phaseo.app/docs/v1/guides/integrations/openai-sdk.md): Use official OpenAI SDKs with Phaseo. - [Anthropic SDK](https://phaseo.app/docs/v1/guides/integrations/anthropic-sdk.md): Use Anthropic-compatible clients with Phaseo. - [AI SDK](https://phaseo.app/docs/v1/guides/integrations/ai-sdk.md): Use the official Phaseo provider for the Vercel AI SDK. - [LangChain](https://phaseo.app/docs/v1/guides/integrations/langchain.md): Use LangChain with Phaseo through the OpenAI-compatible chat API. - [LlamaIndex](https://phaseo.app/docs/v1/guides/integrations/llamaindex.md): Use Phaseo in LlamaIndex RAG workflows. - [LiteLLM](https://phaseo.app/docs/v1/guides/integrations/litellm.md): Use Phaseo behind LiteLLM or route LiteLLM calls through Phaseo. - [PydanticAI](https://phaseo.app/docs/v1/guides/integrations/pydanticai.md): Build typed Python agents with PydanticAI and Phaseo. - [Mastra](https://phaseo.app/docs/v1/guides/integrations/mastra.md): Use Phaseo models inside Mastra agents and workflows. - [TanStack AI](https://phaseo.app/docs/v1/guides/integrations/tanstack-ai.md): Use Phaseo with TanStack AI's OpenAI-compatible adapter. - [Effect AI SDK](https://phaseo.app/docs/v1/guides/integrations/effect-ai.md): Use Phaseo from Effect TypeScript applications. - [Coding Assistants](https://phaseo.app/docs/v1/guides/integrations/coding-assistants.md): Add Phaseo as a model provider in Cursor, VS Code, Codex, Claude Code, and other coding tools. - [Claude Code](https://phaseo.app/docs/v1/guides/integrations/claude-code.md): Connect Claude Code to the Phaseo Gateway via the Anthropic-compatible API. - [Codex](https://phaseo.app/docs/v1/guides/integrations/codex.md): Use the Phaseo Gateway as a custom provider for Codex CLI, Codex App, and the Codex IDE extension. - [Use Phaseo with DeepSeek Harness](https://phaseo.app/docs/v1/guides/integrations/deepseek-harness.md): Add Phaseo as a custom OpenAI-compatible provider in DeepSeek Harness. - [OpenCode](https://phaseo.app/docs/v1/guides/integrations/opencode.md): Connect OpenCode to the Phaseo Gateway with a custom OpenAI-compatible provider. - [Pi](https://phaseo.app/docs/v1/guides/integrations/pi.md): Install Pi and connect its model catalog to the Phaseo Gateway. - [Prime Agent](https://phaseo.app/docs/v1/guides/integrations/prime-agent.md): Install Prime Agent and connect its custom model catalog to Phaseo. - [Aider](https://phaseo.app/docs/v1/guides/integrations/aider.md): Connect Aider to Phaseo with an automatically managed configuration. - [Continue](https://phaseo.app/docs/v1/guides/integrations/continue.md): Add Phaseo to Continue in VS Code, JetBrains, or Continue CLI. - [Cline](https://phaseo.app/docs/v1/guides/integrations/cline.md): Connect Cline to Phaseo through its OpenAI-compatible provider. - [Roo Code](https://phaseo.app/docs/v1/guides/integrations/roo-code.md): Connect Roo Code to Phaseo through an OpenAI-compatible profile. - [Kilo Code](https://phaseo.app/docs/v1/guides/integrations/kilo-code.md): Connect Kilo Code to Phaseo with a custom OpenAI-compatible provider. - [Cursor](https://phaseo.app/docs/v1/guides/integrations/cursor.md): Connect Cursor to Phaseo through its OpenAI API key and Base URL override settings. - [Zed](https://phaseo.app/docs/v1/guides/integrations/zed.md): Add Phaseo as an OpenAI-compatible model provider in Zed. - [Workspaces](https://phaseo.app/docs/v1/guides/workspaces.md): Organise API keys, settings, and administrative access without changing your Phaseo pricing plan. - [Management API Keys](https://phaseo.app/docs/v1/developers/management-api-keys.md): Create scoped management keys for Phaseo control-plane APIs. - [Rate Limits](https://phaseo.app/docs/v1/developers/rate-limits.md): Learn how rate limits work through our Gateway and providers. - [Error Handling](https://phaseo.app/docs/v1/developers/error-handling.md): Understand error types and recovery strategies for reliable Gateway integrations. - [Best Practices](https://phaseo.app/docs/v1/developers/best-practices.md): Ship reliable AI features by following these architecture, security, and observability guidelines. - [Overview](https://phaseo.app/docs/v1/exploring/overview.md): Learn how to explore models, benchmarks, providers, and pricing data across the AI ecosystem. - [Pricing Tiers](https://phaseo.app/docs/v1/pricing/tiers.md): Understand the flat 5% credit purchase fee and how Gateway billing works - [Subscription Plans](https://phaseo.app/docs/v1/exploring/subscription-plans.md): Overview of subscription plans and tiers offered by API providers and how they affect access and pricing. - [Exploring Organisations](https://phaseo.app/docs/v1/exploring/organisations.md): Discover the companies, research groups, and communities that develop and publish AI models. - [Exploring Benchmarks](https://phaseo.app/docs/v1/exploring/benchmarks.md): Understand how AI model benchmarks are collected, standardised, and visualised on Phaseo. - [Pricing & Performance](https://phaseo.app/docs/v1/exploring/pricing-performance.md): Understand how model pricing and performance are measured, compared, and normalised across providers on Phaseo. - [Benchmark Methodology](https://phaseo.app/docs/v1/research/benchmark-methodology.md): Learn how Phaseo collects, normalises, and publishes benchmark results. - [Citation](https://phaseo.app/docs/v1/research/citation.md): How to acknowledge Phaseo data, benchmarks, and gateway tooling in your work. - [Submitting Scores](https://phaseo.app/docs/v1/research/submitting-scores.md): Share new benchmark results with the Phaseo community in a structured, reviewable way. - [Migration Guides](https://phaseo.app/docs/v1/migration-guides/index.md): Guides for moving between platforms or adopting a specific model release. - [Model Migrations](https://phaseo.app/docs/v1/model-migrations/index.md): Model-specific guidance for adopting new model releases safely in production. - [Anthropic Claude Opus 5](https://phaseo.app/docs/v1/model-migrations/anthropic-claude-opus-5.md): What to know when adopting Claude Opus 5 for long-context reasoning, coding, and agentic workloads. - [OpenAI GPT-5.6](https://phaseo.app/docs/v1/model-migrations/openai-migrating-to-gpt-5-6.md): What to know when adopting GPT-5.6 Sol, Terra, or Luna for production workloads. - [OpenAI Deprecations](https://phaseo.app/docs/v1/model-migrations/openai-deprecations.md): OpenAI model and platform deprecations tracked in the AI Stats catalog. - [Anthropic Claude Opus 4.8](https://phaseo.app/docs/v1/model-migrations/anthropic-claude-opus-4-1-to-4-8.md): What to know when adopting Claude Opus 4.8, including adaptive thinking, sampling controls, and long context. - [Anthropic Claude Opus 4.7](https://phaseo.app/docs/v1/model-migrations/anthropic-claude-opus-4-6-to-4-7.md): What to know when adopting Claude Opus 4.7, including adaptive thinking, sampling controls, and token usage. - [Mistral Small 4](https://phaseo.app/docs/v1/model-migrations/mistral-small-3-2-to-mistral-small-4.md): What to know when adopting Mistral Small 4, including reasoning controls and normalized response fields. - [OpenAI GPT-5.4](https://phaseo.app/docs/v1/model-migrations/openai-migrating-to-gpt-5-4.md): What to know when adopting GPT-5.4, including reasoning controls, vision, and computer use. - [Google Nano Banana 2](https://phaseo.app/docs/v1/model-migrations/google-nano-banana-1-to-nano-banana-2.md): What to know when adopting Nano Banana 2 for production image generation and editing. - [Google Gemini 3.1](https://phaseo.app/docs/v1/model-migrations/google-migrating-to-gemini-3-and-3-1.md): What to know when adopting Gemini 3.1, including reasoning controls, multimodal handling, and thought signatures. - [Anthropic Claude Sonnet 4.6](https://phaseo.app/docs/v1/model-migrations/anthropic-claude-sonnet-4-5-to-4-6.md): What to know when adopting Claude Sonnet 4.6 for coding, computer use, and agent planning. - [SpaceXAI Grok 4.20](https://phaseo.app/docs/v1/model-migrations/xai-grok-4-20.md): What to know when adopting Grok 4.20, including reasoning and multi-agent effort controls. - [Anthropic Claude Opus 4.6](https://phaseo.app/docs/v1/model-migrations/anthropic-claude-opus-4-5-to-4-6.md): What to know when adopting Claude Opus 4.6, including structured output, adaptive thinking, and prefills. - [Migration Assistant](https://phaseo.app/docs/v1/migration-guides/assistant.md): Interactive migration guide for moving to the Phaseo Gateway. - [Migrating from OpenAI SDK](https://phaseo.app/docs/v1/migration-guides/from-openai.md): Move an existing OpenAI SDK integration to Phaseo by changing the client configuration, verifying model IDs, and testing the workflows your app uses. - [Migrating from Anthropic SDK](https://phaseo.app/docs/v1/migration-guides/from-anthropic.md): Move an Anthropic SDK integration to Phaseo while keeping the Messages API workflow familiar. - [Migration from OpenRouter](https://phaseo.app/docs/v1/migration-guides/from-openrouter.md): Move from OpenRouter to Phaseo Gateway with a controlled rollout, explicit parity checks, and minimal request-shape changes. - [Migrating from Vercel AI Gateway](https://phaseo.app/docs/v1/migration-guides/from-vercel.md): Replace Vercel AI Gateway routing with Phaseo Gateway while preserving AI SDK or OpenAI-compatible application behavior. - [Migrating from LLM Gateway](https://phaseo.app/docs/v1/migration-guides/from-llmgateway.md): Move from LLMGateway to Phaseo Gateway with an OpenAI-compatible endpoint swap, model-ID verification, and staged rollout validation. - [Migrating from Cloudflare AI Gateway](https://phaseo.app/docs/v1/migration-guides/from-cloudflare.md): Replace a Cloudflare AI Gateway route with Phaseo while preserving your application request flow. - [Migrating from Helicone AI Gateway](https://phaseo.app/docs/v1/migration-guides/from-helicone.md): Move an OpenAI-compatible Helicone proxy integration to Phaseo and replace the observability headers it no longer needs. - [Migrating from LiteLLM](https://phaseo.app/docs/v1/migration-guides/from-litellm.md): Replace a LiteLLM proxy with Phaseo while preserving the OpenAI-compatible request path your application already uses. - [Gateway Parity Review](https://phaseo.app/docs/v1/migration-guides/gateway-parity-review.md): Understand how ready Phaseo is for migrations from OpenRouter, Vercel AI Gateway, and LLMGateway. - [Feature Parity Matrix](https://phaseo.app/docs/v1/migration-guides/feature-parity-matrix.md): See what you can migrate to Phaseo confidently today, and which areas still need extra care. - [Contact and Support](https://phaseo.app/docs/v1/community/contact-and-support.md): How to get help or report issues with Phaseo. - [Contributing to Phaseo](https://phaseo.app/docs/v1/contributing/overview.md): Learn how to contribute data, documentation, or improvements to the Phaseo project and help build the world's most comprehensive AI database. - [How to Contribute](https://phaseo.app/docs/v1/contributing/how-to-contribute.md): A step-by-step guide on how to make your first contribution to Phaseo - from setting up your environment to submitting a pull request. - [Repository Structure](https://phaseo.app/docs/v1/contributing/repo-structure.md): Understand how the Phaseo repository is organized - where to find data, documentation, and configuration files. - [Editing a Model](https://phaseo.app/docs/v1/contributing/editing-a-model.md): Update model metadata, pricing, and capabilities in the Phaseo data set. - [Editing an Organisation](https://phaseo.app/docs/v1/contributing/editing-an-organisation.md): Update organisation records in the Phaseo data set. - [Code of Conduct](https://phaseo.app/docs/v1/community/code-of-conduct.md): Expected behavior for contributors and community members. - [Gateway API Overview](https://phaseo.app/docs/v1/api-reference/introduction.md): Base URL, authentication, and endpoint families for the Phaseo Gateway. - [Authentication](https://phaseo.app/docs/v1/api-reference/authentication.md): Authenticate requests with bearer API keys and manage key lifecycle safely. - [Parameters](https://phaseo.app/docs/v1/api-reference/parameters.md): Field-by-field request parameter reference for Phaseo text, routing, and debug controls. - [Streaming](https://phaseo.app/docs/v1/api-reference/streaming.md): Stream model output in real time using SSE on core text endpoints. - [Webhooks and job updates](https://phaseo.app/docs/v1/api-reference/async-lifecycle-updates.md): Track Batch and Video jobs with webhooks, polling, or an experimental WebSocket connection. - [Limits](https://phaseo.app/docs/v1/api-reference/limits.md): Understand provider-driven rate limits and how to build resilient retry behavior. - [Errors and Debugging](https://phaseo.app/docs/v1/api-reference/errors.md): Understand Phaseo error responses and fix common request, provider, and routing issues faster. - [Create a response](https://phaseo.app/docs/v1/api-reference/endpoint/responses.md): Creates a response using the Responses API. - [Create a chat completion](https://phaseo.app/docs/v1/api-reference/endpoint/chat-completions.md): Generate chat-based completions using the OpenAI-compatible chat endpoint. - [Create a message](https://phaseo.app/docs/v1/api-reference/endpoint/anthropic-messages.md): Anthropic-compatible Messages endpoint at /v1/messages. - [List models](https://phaseo.app/docs/v1/api-reference/endpoint/models.md): Browse gateway-native models through Phaseo Gateway, including optional non-routable availability details. - [List model endpoint capabilities](https://phaseo.app/docs/v1/api-reference/endpoint/model-endpoints.md): Inspect the provider routes, modalities, parameters, availability, and pricing available for one model. - [List providers](https://phaseo.app/docs/v1/api-reference/endpoint/providers.md): Browse the catalogue of API providers supported by the gateway. - [List endpoints](https://phaseo.app/docs/v1/api-reference/endpoint/endpoints.md): List capability-backed gateway endpoints with public paths and model/provider coverage. - [List model pricing](https://phaseo.app/docs/v1/api-reference/endpoint/pricing-models.md): List the currently active catalogue pricing cards exposed through the gateway. - [Calculate pricing](https://phaseo.app/docs/v1/api-reference/endpoint/pricing-calculate.md): Estimate the bill for a specific provider/model/endpoint usage payload. - [Create embeddings](https://phaseo.app/docs/v1/api-reference/endpoint/embeddings.md): Create embeddings with the Phaseo embeddings endpoint. - [Generate an image](https://phaseo.app/docs/v1/api-reference/endpoint/images-generations.md): Creates an image given a prompt. - [Edit an image](https://phaseo.app/docs/v1/api-reference/endpoint/images-edits.md): Apply edits to an existing image using the specified model and prompt. - [Create speech](https://phaseo.app/docs/v1/api-reference/endpoint/audio-speech.md): Generate TTS audio from text using the specified voice and format. - [Create a transcription](https://phaseo.app/docs/v1/api-reference/endpoint/audio-transcriptions.md): Convert audio to text (STT) with the selected transcription model. - [Create a translation](https://phaseo.app/docs/v1/api-reference/endpoint/audio-translations.md): Translate spoken audio into another language with the specified translation model. - [Generate music](https://phaseo.app/docs/v1/api-reference/endpoint/music-generate.md): Generates music using the requested model and provider settings. - [Get music generation](https://phaseo.app/docs/v1/api-reference/endpoint/music-status.md): Check the status of an asynchronous music generation job. - [Create a moderation](https://phaseo.app/docs/v1/api-reference/endpoint/moderations.md): Classifies if text violates OpenAI's usage policies. - [Extract text with OCR](https://phaseo.app/docs/v1/api-reference/endpoint/ocr.md): Extracts text from an image using the requested model. - [Upload a file](https://phaseo.app/docs/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](https://phaseo.app/docs/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 a file](https://phaseo.app/docs/v1/api-reference/endpoint/files-retrieve.md): Retrieve metadata for a file that belongs to the authenticated workspace. - [Download file content](https://phaseo.app/docs/v1/api-reference/endpoint/files-content.md): Download the content for a file that belongs to the authenticated workspace. - [Get a generation](https://phaseo.app/docs/v1/api-reference/endpoint/generation.md): Retrieve a specific generation by ID. - [List activity](https://phaseo.app/docs/v1/api-reference/endpoint/activity.md): Retrieve recent API activity for a team with configurable time range and pagination. - [Get credits](https://phaseo.app/docs/v1/api-reference/endpoint/credits.md): How the Gateway tracks and bills for requests. - [Get current API key](https://phaseo.app/docs/v1/api-reference/endpoint/key-current.md): Inspect the currently authenticated standard Gateway API key. - [List API keys](https://phaseo.app/docs/v1/api-reference/endpoint/keys-list.md): List API keys for the authenticated workspace. - [Create API key](https://phaseo.app/docs/v1/api-reference/endpoint/keys-create.md): Create a new API key in the authenticated workspace. - [Get API key](https://phaseo.app/docs/v1/api-reference/endpoint/keys-get.md): Retrieve a single API key by id or hash. - [Delete API key](https://phaseo.app/docs/v1/api-reference/endpoint/keys-delete.md): Delete an API key in the authenticated workspace. - [Update API key](https://phaseo.app/docs/v1/api-reference/endpoint/keys-update.md): Update API key metadata and status. - [List workspaces](https://phaseo.app/docs/v1/api-reference/endpoint/workspaces-list.md): List workspaces owned by the authenticated management key owner. - [Create a workspace](https://phaseo.app/docs/v1/api-reference/endpoint/workspaces-create.md): Create a new workspace. - [Get a workspace](https://phaseo.app/docs/v1/api-reference/endpoint/workspaces-get.md): Retrieve a workspace by id or slug. - [Delete a workspace](https://phaseo.app/docs/v1/api-reference/endpoint/workspaces-delete.md): Delete a workspace by id or slug. - [Update a workspace](https://phaseo.app/docs/v1/api-reference/endpoint/workspaces-update.md): Update workspace metadata. - [List organisations](https://phaseo.app/docs/v1/api-reference/endpoint/organisations.md): List provider organisations from the shared catalogue with simple pagination. - [Create a realtime session](https://phaseo.app/docs/v1/api-reference/endpoint/realtime.md): Create a low-latency voice session and connect through the Phaseo realtime relay. - [Generate a video](https://phaseo.app/docs/v1/api-reference/endpoint/video-generation.md): **Internal testing.** The Video API is available only to enabled workspaces and may be temporarily disabled while its public contract is finalised. The API may change before general availability. - [List videos](https://phaseo.app/docs/v1/api-reference/endpoint/video-list.md): **Internal testing.** The Video API is available only to enabled workspaces and may be temporarily disabled while its public contract is finalised. The API may change before general availability. - [List video models](https://phaseo.app/docs/v1/api-reference/endpoint/video-models.md): **Internal testing.** The Video API is available only to enabled workspaces and may be temporarily disabled while its public contract is finalised. The API may change before general availability. - [Get a video](https://phaseo.app/docs/v1/api-reference/endpoint/video-status.md): **Internal testing.** The Video API is available only to enabled workspaces and may be temporarily disabled while its public contract is finalised. The API may change before general availability. - [Download video content](https://phaseo.app/docs/v1/api-reference/endpoint/video-content.md): **Internal testing.** The Video API is available only to enabled workspaces and may be temporarily disabled while its public contract is finalised. The API may change before general availability. - [Create a video download URL](https://phaseo.app/docs/v1/api-reference/endpoint/video-download-url.md): **Internal testing.** The Video API is available only to enabled workspaces and may be temporarily disabled while its public contract is finalised. The API may change before general availability. - [Cancel a video](https://phaseo.app/docs/v1/api-reference/endpoint/video-cancel.md): **Internal testing.** The Video API is available only to enabled workspaces and may be temporarily disabled while its public contract is finalised. The API may change before general availability. - [Delete a video](https://phaseo.app/docs/v1/api-reference/endpoint/video-delete.md): **Internal testing.** The Video API is available only to enabled workspaces and may be temporarily disabled while its public contract is finalised. The API may change before general availability. - [Create a batch](https://phaseo.app/docs/v1/api-reference/endpoint/batches.md): **Internal testing.** The Batch API is available only to enabled workspaces. Requests from other workspaces return `403`, and the API may change before general availability. - [List batches](https://phaseo.app/docs/v1/api-reference/endpoint/batches-list.md): **Internal testing.** The Batch API is available only to enabled workspaces. Requests from other workspaces return `403`, and the API may change before general availability. - [List batch models](https://phaseo.app/docs/v1/api-reference/endpoint/batches-models.md): **Internal testing.** The Batch API is available only to enabled workspaces. Requests from other workspaces return `403`, and the API may change before general availability. - [Get a batch](https://phaseo.app/docs/v1/api-reference/endpoint/batches-status.md): **Internal testing.** The Batch API is available only to enabled workspaces. Requests from other workspaces return `403`, and the API may change before general availability. - [Cancel a batch](https://phaseo.app/docs/v1/api-reference/endpoint/batches-cancel.md): **Internal testing.** The Batch API is available only to enabled workspaces. Requests from other workspaces return `403`, and the API may change before general availability. - [Guardrails](https://phaseo.app/docs/v1/api-reference/endpoint/guardrails.md): Programmatic guardrails management for workspaces and keys. - [AI SDK (Vercel) Overview](https://phaseo.app/docs/v1/sdk-reference/sdk/ai-sdk.md): Use the official Phaseo provider with Vercel AI SDK v6. - [Generate Text (AI SDK)](https://phaseo.app/docs/v1/sdk-reference/sdk/generate-text/index.md): Non-streaming text generation with Vercel AI SDK and Phaseo. - [Stream Text (AI SDK)](https://phaseo.app/docs/v1/sdk-reference/sdk/stream-text/index.md): Streaming text generation with Vercel AI SDK and Phaseo. - [Tool Calling (AI SDK)](https://phaseo.app/docs/v1/sdk-reference/sdk/tool-calling/index.md): Function/tool calling with Vercel AI SDK and Phaseo provider. - [Structured Output (AI SDK)](https://phaseo.app/docs/v1/sdk-reference/sdk/structured-output/index.md): Generate schema-validated JSON objects with Phaseo and Vercel AI SDK. - [Embeddings (AI SDK)](https://phaseo.app/docs/v1/sdk-reference/sdk/embeddings/index.md): Create embeddings with Phaseo provider models in Vercel AI SDK. - [Images (AI SDK)](https://phaseo.app/docs/v1/sdk-reference/sdk/images/index.md): Generate images with Vercel AI SDK and the Phaseo provider. - [TTS / STT (AI SDK)](https://phaseo.app/docs/v1/sdk-reference/sdk/audio/index.md): Speech-to-text (STT) and text-to-speech (TTS) with Phaseo provider models. - [Model Discovery (AI SDK)](https://phaseo.app/docs/v1/sdk-reference/sdk/get-models/index.md): How to fetch live model IDs for use with the AI SDK provider. - [TypeScript SDK Overview](https://phaseo.app/docs/v1/sdk-reference/typescript/overview.md): Official TypeScript client for the Phaseo Gateway API - [TypeScript SDK Installation](https://phaseo.app/docs/v1/sdk-reference/typescript/installation.md): How to install and set up the Phaseo TypeScript SDK - [TypeScript SDK Usage](https://phaseo.app/docs/v1/sdk-reference/typescript/usage.md): Endpoint-by-endpoint examples using the TypeScript SDK. - [Responses](https://phaseo.app/docs/v1/sdk-reference/typescript/responses.md): Call the Responses API with the TypeScript SDK. - [Chat completions](https://phaseo.app/docs/v1/sdk-reference/typescript/chat-completions.md): Call /chat/completions with the TypeScript SDK. - [Image generations](https://phaseo.app/docs/v1/sdk-reference/typescript/images-generations.md): Call /images/generations with the TypeScript SDK. - [Image edits](https://phaseo.app/docs/v1/sdk-reference/typescript/images-edits.md): Call /images/edits with the TypeScript SDK. - [TTS (Text to Speech)](https://phaseo.app/docs/v1/sdk-reference/typescript/audio-speech.md): Call /audio/speech with the TypeScript SDK. - [STT (Speech to Text)](https://phaseo.app/docs/v1/sdk-reference/typescript/audio-transcriptions.md): Call /audio/transcriptions with the TypeScript SDK. - [Translations](https://phaseo.app/docs/v1/sdk-reference/typescript/audio-translations.md): Call /audio/translations with the TypeScript SDK. - [Video generation](https://phaseo.app/docs/v1/sdk-reference/typescript/video-generation.md): Create and manage async video jobs with the TypeScript SDK. - [Embeddings](https://phaseo.app/docs/v1/sdk-reference/typescript/embeddings.md): Call /embeddings with the TypeScript SDK. - [Moderations](https://phaseo.app/docs/v1/sdk-reference/typescript/moderations.md): Call /moderations with the TypeScript SDK. - [Batches](https://phaseo.app/docs/v1/sdk-reference/typescript/batches.md): Call /batches with the TypeScript SDK. - [Files](https://phaseo.app/docs/v1/sdk-reference/typescript/files.md): Call /files with the TypeScript SDK. - [Models](https://phaseo.app/docs/v1/sdk-reference/typescript/models.md): List models with the TypeScript SDK. - [Generation lookup](https://phaseo.app/docs/v1/sdk-reference/typescript/generation.md): Call /generation to retrieve a past generation. - [Python SDK Overview](https://phaseo.app/docs/v1/sdk-reference/python/overview.md): Official Python client for the Phaseo Gateway API - [Python SDK Installation](https://phaseo.app/docs/v1/sdk-reference/python/installation.md): How to install and set up the Phaseo Python SDK - [Python SDK Usage](https://phaseo.app/docs/v1/sdk-reference/python/usage.md): Endpoint-by-endpoint examples using the Python SDK. - [Responses](https://phaseo.app/docs/v1/sdk-reference/python/responses.md): Call the Responses API with the Python SDK. - [Chat completions](https://phaseo.app/docs/v1/sdk-reference/python/chat-completions.md): Call /chat/completions with the Python SDK. - [Embeddings](https://phaseo.app/docs/v1/sdk-reference/python/embeddings.md): Call /embeddings with the Python SDK. - [Moderations](https://phaseo.app/docs/v1/sdk-reference/python/moderations.md): Call /moderations with the Python SDK. - [Models](https://phaseo.app/docs/v1/sdk-reference/python/models.md): List models with the Python SDK. - [Image generations](https://phaseo.app/docs/v1/sdk-reference/python/images-generations.md): Call /images/generations with the Python SDK. - [Image edits](https://phaseo.app/docs/v1/sdk-reference/python/images-edits.md): Call /images/edits with the Python SDK. - [TTS (Text to Speech)](https://phaseo.app/docs/v1/sdk-reference/python/audio-speech.md): Call /audio/speech with the Python SDK. - [STT (Speech to Text)](https://phaseo.app/docs/v1/sdk-reference/python/audio-transcriptions.md): Call /audio/transcriptions with the Python SDK. - [Translations](https://phaseo.app/docs/v1/sdk-reference/python/audio-translations.md): Call /audio/translations with the Python SDK. - [Video generation](https://phaseo.app/docs/v1/sdk-reference/python/video-generation.md): Create and manage async video jobs with the Python SDK. - [Batches](https://phaseo.app/docs/v1/sdk-reference/python/batches.md): Create and inspect batch jobs with the Python SDK. - [Files](https://phaseo.app/docs/v1/sdk-reference/python/files.md): Call /files with the Python SDK. - [Generation lookup](https://phaseo.app/docs/v1/sdk-reference/python/generation.md): Call /generations lookup with the Python SDK. - [Go SDK](https://phaseo.app/docs/v1/sdk-reference/go/overview.md): Official Go client for the Phaseo Gateway. - [Go SDK Installation](https://phaseo.app/docs/v1/sdk-reference/go/installation.md): Install the Phaseo Go SDK through Go modules. - [Go SDK Usage](https://phaseo.app/docs/v1/sdk-reference/go/usage.md): Current wrapper methods supported by the Go SDK. - [Responses](https://phaseo.app/docs/v1/sdk-reference/go/responses.md): Call /responses with the Go wrapper. - [Chat completions](https://phaseo.app/docs/v1/sdk-reference/go/chat-completions.md): Call /chat/completions with the Go wrapper. - [Image generations](https://phaseo.app/docs/v1/sdk-reference/go/images-generations.md): Generate images with the Go SDK. - [Image edits](https://phaseo.app/docs/v1/sdk-reference/go/images-edits.md): Edit images with the Go SDK. - [TTS (Text to Speech)](https://phaseo.app/docs/v1/sdk-reference/go/audio-speech.md): Call /audio/speech with the Go wrapper. - [STT (Speech to Text)](https://phaseo.app/docs/v1/sdk-reference/go/audio-transcriptions.md): Call /audio/transcriptions with the Go wrapper. - [Translations](https://phaseo.app/docs/v1/sdk-reference/go/audio-translations.md): Call /audio/translations with the Go wrapper. - [Video generation](https://phaseo.app/docs/v1/sdk-reference/go/video-generation.md): Create and manage async video jobs with the Go SDK. - [Embeddings](https://phaseo.app/docs/v1/sdk-reference/go/embeddings.md): Call /embeddings with the Go wrapper. - [Moderations](https://phaseo.app/docs/v1/sdk-reference/go/moderations.md): Call /moderations with the Go wrapper. - [Batches](https://phaseo.app/docs/v1/sdk-reference/go/batches.md): Create and retrieve batch jobs with the Go SDK wrapper. - [Files](https://phaseo.app/docs/v1/sdk-reference/go/files.md): Use the Go SDK for file metadata and file-content retrieval. - [Models](https://phaseo.app/docs/v1/sdk-reference/go/models.md): List models with the Go wrapper. - [Generation lookup](https://phaseo.app/docs/v1/sdk-reference/go/generation.md): Look up saved generations with the Go SDK. - [C# SDK](https://phaseo.app/docs/v1/sdk-reference/csharp/overview.md): Official .NET client for the Phaseo Gateway. - [C# SDK Installation](https://phaseo.app/docs/v1/sdk-reference/csharp/installation.md): Install the Phaseo C# SDK from NuGet. - [C# SDK Usage](https://phaseo.app/docs/v1/sdk-reference/csharp/usage.md): Current wrapper methods supported by the C# SDK. - [Responses](https://phaseo.app/docs/v1/sdk-reference/csharp/responses.md): Call the Responses API with the C# SDK. - [Chat completions](https://phaseo.app/docs/v1/sdk-reference/csharp/chat-completions.md): Call /chat/completions with the C# SDK. - [Image generations](https://phaseo.app/docs/v1/sdk-reference/csharp/images-generations.md): Call /images/generations with the C# SDK. - [Image edits](https://phaseo.app/docs/v1/sdk-reference/csharp/images-edits.md): Call /images/edits with the C# SDK. - [TTS (Text to Speech)](https://phaseo.app/docs/v1/sdk-reference/csharp/audio-speech.md): Call /audio/speech with the C# SDK. - [STT (Speech to Text)](https://phaseo.app/docs/v1/sdk-reference/csharp/audio-transcriptions.md): Call /audio/transcriptions with the C# SDK. - [Translations](https://phaseo.app/docs/v1/sdk-reference/csharp/audio-translations.md): Call /audio/translations with the C# SDK. - [Video generation](https://phaseo.app/docs/v1/sdk-reference/csharp/video-generation.md): Create and manage async video jobs with the C# SDK. - [Embeddings](https://phaseo.app/docs/v1/sdk-reference/csharp/embeddings.md): Call /embeddings with the C# SDK. - [Moderations](https://phaseo.app/docs/v1/sdk-reference/csharp/moderations.md): Call /moderations with the C# SDK. - [Batches](https://phaseo.app/docs/v1/sdk-reference/csharp/batches.md): Call /batches with the C# SDK. - [Files](https://phaseo.app/docs/v1/sdk-reference/csharp/files.md): Use the C# SDK for file upload, metadata, and file-content retrieval. - [Models](https://phaseo.app/docs/v1/sdk-reference/csharp/models.md): List models with the C# SDK. - [Generation lookup](https://phaseo.app/docs/v1/sdk-reference/csharp/generation.md): Call /generations to retrieve a past generation. - [PHP SDK](https://phaseo.app/docs/v1/sdk-reference/php/overview.md): Official PHP client for the Phaseo Gateway. - [PHP SDK Installation](https://phaseo.app/docs/v1/sdk-reference/php/installation.md): Install the Phaseo PHP SDK from Packagist. - [PHP SDK Usage](https://phaseo.app/docs/v1/sdk-reference/php/usage.md): Current wrapper methods supported by the PHP SDK. - [Responses](https://phaseo.app/docs/v1/sdk-reference/php/responses.md): Call the Responses API with the PHP SDK. - [Chat completions](https://phaseo.app/docs/v1/sdk-reference/php/chat-completions.md): Call /chat/completions with the PHP SDK. - [Image generations](https://phaseo.app/docs/v1/sdk-reference/php/images-generations.md): Call /images/generations with the PHP SDK. - [Image edits](https://phaseo.app/docs/v1/sdk-reference/php/images-edits.md): Call /images/edits with the PHP SDK. - [TTS (Text to Speech)](https://phaseo.app/docs/v1/sdk-reference/php/audio-speech.md): Call /audio/speech with the PHP SDK. - [STT (Speech to Text)](https://phaseo.app/docs/v1/sdk-reference/php/audio-transcriptions.md): Call /audio/transcriptions with the PHP SDK. - [Translations](https://phaseo.app/docs/v1/sdk-reference/php/audio-translations.md): Call /audio/translations with the PHP SDK. - [Video generation](https://phaseo.app/docs/v1/sdk-reference/php/video-generation.md): Create and manage async video jobs with the PHP SDK. - [Embeddings](https://phaseo.app/docs/v1/sdk-reference/php/embeddings.md): Call /embeddings with the PHP SDK. - [Moderations](https://phaseo.app/docs/v1/sdk-reference/php/moderations.md): Call /moderations with the PHP SDK. - [Batches](https://phaseo.app/docs/v1/sdk-reference/php/batches.md): Call /batches with the PHP SDK. - [Files](https://phaseo.app/docs/v1/sdk-reference/php/files.md): Use the PHP SDK for file upload, metadata, and file-content retrieval. - [Models](https://phaseo.app/docs/v1/sdk-reference/php/models.md): List models with the PHP SDK. - [Generation lookup](https://phaseo.app/docs/v1/sdk-reference/php/generation.md): Call /generations to retrieve a past generation. - [Ruby SDK](https://phaseo.app/docs/v1/sdk-reference/ruby/overview.md): Official Ruby client for the Phaseo Gateway. - [Ruby SDK Installation](https://phaseo.app/docs/v1/sdk-reference/ruby/installation.md): Install the Phaseo Ruby SDK from RubyGems. - [Ruby SDK Usage](https://phaseo.app/docs/v1/sdk-reference/ruby/usage.md): Current wrapper methods supported by the Ruby SDK. - [Responses](https://phaseo.app/docs/v1/sdk-reference/ruby/responses.md): Call the Responses API with the Ruby SDK. - [Chat completions](https://phaseo.app/docs/v1/sdk-reference/ruby/chat-completions.md): Call /chat/completions with the Ruby SDK. - [Image generations](https://phaseo.app/docs/v1/sdk-reference/ruby/images-generations.md): Call /images/generations with the Ruby SDK. - [Image edits](https://phaseo.app/docs/v1/sdk-reference/ruby/images-edits.md): Call /images/edits with the Ruby SDK. - [TTS (Text to Speech)](https://phaseo.app/docs/v1/sdk-reference/ruby/audio-speech.md): Call /audio/speech with the Ruby SDK. - [STT (Speech to Text)](https://phaseo.app/docs/v1/sdk-reference/ruby/audio-transcriptions.md): Call /audio/transcriptions with the Ruby SDK. - [Translations](https://phaseo.app/docs/v1/sdk-reference/ruby/audio-translations.md): Call /audio/translations with the Ruby SDK. - [Video generation](https://phaseo.app/docs/v1/sdk-reference/ruby/video-generation.md): Create and manage async video jobs with the Ruby SDK. - [Embeddings](https://phaseo.app/docs/v1/sdk-reference/ruby/embeddings.md): Call /embeddings with the Ruby SDK. - [Moderations](https://phaseo.app/docs/v1/sdk-reference/ruby/moderations.md): Call /moderations with the Ruby SDK. - [Batches](https://phaseo.app/docs/v1/sdk-reference/ruby/batches.md): Call /batches with the Ruby SDK. - [Files](https://phaseo.app/docs/v1/sdk-reference/ruby/files.md): Use the Ruby SDK for file upload, metadata, and file-content retrieval. - [Models](https://phaseo.app/docs/v1/sdk-reference/ruby/models.md): List models with the Ruby SDK. - [Generation lookup](https://phaseo.app/docs/v1/sdk-reference/ruby/generation.md): Call /generations to retrieve a past generation. - [Rust SDK](https://phaseo.app/docs/v1/sdk-reference/rust/overview.md): Send Phaseo Gateway requests from Rust with the official phaseo crate. - [Rust SDK Installation](https://phaseo.app/docs/v1/sdk-reference/rust/installation.md): Install phaseo from crates.io and configure Phaseo Gateway authentication. - [Usage](https://phaseo.app/docs/v1/sdk-reference/rust/usage.md): Create a Rust client, send Gateway requests, and handle responses and errors. - [Responses API](https://phaseo.app/docs/v1/sdk-reference/rust/responses.md): Generate text and tool calls through the Phaseo Responses API from Rust. - [Chat Completions](https://phaseo.app/docs/v1/sdk-reference/rust/chat-completions.md): Send OpenAI-compatible Chat Completions requests with the Rust SDK. - [Rust API Reference](https://phaseo.app/docs/v1/sdk-reference/rust/api-reference.md): Public types and methods in phaseo 0.1. - [Agent SDK Overview](https://phaseo.app/docs/v1/sdk-reference/agent-sdk/overview.md): Build local, resumable agent loops on top of Phaseo Gateway across the supported Agent SDK languages. - [Overview](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk-overview.md): What the TypeScript Agent SDK is for and when to use it. - [Installation](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk-installation.md): Install and configure the Phaseo TypeScript Agent SDK. - [Usage](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk.md): Build your own agentic applications on top of Phaseo Gateway with the TypeScript Agent SDK. - [Tools](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk-tools.md): Define validated local tools, manual tools, and progress-producing tools. - [Streaming](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk-streaming.md): Stream text, reasoning, tool activity, and complete agent events. - [Working with items](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk-items.md): Render typed messages, reasoning, tool activity, errors, and final outputs. - [Dynamic turns](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk-dynamic-turns.md): Change models, instructions, sampling parameters, and tools between agent turns. - [Stop conditions](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk-stop-conditions.md): Bound agent work by steps, tokens, cost, duration, tool calls, or finish reason. - [State and approval](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk-state-and-approval.md): Persist run state, approve tool calls, and continue paused agents. - [Outputs and retries](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk-run-controls.md): Validate final outputs, retry transient model failures, and apply managed routing defaults. - [Lifecycle hooks](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk-lifecycle-hooks.md): React to run, model, step, tool, and checkpoint events. - [DevTools](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk-devtools.md): Capture local Agent SDK runs for development and debugging. - [API reference](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk-api-reference.md): Reference the TypeScript Agent SDK entry points, methods, options, and result types. - [Examples](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk-examples.md): Start from complete Agent SDK patterns for research, support, coding, and parallel tools. - [Errors and troubleshooting](https://phaseo.app/docs/v1/sdk-reference/typescript/agent-sdk-events-and-errors.md): Handle gateway failures, validation errors, and failed agent runs. - [Overview](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk-overview.md): What the Python Agent SDK is for and what surface it currently exposes. - [Installation](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk-installation.md): Install and configure the Phaseo Python Agent SDK. - [Usage](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk.md): Run tool loops, human review, retries, and resumable agents with the Python Agent SDK. - [Tools](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk-tools.md): Define validated, approval-gated, manual, and progress-producing Python tools. - [Streaming](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk-streaming.md): Stream Python agent text, reasoning, items, tools, and lifecycle events. - [Working with results and items](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk-items.md): Build Python run timelines from messages, steps, tools, and streamed items. - [Dynamic turns](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk-dynamic-turns.md): Change Python model settings and tools between agent turns. - [Stop conditions](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk-stop-conditions.md): Bound Python agent work by steps, tokens, cost, duration, tools, or finish reason. - [State and approval](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk-state-and-approval.md): Pause Python agents for human decisions and continue application-owned state. - [Outputs and retries](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk-run-controls.md): Validate Python agent outputs and retry bounded model failures. - [Lifecycle hooks](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk-lifecycle-hooks.md): React to Python run, model, step, tool, and checkpoint events. - [DevTools](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk-devtools.md): Capture Python Agent SDK runs locally for development and debugging. - [API reference](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk-api-reference.md): Reference the main Python Agent SDK classes, functions, and methods. - [Examples](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk-examples.md): Apply the Python Agent SDK to common product patterns. - [Errors and troubleshooting](https://phaseo.app/docs/v1/sdk-reference/python/agent-sdk-observability.md): Diagnose Python agent failures, invalid tool data, and interrupted runs. - [Overview](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk-overview.md): What the Go Agent SDK is for and what surface it currently exposes. - [Installation](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk-installation.md): Install and configure the Phaseo Go Agent SDK. - [Usage](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk.md): Run tool loops, human review, retries, and resumable agents with the Go Agent SDK. - [Tools](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk-tools.md): Define validated, approval-gated, manual, and progress-producing Go tools. - [Streaming](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk-streaming.md): Stream Go agent text and events with replayable consumers. - [Stream items](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk-items.md): Consume text, reasoning, tool, and provider item events from Go agent runs. - [Dynamic turns](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk-dynamic-turns.md): Change the model, instructions, tools, and sampling settings between Go agent turns. - [Stop conditions](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk-stop-conditions.md): Bound Go agent runs by steps, tokens, cost, duration, tools, or finish reason. - [State and approval](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk-state-and-approval.md): Pause Go agents for human decisions and continue application-owned state. - [Outputs and retries](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk-run-controls.md): Validate final output, retry model calls, and inspect completed Go runs. - [Lifecycle hooks](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk-lifecycle-hooks.md): Observe Go agent runs, model turns, tools, pauses, and completion in real time. - [DevTools](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk-devtools.md): Capture Go Agent SDK runs in the local Phaseo DevTools event format. - [API reference](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk-api-reference.md): Reference the main Go Agent SDK types and methods. - [Examples](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk-examples.md): Copy focused Go patterns for tools, approvals, streaming, and bounded runs. - [Errors and troubleshooting](https://phaseo.app/docs/v1/sdk-reference/go/agent-sdk-observability.md): Handle model, tool, validation, cancellation, and continuation failures in Go agents. - [Overview](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk-overview.md): What the C# Agent SDK is for and what surface it currently exposes. - [Installation](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk-installation.md): Install and configure the Phaseo C# Agent SDK. - [Usage](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk.md): Run tool loops, human review, retries, and resumable agents with the C# Agent SDK. - [Tools](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk-tools.md): Define validated, approval-gated, manual, and progress-producing C# tools. - [Streaming](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk-streaming.md): Stream agent text and lifecycle events with replayable async enumerables. - [Working with results and items](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk-items.md): Build .NET run timelines from messages, steps, tools, and stream events. - [Dynamic turns](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk-dynamic-turns.md): Change .NET model settings and tools between agent turns. - [Stop conditions](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk-stop-conditions.md): Bound .NET agent work by steps, tokens, cost, duration, tools, or finish reason. - [State and approval](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk-state-and-approval.md): Pause C# agents for human decisions and continue application-owned state. - [Outputs and retries](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk-run-controls.md): Validate .NET agent outputs and retry bounded model failures. - [Lifecycle hooks](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk-lifecycle-hooks.md): React to .NET run, model, step, tool, and checkpoint events. - [DevTools](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk-devtools.md): Capture .NET Agent SDK runs locally for development and debugging. - [API reference](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk-api-reference.md): Reference the main C# Agent SDK types and methods. - [Examples](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk-examples.md): Apply the C# Agent SDK to common product patterns. - [Errors and troubleshooting](https://phaseo.app/docs/v1/sdk-reference/csharp/agent-sdk-observability.md): Diagnose .NET agent failures, invalid tool data, and interrupted runs. - [Overview](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk-overview.md): What the PHP Agent SDK is for and what surface it currently exposes. - [Installation](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk-installation.md): Install and configure the Phaseo PHP Agent SDK. - [Usage](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk.md): Run tool loops, human review, retries, and resumable agents with the PHP Agent SDK. - [Tools](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk-tools.md): Define validated, approval-gated, manual, and progress-producing PHP tools. - [Streaming](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk-streaming.md): Consume PHP agent text, reasoning, item, and lifecycle streams. - [Stream items](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk-items.md): Consume text, reasoning, tool, and provider item events from PHP agent runs. - [Dynamic turns](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk-dynamic-turns.md): Change routing, instructions, tools, and sampling settings between PHP agent turns. - [Stop conditions](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk-stop-conditions.md): Bound PHP agent runs by steps, tokens, cost, duration, tools, or finish reason. - [State and approval](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk-state-and-approval.md): Pause PHP agents for human decisions and continue application-owned state. - [Outputs and retries](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk-run-controls.md): Validate final output, retry model calls, and inspect completed PHP runs. - [Lifecycle hooks](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk-lifecycle-hooks.md): Observe PHP agent runs, model turns, tools, pauses, and completion. - [DevTools](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk-devtools.md): Capture PHP Agent SDK runs in the local Phaseo DevTools event format. - [API reference](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk-api-reference.md): Reference the main PHP Agent SDK classes and methods. - [Examples](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk-examples.md): Copy focused PHP patterns for tools, approvals, streaming, and bounded runs. - [Errors and troubleshooting](https://phaseo.app/docs/v1/sdk-reference/php/agent-sdk-observability.md): Handle model, tool, validation, timeout, and continuation failures in PHP agents. - [Overview](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk-overview.md): What the Ruby Agent SDK is for and what surface it currently exposes. - [Installation](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk-installation.md): Install and configure the Phaseo Ruby Agent SDK. - [Usage](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk.md): Run tool loops, human review, retries, and resumable agents with the Ruby Agent SDK. - [Tools](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk-tools.md): Define validated, approval-gated, manual, and progress-producing Ruby tools. - [Streaming](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk-streaming.md): Consume Ruby agent text, reasoning, item, and lifecycle streams. - [Stream items](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk-items.md): Consume text, reasoning, tool, and provider item events from Ruby agent runs. - [Dynamic turns](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk-dynamic-turns.md): Change routing, instructions, tools, and sampling settings between Ruby agent turns. - [Stop conditions](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk-stop-conditions.md): Bound Ruby agent runs by steps, tokens, cost, duration, tools, or finish reason. - [State and approval](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk-state-and-approval.md): Pause Ruby agents for human decisions and continue application-owned state. - [Outputs and retries](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk-run-controls.md): Validate final output, retry model calls, and inspect completed Ruby runs. - [Lifecycle hooks](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk-lifecycle-hooks.md): Observe Ruby agent runs, model turns, tools, pauses, and completion. - [DevTools](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk-devtools.md): Capture Ruby Agent SDK runs in the local Phaseo DevTools event format. - [API reference](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk-api-reference.md): Reference the main Ruby Agent SDK classes and methods. - [Examples](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk-examples.md): Copy focused Ruby patterns for tools, approvals, streaming, and bounded runs. - [Errors and troubleshooting](https://phaseo.app/docs/v1/sdk-reference/ruby/agent-sdk-observability.md): Handle model, tool, validation, timeout, and continuation failures in Ruby agents. - [Rust Agent SDK](https://phaseo.app/docs/v1/sdk-reference/rust/agent-sdk-overview.md): Build synchronous, tool-using agents with phaseo-agent. - [Rust Agent SDK Installation](https://phaseo.app/docs/v1/sdk-reference/rust/agent-sdk-installation.md): Install phaseo-agent and configure its Phaseo Gateway client. - [Build with the Rust Agent SDK](https://phaseo.app/docs/v1/sdk-reference/rust/agent-sdk.md): Create a synchronous Rust agent that calls a local tool through Phaseo Gateway. - [Tools and Approvals](https://phaseo.app/docs/v1/sdk-reference/rust/agent-sdk-tools.md): Define local, external, and approval-gated tools in the Rust Agent SDK. - [Persist and Resume Runs](https://phaseo.app/docs/v1/sdk-reference/rust/agent-sdk-state-and-approval.md): Store Rust Agent SDK run state and continue after tools or human review. - [Events, Retries, and Errors](https://phaseo.app/docs/v1/sdk-reference/rust/agent-sdk-events-and-errors.md): Observe synchronous Rust agent runs and handle model or tool failures. - [Rust Agent SDK API Reference](https://phaseo.app/docs/v1/sdk-reference/rust/agent-sdk-api-reference.md): Public structs, traits, and methods in phaseo-agent 0.1. - [Cookbook](https://phaseo.app/docs/v1/cookbook/index.md): Practical, scenario-driven recipes for building with Phaseo. - [Launch on the free router](https://phaseo.app/docs/v1/cookbook/free-router-first-deploy.md): Start with phaseo/free so your first integration can run without choosing a single fixed free model up front. - [Mini App Starter Prompts](https://phaseo.app/docs/v1/cookbook/mini-app-starter-prompts.md): Copyable prompts for coding agents to build small Phaseo apps with raw HTTP, SDKs, or agent runtimes. - [Build a Next.js Web Chat App](https://phaseo.app/docs/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 an OAuth Next.js Workbench](https://phaseo.app/docs/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. - [Build a Node REST Smoke App](https://phaseo.app/docs/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://phaseo.app/docs/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. - [Roll out presets and debug routing](https://phaseo.app/docs/v1/cookbook/preset-rollout-and-routing-debug.md): Use presets to standardize prompt and routing defaults, then inspect request details to understand why Phaseo routed a request the way it did. - [Sort providers by price, latency, or throughput](https://phaseo.app/docs/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. - [Pin or ignore providers per request](https://phaseo.app/docs/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. - [Route only to EU or ZDR-capable providers](https://phaseo.app/docs/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. - [Roll out guardrails on API keys](https://phaseo.app/docs/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. - [Use response caching with presets](https://phaseo.app/docs/v1/cookbook/response-caching-with-presets.md): Combine preset defaults with deterministic response caching so repeated requests return fast and predictably. - [Choose a video generation model](https://phaseo.app/docs/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. - [Generate and download a video from text](https://phaseo.app/docs/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. - [Use image inputs for video generation](https://phaseo.app/docs/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. - [Generate video from audio](https://phaseo.app/docs/v1/cookbook/generate-video-from-audio.md): Use a source audio track to drive an LTX video generation job. - [Send provider-specific video options](https://phaseo.app/docs/v1/cookbook/send-provider-specific-video-options.md): Add provider-specific video settings through `provider_params` without losing the shared gateway request shape. - [Run async video with webhooks](https://phaseo.app/docs/v1/cookbook/async-video-webhooks.md): Create long-running video jobs, poll status safely, and consume standardized webhook deliveries. - [Run async batches with webhooks](https://phaseo.app/docs/v1/cookbook/async-batch-webhooks.md): Create batch jobs, recover with polling, and consume standardized webhook deliveries without losing lifecycle visibility. - [Ship preset-driven structured JSON with the Python SDK](https://phaseo.app/docs/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://phaseo.app/docs/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. - [Debug web search requests](https://phaseo.app/docs/v1/cookbook/web-search-debugging.md): Verify web-search requests, confirm provider support, and inspect returned search results and citations. - [Ground follow-up extraction with web fetch](https://phaseo.app/docs/v1/cookbook/tool-grounding-with-web-fetch.md): Use `phaseo:web_fetch` to pull bounded page text into the tool loop for deterministic follow-up extraction and review. - [Use response healing for structured JSON](https://phaseo.app/docs/v1/cookbook/response-healing-for-structured-json.md): Recover near-valid structured JSON outputs without widening schemas or hand-retrying malformed responses. - [Set plugin defaults for structured JSON workflows](https://phaseo.app/docs/v1/cookbook/plugin-defaults-and-response-healing.md): Use workspace, preset, and request-level plugin policy to keep response healing consistent. - [Build a durable agent loop in TypeScript](https://phaseo.app/docs/v1/cookbook/agent-sdk-durable-loop.md): Run a resumable agent loop on top of Phaseo Gateway with the TypeScript Agent SDK. - [Extract structured JSON with the Python Agent SDK](https://phaseo.app/docs/v1/cookbook/agent-sdk-python-structured-extraction.md): Use the Python Agent SDK for a bounded local-tool loop that returns strict JSON through Phaseo Gateway. - [Build an ops runbook agent in Go](https://phaseo.app/docs/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. - [Triage tickets with the C# Agent SDK](https://phaseo.app/docs/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. - [Review CMS content with the PHP Agent SDK](https://phaseo.app/docs/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. - [Summarize internal notes with the Ruby Agent SDK](https://phaseo.app/docs/v1/cookbook/agent-sdk-ruby-rag-notes.md): Use the Ruby Agent SDK to query local notes and return one bounded summary through Phaseo Gateway. - [Research with structured output and web search](https://phaseo.app/docs/v1/cookbook/agent-sdk-research-brief.md): Build a search-backed TypeScript agent that returns strict JSON through the Agent SDK. - [Support triage with presets and guardrail-aware failures](https://phaseo.app/docs/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 a coding-review agent with runtime tools](https://phaseo.app/docs/v1/cookbook/agent-sdk-coding-review.md): Build a resumable coding-review workflow with local runtime tools, strict JSON, and human approval checkpoints. - [Fan out local agent tools concurrently](https://phaseo.app/docs/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. - [Set up coding agents with SKILL.md](https://phaseo.app/docs/v1/cookbook/coding-agents-skill-md.md): Pair the SDK with a SKILL.md file so local coding agents can use your Phaseo integration consistently. - [August](https://phaseo.app/docs/v1/changelog.md): August 2026 model releases across Phaseo. - [July](https://phaseo.app/docs/v1/changelog/2026-07.md): Model releases from July 2026. - [June](https://phaseo.app/docs/v1/changelog/2026-06.md): Phaseo product updates, SDK changes, and model releases from June 2026. - [May](https://phaseo.app/docs/v1/changelog/2026-05.md): Phaseo product updates, SDK changes, and model releases from May 2026. - [April](https://phaseo.app/docs/v1/changelog/2026-04.md): Phaseo product updates, SDK changes, and model releases from April 2026. - [March](https://phaseo.app/docs/v1/changelog/2026-03.md): Phaseo product updates, SDK changes, and model releases from March 2026. - [February](https://phaseo.app/docs/v1/changelog/2026-02.md): Phaseo product updates, SDK changes, and model releases from February 2026. - [January](https://phaseo.app/docs/v1/changelog/2026-01.md): Phaseo product updates, SDK changes, and model releases from January 2026. - [2025 Changelog](https://phaseo.app/docs/v1/changelog/2025.md): Phaseo product updates, SDK changes, and model releases from 2025. - [2024 Changelog](https://phaseo.app/docs/v1/changelog/2024.md): Phaseo product updates, SDK changes, and model releases from 2024. - [2023 Changelog](https://phaseo.app/docs/v1/changelog/2023.md): Phaseo product updates, SDK changes, and model releases from 2023. - [2022 Changelog](https://phaseo.app/docs/v1/changelog/2022.md): Phaseo product updates, SDK changes, and model releases from 2022. - [2021 Changelog](https://phaseo.app/docs/v1/changelog/2021.md): Phaseo product updates, SDK changes, and model releases from 2021. - [2020 Changelog](https://phaseo.app/docs/v1/changelog/2020.md): Phaseo product updates, SDK changes, and model releases from 2020. - [2019 Changelog](https://phaseo.app/docs/v1/changelog/2019.md): Phaseo product updates, SDK changes, and model releases from 2019. - [2018 Changelog](https://phaseo.app/docs/v1/changelog/2018.md): Phaseo product updates, SDK changes, and model releases from 2018. ## OpenAPI Specs - [openapi](https://phaseo.app/docs/api-reference/openapi.json)