kling-4.0 API
kling-4.0 is a video generation model from Kling, available on OneFast API behind the same API key as every other model in the catalog.
Pricing
| Usage | Price (USD) |
|---|---|
| 720p (default) | $0.0335 / second |
| 1080p | $0.0501 / second |
Billed per second of generated video; the resolution you request selects the tier. The price shown is the public list price; after signing in, the console shows the price for your own account.
Model details
| Model ID | kling-4.0 |
| Provider | Kling |
| Type | Video |
Endpoints
POST /v1/video/generations— Create a video task (docs)GET /v1/video/generations/{task_id}— Get the task result (docs)
Quickstart
Create an API key in the console, then call the API:
curl https://api.onefast.ai/v1/video/generations \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0",
"prompt": "A paper boat drifting on a rainy street, cinematic",
"duration": 5
}'More examples: Create a video task docs · Quickstart.