# Kling 2.1 Master > Kling 2.1 Master: The premium endpoint for Kling 2.1, designed for top-tier image-to-video generation with unparalleled motion fluidity, cinematic visuals, and exceptional prompt precision. ## Overview - **Endpoint**: `https://inference.mixio.pro/models/run` - **Model ID**: `mixio/kling-video/v2.1/master/image-to-video` - **Category**: image-to-video ## Credits - **Currency**: credits - **Rounding**: Per-unit credit rates use the catalog precision; the final request charge rounds up to a whole credit. - **Estimate API**: `/models/pricing/estimate` - **Rate card**: `video-standard` - **Base credits**: 53 - **Minimum credits**: 53 ## API Information ### Input Schema - **`prompt`** (`string`, _required_): Prompt - **`duration`** (`string`, _optional_): The duration of the generated video in seconds - Default: `"5"` - Options: `5`, `10` - **`cfg_scale`** (`number`, _optional_): The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt. - Default: `0.5` - **`image_url`** (`string`, _required_): URL of the image to be used for the video - **`negative_prompt`** (`string`, _optional_): Negative Prompt - Default: `"blur, distort, and low quality"` **Example**: ```json { "prompt": "", "image_url": "" } ``` ### Output Schema - **`video`** (`unknown`): The generated video ## Usage Examples ### cURL ```bash curl "https://inference.mixio.pro/models/run" \ -H "content-type: application/json" \ -H "x-api-key: $MIXIO_API_KEY" \ -d '{"endpointId": "mixio/kling-video/v2.1/master/image-to-video", "input": {"prompt": "..."}}' ``` ### TypeScript ```typescript import { client, postModelsRun } from "@mixio-pro/sdk-ts"; client.setConfig({ baseUrl: "https://inference.mixio.pro", headers: { "x-api-key": process.env.MIXIO_API_KEY } }); const { data } = await postModelsRun({ body: { endpointId: "mixio/kling-video/v2.1/master/image-to-video", input: { prompt: "..." } } }); ``` ### Python ```python from mixio_pro import Sdk sdk = Sdk(base_url="https://inference.mixio.pro", headers={"x-api-key": "your-key"}) result = sdk.client.post("/models/run", json={"endpointId": "mixio/kling-video/v2.1/master/image-to-video", "input": {"prompt": "..."}}) print(result.json()["requestId"]) ``` ## Additional Resources - [Console](https://console.mixio.pro/models/mixio/kling-video/v2.1/master/image-to-video) - [API Docs](https://inference.mixio.pro/docs) - [OpenAPI Schema](https://inference.mixio.pro/models/openapi.json?endpoint_id=mixio/kling-video/v2.1/master/image-to-video)