Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Kling AI Image Generation API

Generate still images with the Kolors models.

Kling AI Image Generation API is one of 8 APIs that Kling AI publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Image Generation. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 2 operations across 2 paths, and defines 3 schemas. It is described by OpenAPI 3.0.3, at version 1.0.

Requests are made against a single base URL, https://api.klingai.com.

2 operations 2 paths 3 schemas 1 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0
Base URL
https://api.klingai.com/v1
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Kling AI Image Generation API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — A JWT signed with HS256 from your Access Key (as the iss claim) and Secret Key, passed as Authorization: Bearer . Tokens are short-lived (about 30 minutes; nbf…

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 1 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Image Generation 2

Generate still images with the Kolors models.

POST
/v1/images/generations
Create an image-generation task
createImageGenerationTask body → 200
GET
/v1/images/generations/{task_id}
Query an image-generation task
getImageGenerationTask 1 param → 200

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are ImageGenerationRequest (8 properties), ImageTaskResponse (4 properties), TaskCreatedResponse (4 properties). Each schema is shown below with its type and property counts.

TaskCreatedResponse
object
4 properties
ImageTaskResponse
object
4 properties
ImageGenerationRequest
object
8 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

kling-ai-image-generation-api-openapi.yml Raw ↑

Other APIs Kling AI publishes across the network.

Kling AI Account API
Kling AI Image-to-Video API
Kling AI Lip-Sync API
Kling AI Text-to-Video API
Kling AI Video Effects API
Kling AI Video Extension API
Kling AI Virtual Try-On API