Documentation

Get started in five steps

  1. Create an account or sign in to your existing account.
  2. Create an API key in the console.
  3. Set the Base URL to https://www.keyoapi.xyz/v1 for OpenAI-compatible clients.
  4. Choose the exact model ID and its endpoint from the API handbook; use its documented fields.
  5. Save the returned request ID and any task ID. Query asynchronous tasks through the path documented for that model.

01

Base URL
https://www.keyoapi.xyz/v1
API Key
02

POST /v1/chat/completions

Bash · curl

        

PowerShell 5.1 / 7 · Windows

        

POST /v1/messages
Bash · curl · Anthropic / Claude Code

        

03

POST /v1/images/generations
Bash · curl

        

size / aspectRatio + imageSize quality background mask
low / medium / hightransparentHTTP(S) URL
low / medium / high / xhigh / maxtransparentHTTP(S) URL
auto—HTTP(S) URL
mediumtransparentHTTP(S) URL
aspectRatio + imageSize: 1K / 2K / 4K———
aspectRatio + imageSize: 1K / 2K / 4K———
aspectRatio + imageSize: 1K / 2K / 4K———

POST /v1/images/edits
Bash · curl · multipart

        

GET/v1/images/tasks/{task_id}
Bash · curl · task

        

04

POST /v1/videos/generations
Bash · curl · submit

        

resolution duration
480p / 720p (default) / 1080p4–30s (default 5s)
480p / 720p (default) / 1080p4–15s (default 5s)
480p / 720p (default) / 1080p4–15s (default 5s)
480p / 720p (default) / 1080p4–15s (default 5s)
draft / hd / fhd5s
480P / 720P / 1080P5s

GET/v1/tasks/{id}
Bash · curl · task

        
GET/v1/task/{id}
Bash · curl · async TTS / avatars

05

GLM-TTS · POST /v1/audio/speech

Bash · curl

Step-Audio-TTS-3B · POST /v1/audio/speech

Bash · curl

IndexTTS-2 · POST /v1/audio/speech

Bash · curl

eleven-v4 / eleven-v4-turbo · POST /v1/audio/speech

Bash · curl

Qwen3-TTS · POST /v1/async/audio/speech

Bash · curl

CosyVoice3 · POST /v1/async/audio/speech

Bash · curl

Spark-TTS-0.5B · POST /v1/async/audio/speech

Bash · curl
GET/v1/task/{id}
Bash · curl · task

POST/v1beta/models/gemini-3.8-flash-tts:generateContent
Bash · curl · JSON response

        
06

https://www.keyoapi.xyz/v1
API Key

Endpoint
GET /v1/models

Python · OpenAI SDK

        
07

Updated 2026-10-24 · Rates verified against the pricing list.