> ## Documentation Index
> Fetch the complete documentation index at: https://developer.pixelbyte.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Kling 2.1 Pro — Start-End Frame to Video

> Generate start-end frame to video using Kling 2.1 Pro via PixelByte API

Generate a smooth video transition between a start frame and end frame using Kling 2.1 Pro.

| Property            | Value                                     |
| ------------------- | ----------------------------------------- |
| **Provider**        | Kling Plus                                |
| **Model**           | Kling 2.1 Pro                             |
| **Capability**      | Start-End Frame to Video                  |
| **Base Cost**       | 50,000 micro-cents/second (\$0.05/second) |
| **Processing Time** | \~240 seconds                             |

## Request Body

<ParamField body="model" type="string" required placeholder="kling-plus/kling-2.1-pro/start-end-frame-to-video">
  Model slug. Use `kling-plus/kling-2.1-pro/start-end-frame-to-video` for start-end frame to video generation.
</ParamField>

<ParamField body="input" type="object" required>
  Input parameters for start-end frame to video generation.

  <Expandable title="properties" defaultOpen>
    <ParamField body="prompt" type="string">
      Text description of the video to generate. max 2500 characters.
    </ParamField>

    <ParamField body="image_url" type="string" required>
      Start frame image URL.
    </ParamField>

    <ParamField body="end_image_url" type="string" required>
      End frame image URL.
    </ParamField>

    <ParamField body="duration" type="string">
      Video duration in seconds. Options: `5`, `10`. Default: `5`.
    </ParamField>

    <ParamField body="guidance_scale" type="number">
      Prompt adherence strength. min 0, max 1. Default: `0.5`.
    </ParamField>

    <ParamField body="negative_prompt" type="string">
      Negative prompt. max 1000 characters.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="webhookUrl" type="string">
  HTTPS URL to receive a webhook notification when the job completes or fails.
</ParamField>

## Pricing

**Base cost:** 50,000 micro-cents per second (\$0.05/second)

```
finalCost = baseCost × duration
```

| Factor       | Option | Multiplier |
| ------------ | ------ | ---------- |
| **Duration** | `5`    | 5x         |
|              | `10`   | 10x        |

<Tip>
  **Default cost** (duration=`5`): 50,000 × 5 = **250,000 micro-cents (\$0.25)**
</Tip>

## Response

<ResponseField name="jobId" type="string">
  Unique identifier for the submitted job.
</ResponseField>

<ResponseField name="status" type="string">
  Initial job status. Always `"pending"` on successful submission.
</ResponseField>

<ResponseField name="estimatedCompletionTime" type="string">
  ISO 8601 timestamp of the estimated completion time.
</ResponseField>

<ResponseField name="costMicroCents" type="number">
  The cost of the job in micro-cents.
</ResponseField>

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://api.muvi.video/v1/jobs/submit \
    -H "Authorization: Bearer $PIXELBYTE_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "kling-plus/kling-2.1-pro/start-end-frame-to-video",
      "input": {
        "image_url": "https://example.com/image.jpg",
        "end_image_url": "https://example.com/end-image.jpg",
        "prompt": "Smooth cinematic transition with natural camera movement.",
        "duration": "5"
      }
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.muvi.video/v1/jobs/submit",
      headers={
          "Authorization": "Bearer YOUR_API_KEY",
          "Content-Type": "application/json"
      },
      json={
          "model": "kling-plus/kling-2.1-pro/start-end-frame-to-video",
          "input": {
              "image_url": "https://example.com/image.jpg",
              "end_image_url": "https://example.com/end-image.jpg",
              "prompt": "Smooth cinematic transition with natural camera movement.",
              "duration": "5"
          }
      }
  )

  data = response.json()
  print(data)
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.muvi.video/v1/jobs/submit", {
    method: "POST",
    headers: {
      "Authorization": "Bearer YOUR_API_KEY",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      model: "kling-plus/kling-2.1-pro/start-end-frame-to-video",
      input: {
        image_url: "https://example.com/image.jpg",
        end_image_url: "https://example.com/end-image.jpg",
        prompt: "Smooth cinematic transition with natural camera movement.",
        duration: "5"
      }
    })
  });

  const data = await response.json();
  console.log(data);
  ```
</CodeGroup>
