圖片生成
透過 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.