من صور متعددة إلى صورة
استخدم نقطة نهاية Kling Multi-Image to Image من CometAPI لإنشاء صور جديدة من عدة مدخلات، عبر طلبات POST بسيطة وContent-Type مرن.
استخدم نقطة النهاية هذه عندما تريد من Kling إنشاء صورة واحدة من عدة مراجع للعنصر الأساسي، بالإضافة إلى مراجع اختيارية للمشهد أو النمط.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.
قبل استدعائها
- قدّم من 2 إلى 4 صور في
subject_image_list - استخدم
model_name: kling-v2 - أضف
scence_imageأوstyle_imageفقط عندما يكون التكوين الأساسي للعنصر يعمل بالفعل - تعامل مع هذا المسار على أنه مسار إنشاء غير متزامن واحفظ معرّف المهمة الذي يتم إرجاعه
سير عمل المهمة
الاستعلام عن المهمة
التفويضات
Bearer token authentication. Use your CometAPI key.
الترويسات
Content type of the request body.
الجسم
Kling Image Generation API request body definition
List of subject reference images. Minimum 2, maximum 4.
Model to use for multi-image generation.
kling-v2 Text prompt describing the desired output. Max 2500 characters.
Optional scene reference image. Same format and size constraints as subject images.
Optional style reference image. Same format and size constraints as subject images.
Number of images to generate.
Aspect ratio of the generated image (width:height).
16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 Webhook URL for task status notifications. The server sends a callback when the task status changes.
Optional user-defined task ID for your own tracking. Does not replace the system-generated task ID. Must be unique per account.