이미지 확장
CometAPI를 통해 Kling 이미지 확장 API를 사용하여 이미지의 원래 경계를 넘어 확장하고, 비디오용 자산에 적합하도록 제어 가능한 채우기로 맥락을 유지합니다.
원본 콘텐츠 주변에 더 넓은 캔버스가 필요할 때, 이 엔드포인트를 사용해 이미지의 원래 경계를 넘어 아웃페인팅할 수 있습니다.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.
확장 비율 작동 방식
- 각 비율은 원본 너비 또는 높이를 기준으로 측정됩니다
- 확장된 전체 캔버스는 여전히 Kling 문서에 명시된 면적 제한 내에 있어야 합니다
- 더 큰 확장을 시도하기 전에 각 면에
0.1과 같은 작은 값부터 시작하세요
현재 사용 가능 여부
- 문서화된 경로는
POST /kling/v1/images/editing/expand입니다 - 이 엔드포인트는 404 응답을 반환합니다
인증
Bearer token authentication. Use your CometAPI key.
헤더
Optional content type header.
본문
Source image to expand. Accepts an image URL or raw Base64 string (no data: prefix). Supported formats: JPG, JPEG, PNG. Max 10 MB, minimum 300×300 px, aspect ratio between 1:2.5 and 2.5:1.
Upward expansion as a multiple of the original image height. Range: 0–2. The resulting image area must not exceed 3× the original.
Rightward expansion as a multiple of the original image width. Range: 0–2. The resulting image area must not exceed 3× the original.
Leftward expansion as a multiple of the original image width. Range: 0–2. The resulting image area must not exceed 3× the original.
Downward expansion as a multiple of the original image height. Range: 0–2. The resulting image area must not exceed 3× the original.
Optional text prompt to guide the expanded area content. Max 2500 characters.
Number of expanded images to generate.
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.