Skip to main content

Quick Start

ToAPIs provides OpenAI-compatible text endpoints plus unified asynchronous image and video generation APIs. This guide uses currently available models for your first requests.

Step 1: Get an API Key

  1. Open the API Key Management page
  2. Sign in and create an API key
  3. 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-origin callback_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.