Explore/Kling 2.5 Turbo Standard
Video

Kling 2.5 Turbo Standard

Generates videos from text prompts and images, with fast generation and precise prompt control.

View docs
import { config, higgsfield } from "@higgsfield/client/v2";config({  credentials: process.env.HF_CREDENTIALS,});const result = await higgsfield.subscribe(  "kling-video/v2.5-turbo/standard/image-to-video",  {    input: {      "prompt": "A cinematic scene at sunset",      "duration": 5,      "cfg_scale": 0.5,      "image_url": "https://example.com/input.jpg",      "negative_prompt": ""    },    withPolling: true,  },);console.log(result);

Kling 2.5 Turbo Standard uses the model ID kling-video/v2.5-turbo/standard/image-to-video. Kling 2.5 Turbo Standard converts a single image into a short video clip using a text prompt to guide the transformation. Users can specify video duration, CFG scale for prompt adherence, and provide negative prompts to refine output.

1. Calling the API

Send requests to https://api.higgsfield.ai/kling-video/v2.5-turbo/standard/image-to-video with a JSON body matching the parameters below.

Install

Install an official server-side SDK. cURL needs no package.

npm install @higgsfield/client

Setup

Keep credentials in server-side environment variables. The SDKs accept the same KEY_ID:KEY_SECRET value under their documented variable names.

export HF_CREDENTIALS="YOUR_KEY_ID:YOUR_KEY_SECRET" # TypeScript export HF_KEY="YOUR_KEY_ID:YOUR_KEY_SECRET" # Python and cURL

Request parameters

ParameterTypeRequiredDefaultDescription
promptstringYes—Prompt.
durationintegerNo5Duration. Options: 5, 10.
cfg_scalenumberNo0.5CFG Scale. Minimum: 0. Maximum: 1.
image_urlstringYes—Image URL.
negative_promptstringNo""Negative Prompt.

2. Authentication

The official SDKs read credentials from the server environment and send the required Authorization: Key KEY_ID:KEY_SECRET header.

API Key

Never expose the secret in browser-side code or commit it to source control. The TypeScript SDK is server-side only. For direct HTTP calls, use:

Authorization: Key $HF_KEY

3. Queue

subscribe submits the asynchronous request and waits for a terminal result. The TypeScript SDK polls automatically when withPolling: true; the Python SDK's synchronous subscribe call also waits. A completed request returns the generated file in the video field.

Submit and wait

import { config, higgsfield } from "@higgsfield/client/v2"; config({ credentials: process.env.HF_CREDENTIALS, }); const result = await higgsfield.subscribe( "kling-video/v2.5-turbo/standard/image-to-video", { input: { "prompt": "A cinematic scene at sunset", "duration": 5, "cfg_scale": 0.5, "image_url": "https://example.com/input.jpg", "negative_prompt": "" }, withPolling: true, }, ); console.log(result);

Explicit lifecycle control

Use the Python SDK when a worker needs explicit status, result, or cancellation control for an existing request. The TypeScript v2 client currently exposes automatic polling through subscribe.

import higgsfield_client request_id = "{request_id}" status = higgsfield_client.status(request_id=request_id) result = higgsfield_client.result(request_id=request_id) higgsfield_client.cancel(request_id=request_id)