Kie.ai is a unified AI API platform
providing access to cutting-edge image, video,
audio, and chat models at prices typically 30–50% lower than official APIs (up to
80% off for some models). This guide walks you
through getting started, authenticating,
creating tasks, and making the most of the
platform.
📚 Table of Contents
- Getting
Started
- Authentication
- Available
Models
- How Tasks Work
(Async Model)
- Creating a
Task
- Checking
Task Status
- Image
Models
- Video
Models
- Audio
Models
- Chat
Models
- Rate
Limits
- Data
Retention
- Pricing &
Credits
- Tips & Best
Practices
- Support
🚀 Getting Started
- Sign up at https://kie.ai
- Get your API key at https://kie.ai/api-key
- Browse available models at https://kie.ai/market
- Test in the Playground — each model
page has a built-in playground so you can
experiment before calling the API
- Check pricing at https://kie.ai/pricing
- View your logs at https://kie.ai/logs
🔐 Authentication
Every API request must include these
headers:
Authorization: Bearer YOUR_API_KEY Content-Type: application/json
⚠️ Security Warning: Never expose your API key in frontend code, browser apps, mobile apps, or public repositories (e.g. GitHub). Treat it like a password.
Additional protections available:
- Rate limits per key (hourly, daily,
and total usage caps)
- IP whitelist — restrict API access
to approved server IPs only
If you receive this error, check your
headers:
{"code": 401, "msg": "You do not have access permissions"}
🗂️ Available Models
| Category | Examples |
|---|---|
| Image | Kling, Seedream, Flux-2, Google
Imagen4, GPT Image, Ideogram,
Qwen, Recraft, Topaz, Grok
Imagine |
| Video | Kling 3.0, Sora2, Wan 2.7, Hailuo,
Bytedance Seedance, Grok Imagine
Video, Runway, HappyHorse |
| Audio | ElevenLabs (TTS, STT, audio
isolation, sound effects,
dialogue) |
| Music | Suno (generation, extension,
lyrics, mashups, covers, MIDI,
music video) |
| Chat | GPT 5.x, Claude
(Haiku/Sonnet/Opus), Gemini
2.5/3.x, Codex |
| Video (Google) | Veo 3.1 (text-to-video,
image-to-video, 4K, extend) |
⚙️ How Tasks Work (Async Model)
All generation tasks on Kie.ai are
asynchronous.
POST request → Task Created → Task ID returned ↓ Poll for status OR Receive webhook callback ↓ Task Complete → Get result URLs
✅ An HTTP200 OKresponse only means your task was created — NOT that it's done.
You must either:
- Poll the task status using the
taskId, OR - Provide a callback URL (webhook) so
Kie.ai POSTs results to you when
done
📤 Creating a Task
Market API (Universal)
POST https://api.kie.ai/api/v1/jobs/createTask Authorization: Bearer YOUR_API_KEY Content-Type: application/json
Example body (Kling Image to
Video):
{ "model": "kling-v2.5-turbo/image-to-video-pro", "prompt": "A red blob spinning through a bright blue sky with fluffy clouds", "imageUrl": "https://example.com/your-image.jpg", "duration": 5, "callBackUrl": "https://your-server.com/webhook" }
Response:
{ "code": 200, "msg": "success", "data": { "taskId": "your-task-id-here" } }
🔍 Checking Task Status
GET https://api.kie.ai/api/v1/jobs/recordInfo?taskId=YOUR_TASK_ID Authorization: Bearer YOUR_API_KEY
Possible statuses: queuing → generating → success / fail
You can also view all task history at: https://kie.ai/logs
🖼️ Image Models
| Model | Capability |
|---|---|
| Seedream 3.0–5.0 | Text to image, image to image,
edit |
| Flux-2 | Pro/Flex text-to-image &
image-to-image |
| Google Imagen4 | Fast / Standard / Ultra
text-to-image |
| GPT Image 1.5 / 2 | Text-to-image,
image-to-image |
| Ideogram V3 | Text-to-image, edit, remix,
character |
| Grok Imagine | Text-to-image,
image-to-image |
| Qwen / Qwen2 | Text-to-image, image edit |
| Recraft | Remove background, crisp
upscale |
| Topaz | Image upscale / enhancement |
| Z-Image | Creative artistic styles |
| Wan 2.7 | Image generation (standard &
pro) |
Typical cost: 10–50 credits per
generation
🎬 Video Models
| Model | Capability |
|---|---|
| Kling 3.0 / 2.6 / 2.5 /
2.1 | Text-to-video, image-to-video,
motion control, AI avatar |
| Sora2 | Text-to-video, image-to-video,
storyboard, characters |
| Wan 2.5 / 2.6 / 2.7 | Text-to-video, image-to-video,
video edit,
reference-to-video |
| Bytedance Seedance | Fast & Pro
image/text-to-video |
| Hailuo 2.3 | Pro/Standard
image/text-to-video |
| Grok Imagine | Text/image-to-video, upscale,
extend |
| Runway | AI video generation &
extension |
| HappyHorse | Text/image/reference/video-edit |
| Veo 3.1 | Google's video model (1080p &
4K) |
| Topaz | Video upscale |
| Infinitalk | Talking head from audio |
Typical cost: 100–500 credits per
generation
Common video parameters:
prompt— describe the scene/action (up to 1800 characters)imageUrl— source image for image-to-videoduration— 5 or 10 seconds (some models support 15s)quality—720por1080paspectRatio—16:9,9:16,1:1,4:3,3:4
🎵 Audio Models
ElevenLabs (via Kie.ai)
| Endpoint | Capability |
|---|---|
text-to-speech-turbo-2-5 | High-quality TTS |
text-to-speech-multilingual-v2 | Multilingual TTS |
speech-to-text | Transcription |
text-to-dialogue-v3 | Dialogue generation |
sound-effect-v2 | Sound effect generation |
audio-isolation | Remove background noise |
Suno (Music)
| Capability | Description |
|---|---|
| Music Generation | Create original songs from
text |
| Lyrics Generation | AI-written lyrics |
| Music Extension | Extend existing tracks |
| Music Cover | Cover existing songs |
| Add Vocals / Instrumental | Modify tracks |
| Vocal Removal | Separate stems |
| MIDI Generation | Export MIDI |
| Music Video | Generate a video for your
track |
| Mashup | Combine songs |
💬 Chat Models
| Model | Notes |
|---|---|
| GPT 5.2 / 5.4 / 5.5 | OpenAI GPT models |
| Claude Haiku / Sonnet / Opus
4.5–4.7 | Anthropic's Claude |
| Gemini 2.5 / 3 Flash &
Pro | Google's Gemini models |
| GPT Codex | Code generation |
🚦 Rate Limits
| Limit | Default |
|---|---|
| New requests per 10 seconds | 20 |
| Concurrent running tasks | 100+ |
If you exceed limits, you'll receive HTTP
429. Rejected requests do NOT enter
the queue — they must be retried. Contact
support if you consistently hit rate limits
and need them raised.
🗄️ Data Retention
| Data Type | Retention Period |
|---|---|
| Generated media files (images,
videos, audio) | 14 days |
| Log records (metadata,
parameters) | 2 months |
⚠️ Download and store your generated files before they expire!
💰 Pricing & Credits
- Prices are 30–50% cheaper than
official provider APIs
- Some models offer up to 80%
discount
- Check your remaining credits:
GET https://api.kie.ai/api/v1/chat/credit Authorization: Bearer YOUR_API_KEY
Full pricing: https://kie.ai/pricing
💡 Tips & Best Practices
- Write detailed prompts — More
specific descriptions produce better
results. Include scene details, camera
movements, lighting, style, and
effects.
- Use the Playground first — Test
model behaviour before integrating into
your code.
- Don't poll too fast — Wait a few
seconds between status checks to avoid
unnecessary requests.
- Use webhooks in production —
Callbacks (webhook URLs) are more
efficient than polling.
- Download files promptly — Generated
files are deleted after 14 days.
- Keep your API key secure — Use
environment variables, never hardcode
it.
- Use IP whitelisting — Lock down
your API key to known server IPs for extra
security.
- Check logs for debugging — Visit https://kie.ai/logs for full task history including credit
usage.
🛟 Support
| Channel | Details |
|---|---|
| Discord | Available from the dashboard
(bottom-left menu) — private
1-on-1 support |
| Telegram | Available from the dashboard —
private 1-on-1 support |
| Email | support@kie.ai (slower
response) |
Support hours: UTC 21:00 – UTC 17:00
(next day)
🔗 Useful Links
| Resource | URL |
|---|---|
| Website | https://kie.ai |
| Model Market | https://kie.ai/market |
| API Documentation | https://docs.kie.ai |
| Pricing | https://kie.ai/pricing |
| API Key Management | https://kie.ai/api-key |
| Task Logs | https://kie.ai/logs |
| Getting Started Guide | https://kie.ai/getting-started |
Last updated: May 2026