APIAny Docs
Build on one AI model API
Use one OpenAI-compatible gateway for chat, image, video, and audio models. Create an API key, choose a model, and track every request through usage and credit logs.
Authenticate requests
Send API keys with Authorization: Bearer sk-your-api-key. The gateway also accepts x-api-key during migration.
Discover models
GET /api/v1/models returns active models with type, capability, pricing, and parameter metadata.
Use credits
Calls are prechecked against balance and API key budget, then usage records store credits, latency, request id, provider, and upstream cost.
Platform guides
Product Requirements
Platform positioning, MVP acceptance criteria, user console scope, admin scope, and launch constraints.
Architecture
System boundaries, request lifecycle, provider adapter responsibilities, and extension paths.
Business Rules
Credit, API key, task settlement, callback, retention, and admin operation rules.
API Spec
Authentication, error shape, endpoint contracts, and async task lifecycle.
Deployment
Production environment variables, migration flow, cron jobs, and release checks.
Operations
Admin workflows for users, credits, models, channels, pricing, and usage logs.
Core endpoints
| GET | /api/v1/models | List public models |
| POST | /api/v1/chat/completions | OpenAI-compatible chat completions |
| POST | /api/v1/images/generate | Create image generation task |
| POST | /api/v1/video/generate | Create video generation task |
| GET | /api/v1/tasks/{task_id} | Poll async media task |
| POST | /api/v1/api/generate | GRS-style media generation compatibility endpoint |
| POST | /api/v1beta/models/{model}:generateContent | Gemini-compatible generateContent endpoint |
