Quick Start
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.Step 1: Get an API Key
- Open the API Key Management page
- Sign in and create an API key
- Save it securely when shown; it is displayed only once
Step 2: Choose a Model
Use the model list endpoint and individual model pages as the source of truth for availability.
Step 3: Send Requests
Text generation
Image generation
Video generation
Step 4: Check Asynchronous Tasks
Text requests return directly. Image and video requests return a task ID; use the matching endpoint to retrieve the result:Configure Task Webhooks
Set the Token’s default HTTPS callback URL and generate a signing secret. A task may include a same-origincallback_url. Verify X-ToAPIs-Webhook-* against the raw body with HMAC-SHA256, deduplicate by event ID, and keep polling only as a fallback. On 429, honor Retry-After. See Task Webhooks.
What’s Next
View API docs
Browse all endpoints, models, and parameters.
Claude Code Integration
Use ToAPIs with Claude Code.
Codex Integration
Use ToAPIs with Codex through CC Switch.