Documentation Index
Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
All API requests are made to the following base URL:Authentication
Anyfast uses Bearer token authentication. Include your API key in theAuthorization header of every request:
Request format
All requests must useContent-Type: application/json. Request bodies are JSON-encoded.
Supported endpoints
| Endpoint | Description |
|---|---|
POST /v1/chat/completions | Chat completion (OpenAI-compatible) |
POST /v1/images/generations | Image generation (ByteDance Seedream) |
POST /v1/video/generations | Video generation (ByteDance Seedance) |
GET /v1/video/generations/{id} | Query video generation task status |
POST /kling/v1/videos/text2video | Kling text-to-video |
POST /kling/v1/videos/image2video | Kling image-to-video |
POST /kling/v1/videos/multi-image2video | Kling multi-image-to-video |
GET /kling/v1/videos/{id} | Query Kling task status |
Response format
All responses are JSON-encoded. A successful response typically includes:Error handling
When an error occurs, the API returns a JSON response with anerror object:
HTTP status codes
| Status | Description |
|---|---|
200 | Success |
400 | Bad request — invalid parameters |
401 | Unauthorized — invalid or missing API key |
403 | Forbidden — insufficient permissions |
404 | Not found — invalid endpoint |
429 | Rate limit exceeded — too many requests |
500 | Internal server error |
Rate limits
Rate limits vary by model and subscription tier. If you hit a rate limit, the API returns a429 status code. Implement exponential backoff to handle rate limiting gracefully.
OpenAI SDK compatibility
Anyfast is compatible with the OpenAI SDK. Simply change thebase_url to use Anyfast: