https://router.flatkey.ai/v1 — the same base URL for all endpoints, providers, and models. Authentication uses a Bearer token in the Authorization header, except for completed video content URLs.
Base URL
Authentication
API requests must include your Flatkey API key as a Bearer token:GET /v1/videos/{task_id}/content URL is an exception. Treat it as sensitive because possession of the task URL grants access to the completed video.
Request format
- All requests use HTTPS
- Request bodies must be JSON (
Content-Type: application/json) - Responses are JSON, SSE for streaming, or
video/mp4for completed video content
Available endpoints
OpenAI SDK compatibility
Because the API is OpenAI-compatible, you can use the official OpenAI Python or Node.js SDK with no changes to the request code — just setbase_url:
Versioning
Flatkey uses the same versioning scheme as the OpenAI API. The/v1 path prefix is stable. When new OpenAI API versions are released, Flatkey adds support while maintaining backward compatibility with /v1.
Rate limits
Rate limits are applied per API key. If you exceed the limit, you receive a429 Too Many Requests response. Contact support@flatkey.ai if you need higher rate limits for production workloads.