> ## 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 video seçimini önizleme

> CometAPI üzerinden Kling multimodal video düzenlemelerinde seçilen bölgeler için hızlı bir önizleme oluşturmak üzere Preview Selected Video Area endpoint'ini kullanın.

Nihai multimodal düzenleme görevini göndermeden önce seçilen bölgeyi önizlemek için bu endpoint'i kullanın.

## Önizlemenin neden önemli olduğu

* Seçim noktalarının hedeflenen nesneyi veya alanı kapsadığını doğrulamanızı sağlar
* Bir oluşturma çağrısı harcamadan önce kötü maskeleri fark etmenize yardımcı olur
* Seçim düzenleme ile nihai görev oluşturma arasındaki en güvenli kontrol noktasıdır

## İş akışındaki rolü

<Steps>
  <Step title="Oturumu başlatın">
    [Initialize Video for Editing](./initialize-video-for-editing) ile başlayın ve döndürülen `session_id` değerini aynı hesapta saklayın.
  </Step>

  <Step title="Seçim noktaları ekleyin">
    Bölge neredeyse doğru olana kadar [Add Video Selection](./add-video-selection) kullanın.
  </Step>

  <Step title="Oluşturmadan önce önizleyin">
    Bu endpoint'i çağırın, ardından yalnızca seçim doğru göründüğünde [Create Task](./create-task) adımına devam edin.
  </Step>
</Steps>

<Tip>
  Tam parametre başvurusu için [Kling API documentation](https://kling.ai/document-api/apiReference/model/multiElements) sayfasına bakın.
</Tip>


## OpenAPI

````yaml api/openapi/video/kling/multimodal-video-editing/post-preview-selected-video-area.openapi.json POST /kling/v1/videos/multi-elements/preview-selection
openapi: 3.1.0
info:
  title: Preview Selected Video Area API
  version: 1.0.0
servers:
  - url: https://api.cometapi.com
security:
  - bearerAuth: []
paths:
  /kling/v1/videos/multi-elements/preview-selection:
    post:
      summary: Preview Selected Video Area
      operationId: preview_selected_video_area
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - session_id
              properties:
                session_id:
                  type: string
                  description: Session id returned by the video initialization endpoint.
              default:
                session_id: <session_id>
            examples:
              Default:
                summary: Default
                value:
                  session_id: <session_id>
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: integer
                    description: Response code. `0` means the request succeeded.
                  message:
                    type: string
                    description: Response message.
                  data:
                    type: object
                    description: Route-specific response payload when present.
                    additionalProperties: true
                additionalProperties: true
      x-codeSamples:
        - lang: Shell
          label: Default
          source: >
            curl
            https://api.cometapi.com/kling/v1/videos/multi-elements/preview-selection
            \
              -H "Authorization: Bearer $COMETAPI_KEY" \
              -H "Content-Type: application/json" \
              -d '{
                  "session_id": "<session_id>"
                }'
        - lang: Python
          label: Default
          source: |
            import os
            import requests

            response = requests.post(
                "https://api.cometapi.com/kling/v1/videos/multi-elements/preview-selection",
                headers={"Authorization": "Bearer " + os.environ["COMETAPI_KEY"]},
                json={
                  "session_id": "<session_id>"
                },
            )

            result = response.json()
            print(result.get("code"), result.get("data"))
        - lang: JavaScript
          label: Default
          source: >
            const response = await
            fetch("https://api.cometapi.com/kling/v1/videos/multi-elements/preview-selection",
            {
              method: "POST",
              headers: {
                Authorization: `Bearer ${process.env.COMETAPI_KEY}`,
                "Content-Type": "application/json",
              },
              body: JSON.stringify({
                "session_id": "<session_id>"
              }),
            });


            const result = await response.json();

            console.log(result.code, result.data);
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer token authentication. Use your CometAPI key.

````