- Introduction
- Quick Start Guide
- Make a request
- Chat Models
- ChatGpt
- ChatGPT (Audio)
- ChatGPT (Chat)
- Chat completion object
- Create chat completion (streaming)
- Create chat completion (non-streaming)
- Create chat image recognition (streaming)
- Create chat image recognition (streaming) base64
- Create chat image recognition (non-streaming)
- Function calling
- N choices
- Create chat function call (only non-streaming)
- Create structured output
- ChatGPT (Completions)
- ChatGPT(Embeddings)
- Anthropic Claude
- Gemini
- Image Models
- MJ
- Ideogram
- Kling Image
- DALL·E 3POST
- Flux (OpenAI dall-e-3 format)POST
- Video Models
- Music Model - Suno
- Illustrate
- Parameter
- Task submission
- Query interface
- Python Samples
- python openai official library (using AutoGPT, langchain, etc.)
- Python uses speech to text
- Python uses text to speech
- Python uses Embeddings
- python calls DALL·E
- python simple call openai function-calling demo
- python langchain
- python llama_index
- Python uses gpt-4o to identify pictures-local pictures
- python library streaming output
- Python uses gpt-4o to identify images
- Plug-in/software usage tutorials
- Help Center
Create Video by Image
POST
/kling/v1/videos/image2video
Read More: https://docs.qingque.cn/d/home/eZQDvlYrDMyE9lOforCeWA4KP?identityId=1uX4dFq8Jtr#section=h.ytzy2ithm1c4
Request
Body Params application/json
model_name
string
required
Enumeration value:
kling-v1
kling-v1-5
kling-v1-6
image
string
required
prompt
string
required
negative_prompt
string
optional
cfg_scale
number
optional
mode
string
required
std
pro
camera_control
object
optional
type
string
optional
Enumeration values: "simple", "down_back", "forward_up", "right_turn_forward", "left_turn_forward"
simple: simple camera movement, in this type, you can choose one of the six camera movements in "config"
down_back: the lens is pressed down and back ➡️ down and zoomed out, the config parameter does not need to be filled in for this type
forward_up: the lens moves forward and tilts up ➡️ pushes up, the config parameter does not need to be filled in for this type
right_turn_forward: rotate right first and then move forward ➡️ right rotation push forward, the config parameter does not need to be filled in for this type
left_turn_forward: rotate left first and move forward ➡️ left rotation push forward, the config parameter does not need to be filled in for this type
Enumeration values:
simple
down_back
forward_up
right_turn_forward
left_turn_forward
config
object
optional
Required when the camera movement type is specified as simple, and not required when other types are specified
Select 1 from the following 6 parameters, that is, only one parameter can be non-0, and the rest of the parameters are 0
aspect_ratio
string
optional
16:9
9:16
1:1
duration
string
required
image_tail
string
optional
Example
{
"model_name": "kling-v1",
"image": "https://p2.a.kwimgs.com/bs2/upload-ylab-stunt/ai_portal/1731125871/6N0QrAnAeU/409-f054fa25c21a.png",
"prompt": "A 20-year-old girl, with an oval face, delicate features, long black hair, fair skin, and ambient light, wearing a short white skirt, sitting on a bench beside the street, smiling and shaking her hair",
"mode": "std",
"aspect_ratio": "1:1",
"duration": "5"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/kling/v1/videos/image2video' \
--header 'Content-Type: application/json' \
--data-raw '{
"model_name": "kling-v1",
"image": "https://p2.a.kwimgs.com/bs2/upload-ylab-stunt/ai_portal/1731125871/6N0QrAnAeU/409-f054fa25c21a.png",
"prompt": "A 20-year-old girl, with an oval face, delicate features, long black hair, fair skin, and ambient light, wearing a short white skirt, sitting on a bench beside the street, smiling and shaking her hair",
"mode": "std",
"aspect_ratio": "1:1",
"duration": "5"
}'
Responses
🟢200OK
application/json
Body
code
integer
required
message
string
required
request_id
string
required
data
object
required
task_id
string
required
task_status
string
required
created_at
integer
required
updated_at
integer
required
Example
{
"code": 0,
"message": "SUCCEED",
"request_id": "CmYgjmbyMToAAAAAAF6svw",
"data": {
"task_id": "CmYgjmbyMToAAAAAAF6svw",
"task_status": "submitted",
"created_at": 1727338013674,
"updated_at": 1727338013674
}
}