Skip to main content
Note for users in mainland China: Please use https://toapis.cn as the API endpoint (Base URL). Replace https://toapis.com with https://toapis.cn in the examples in this document.
One unified OpenAI-compatible endpoint for public text, image, and video models. Migrate from OpenAI in minutes by simply changing your base URL to https://toapis.com/v1 — keep your existing SDKs with no code rewrite. Multi-provider routing ensures low latency and high uptime. Transparent pricing, enterprise SLA, and global CDN acceleration.

​Quick Start

[## Get Started Now OpenAI-compatible Chat API for public text models. Switch base URL, no code changes needed.](./en/api-reference/chat/chat)

​OpenAI-Compatible Endpoints

ToAPIs provides OpenAI-style endpoints for seamless migration. Simply change your base URL and keep using your existing SDKs. All interfaces follow OpenAI standards across the public text, image, and video model catalog.

​Chat Completion API

Chat completion with public text models. OpenAI-compatible API with streaming support and low latency. [## Chat Completion API Streaming support and low latency](./en/api-reference/chat/chat)

​Image Creation API

Image creation with GPT-4o Image, Gemini 2.5 Flash Image-preview models. OpenAI-style API for seamless integration. [## Image Creation API Text-to-image generation](./en/api-reference/images/gpt-4o/generation)

​Video Creation API

Video creation with public video models. Async task management with status tracking and webhook support. [## Video Creation API Async task management with webhooks](./en/api-reference/videos/veo3/generation)

​Platform Benefits

​Transparent Pricing

Pay-as-you-go with no subscription required. Clear per-token rates for all models, more affordable than official provider rates while maintaining the same quality and low latency.
  • Clear per-token rates for all models
  • Volume discounts for enterprise usage
  • No hidden fees
  • Only pay for what you actually use

​Multi-Provider Routing & Enterprise SLA

Built-in intelligent routing across multiple LLM providers ensures high uptime and low latency. When one provider experiences issues, requests automatically route to backup providers without service interruption.

​99.9% Uptime SLA

Enterprise-grade reliability with automatic failover. Multi-provider routing ensures your requests are always served with minimal latency.

​Global CDN Acceleration

Edge locations worldwide for lowest latency. Optimized routing reduces response time and improves user experience globally.

​Rate Limit Management

Automatic rate limit handling across providers. Intelligent request distribution prevents throttling and ensures smooth operation.

​Real-Time Status

Monitor endpoint health and performance. Track async task progress for image and video creation with webhook notifications. Check Video Status →

​SDKs & Code Examples

Official SDKs for Python, Node.js, and Java. All SDKs are OpenAI-compatible, allowing seamless migration by changing only the base URL configuration.

​Python SDK

Install with pip install openai. Set base URL and use existing OpenAI code without changes. Copy

​Node.js SDK

Install with npm install openai. Configure baseURL parameter to ToAPIs endpoint and keep your existing integration. Copy

​Java SDK

OpenAI-compatible Java client. Simple configuration change enables access to all ToAPIs models and providers.

​Migration from OpenAI

Switch to ToAPIs in under 5 minutes. No code rewrite needed—just change your base URL and API key. 1 Get Your API Key Sign up for ToAPIs and get your API key from the Console Dashboard.2 Update Base URL Change OpenAI base URL to ToAPIs endpoint. Your existing SDK integration works without modification.3 Test Your Endpoints Run your existing code with the new base URL. All OpenAI-compatible endpoints respond with identical format. Check latency and rate limits in Console Dashboard.

​Supported Models via Unified Endpoint

Access leading LLM providers through one OpenAI-compatible gateway. The production model set changes with the public pricing catalog. See the public model catalog for current model IDs and supported endpoints. Use the individual API pages for request parameters and task behavior.

​Speech Models

Speech-to-text and text-to-speech via OpenAI-compatible endpoints:
  • Whisper-1: OpenAI transcription model
  • TTS: Text-to-speech with multiple voices

​FAQ

How do I migrate from OpenAI? Simply change your base URL to https://toapis.com/v1 and use your ToAPIs API key. Keep your existing SDKs—no code rewrite needed. Migration typically takes under 5 minutes. What’s included in the SLA? Our enterprise SLA includes 99.9% uptime guarantee, global CDN acceleration, multi-provider routing with automatic failover, and real-time status monitoring. Rate limit management and webhook support are included. How does pricing compare to OpenAI? ToAPIs offers transparent per-token pricing that’s more affordable than official provider rates. Pay-as-you-go with no subscription, volume discounts for enterprise usage, and no hidden fees. What about latency and performance? Low latency is guaranteed through global CDN acceleration and intelligent multi-provider routing. Edge locations worldwide ensure optimal response times. Real-time status monitoring lets you track performance.General Chat API