图像生成
通过 CometAPI 使用 Kling 生成图像:POST /kling/v1/images/generations 支持基于 prompt 的创建,并提供快速的程序化输出。
Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
图像生成
授权
Bearer token authentication. Use your CometAPI key.
请求头
Must be application/json.
请求体
Text prompt describing the image to generate. Maximum 500 characters.
Elements to exclude from the image. Maximum 200 characters.
Reference image as a Base64 string (without data: prefix) or public URL. Accepted formats: JPG, JPEG, PNG. Maximum 10 MB, minimum 300×300 px.
How closely the output follows the reference image. Range: 0–1.
Number of images to generate. Range: 1–9.
Output aspect ratio (width:height). Options: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3.
Webhook URL to receive task status updates when the task completes.
Kling image model variant to use. See the Models page for current options.