# Kling AI API

**Canonical:** https://apis.io/apis/kuaishou/kling-ai/  
**Provider:** Kuaishou — https://apis.io/providers/kuaishou/  
**Base URL:** https://api-singapore.klingai.com  
**Documentation:** https://kling.ai/dev

Kling AI API is one of 3 APIs that [Kuaishou](https://apis.io/providers/kuaishou/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include Artificial Intelligence, Generative AI, Video, Image, and Machine-Learning. The published artifact set on APIs.io includes API documentation, pricing, a changelog, and authentication docs.

Kling AI (可灵) is Kuaishou Technology's generative video and image platform, launched in June 2024 and, by the company's own account, responsible for over 600 million generated videos and 30,000+ enterprise customers. It exposes an asynchronous REST API for text-to-video, image-to-video, text-to-image, image editing, motion control and virtual try-on, served from api-singapore.klingai.com globally and api-beijing.klingai.com in China, authenticated with a self-signed JWT built from an Access Key ID and Secret. Callers select a generation model by API ID (kling-v3, kling-v3-omni, kling-video-o1, kling-v2-6 and earlier), submit a task, then poll by generationId. Kuaishou also runs a hosted MCP server for the same capability set at https://kling.ai/mcp, gated by an OAuth 2.1-style authorization-code flow with PKCE and dynamic client registration, and ships an official CLI (@klingai/cli-global) that is a thin client over it. Kling AI is the only Kuaishou property that publishes an llms.txt, RFC 9728 protected-resource metadata and RFC 8414 authorization-server metadata.

## Machine-readable artifacts (11)

- **DeveloperPortal** — https://kling.ai/dev
- **Documentation** — https://kling.ai/document-api
- **Pricing** — https://kling.ai/dev/pricing
- **ChangeLog** — https://kling.ai/release-note/release-history
- **MCPServer** — https://raw.githubusercontent.com/api-evangelist/kuaishou/refs/heads/main/mcp/kuaishou-kling-mcp.yml
- **OAuthScopes** — https://raw.githubusercontent.com/api-evangelist/kuaishou/refs/heads/main/scopes/kuaishou-scopes.yml
- **LLMsTxt** — https://raw.githubusercontent.com/api-evangelist/kuaishou/refs/heads/main/llms/kuaishou-kling-llms.txt
- **Authentication** — https://raw.githubusercontent.com/api-evangelist/kuaishou/refs/heads/main/authentication/kuaishou-authentication.yml
- **ErrorCatalog** — https://raw.githubusercontent.com/api-evangelist/kuaishou/refs/heads/main/errors/kuaishou-error-codes.yml
- **Conventions** — https://raw.githubusercontent.com/api-evangelist/kuaishou/refs/heads/main/conventions/kuaishou-conventions.yml
- **AgentSkill** — https://raw.githubusercontent.com/api-evangelist/kuaishou/refs/heads/main/skills/kuaishou-kling-generate-and-poll.md

## Other Kuaishou APIs (2)

- [Kuaishou Open Platform API](https://apis.io/apis/kuaishou/open-platform/)
- [Kwai for Business Marketing API](https://apis.io/apis/kuaishou/kwai-for-business/)

## Tags

Artificial Intelligence, Generative AI, Video, Image, Machine-Learning, MCP

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/kuaishou/kling-ai/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/kuaishou/.
