Skip to main content

Base URL

All API requests are made to the following base URL:

Authentication

AnyFast uses Bearer token authentication. Include your API key in the Authorization header of every request:
You can generate and manage API keys in the Console.
Keep your API key secure. Do not expose it in client-side code or public repositories.

Request format

All requests must use Content-Type: application/json. Request bodies are JSON-encoded.

Supported endpoints

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 an error object:

HTTP status codes

Rate limits

Rate limits vary by model and subscription tier. If you hit a rate limit, the API returns a 429 status code. Implement exponential backoff to handle rate limiting gracefully.

OpenAI SDK compatibility

AnyFast is compatible with the OpenAI SDK. Simply change the base_url to use AnyFast: