Documentation
Get started in five steps
- Create an account or sign in to your existing account.
- Create an API key in the console.
- Set the Base URL to
https://www.keyoapi.xyz/v1for OpenAI-compatible clients. - Choose the exact model ID and its endpoint from the API handbook; use its documented fields.
- Save the returned request ID and any task ID. Query asynchronous tasks through the path documented for that model.
01
02
POST
/v1/chat/completions
POST
/v1/messages
03
POST
/v1/images/generations
| size / aspectRatio + imageSize | quality | background | mask | |
|---|---|---|---|---|
| low / medium / high | transparent | HTTP(S) URL | ||
| low / medium / high / xhigh / max | transparent | HTTP(S) URL | ||
| auto | — | HTTP(S) URL | ||
| medium | transparent | HTTP(S) URL | ||
| aspectRatio + imageSize: 1K / 2K / 4K | — | — | — | |
| aspectRatio + imageSize: 1K / 2K / 4K | — | — | — | |
| aspectRatio + imageSize: 1K / 2K / 4K | — | — | — |
POST
/v1/images/edits
GET/v1/images/tasks/{task_id}
04
POST
/v1/videos/generations
| resolution | duration | ||
|---|---|---|---|
| 480p / 720p (default) / 1080p | 4–30s (default 5s) | ||
| 480p / 720p (default) / 1080p | 4–15s (default 5s) | ||
| 480p / 720p (default) / 1080p | 4–15s (default 5s) | ||
| 480p / 720p (default) / 1080p | 4–15s (default 5s) | ||
| draft / hd / fhd | 5s | ||
| 480P / 720P / 1080P | 5s |
GET/v1/tasks/{id}
GET/v1/task/{id}
05
GLM-TTS · POST /v1/audio/speech
Step-Audio-TTS-3B · POST /v1/audio/speech
IndexTTS-2 · POST /v1/audio/speech
eleven-v4 / eleven-v4-turbo · POST /v1/audio/speech
Qwen3-TTS · POST /v1/async/audio/speech
CosyVoice3 · POST /v1/async/audio/speech
Spark-TTS-0.5B · POST /v1/async/audio/speech
GET/v1/task/{id}
POST/v1beta/models/gemini-3.8-flash-tts:generateContent
06
- https://www.keyoapi.xyz/v1
- API Key
- Endpoint
- GET /v1/models
07