Introduction
Kling 4.0 Flash image-to-video builds a 720p clip from one opening image. Upload a JPEG, PNG, or WebP file and optionally describe how the scene should move. Set 3–20 whole seconds for the result, or use the 5-second duration default.
This is a practical starting point for exploring movement in an existing portrait or scene still. The sample uses a WebP portrait, a smile, and shifting sunset light. Flash accepts an opening frame without closing-frame or intermediate-keyframe controls, and every result includes sound.
Key features & highlights
- Begin from one opening image in JPEG, PNG, or WebP format; WebP worked in our tests.
- Add an optional motion prompt to direct the action after the supplied still.
- Use auto aspect ratio to follow the image, or select 16:9, 9:16, 1:1, or 21:9.
- Draft 3–20 seconds at a fixed 720p resolution with a 5-second default.
- Describe ambience or music for the generated synchronized soundtrack.
Request parameters
| Parameter | Required | Description |
|---|---|---|
prompt | No | Optional motion and sound instructions with no required text; describe what should happen after the opening still. The prompt adds no separate charge. at least 1 characters |
image_url | Yes | Required URL for one opening image in JPEG, PNG, or WebP format, with no preset image. It establishes the start of the clip and adds no separate charge. |
aspect_ratio | No | Use auto to follow the opening image, or choose 16:9, 9:16, 1:1, or 21:9. Choosing a frame shape adds no separate charge. |
duration_seconds | No | Set 3–20 whole seconds, with 5 seconds used by default. Each additional output second increases the image-animation charge. |
Pricing
$0.113 / second
Image animation is charged on the delivered output seconds; increasing duration raises the total. The opening image, optional prompt, frame shape, and included audio add no separate charge. Kling moderation refusals incur no charge.
Use cases
- Animate a portrait for a social post with a smile and a small lighting change.
- Turn a landscape still into a short concept with drifting clouds and outdoor ambience.
- Review several camera directions from the same opening image for a content batch.
Prompt guide & pro tips
- Describe what follows the still, such as “clouds drift over the ridge,” to give the opening image a next event.
- Start with a restrained action, such as “the subject smiles slowly,” before testing a more involved sequence.
- Add a specific camera instruction, such as “gentle push toward the window,” so the motion brief includes framing.
- State how light should change, such as “warm sunset light crosses the room,” when lighting is part of the idea.
- Give the soundtrack a clear setting, such as “Sound: distant traffic and evening wind,” to direct the audio that comes with the clip.
API quick start
# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "kling/4.0-flash/image-to-video",
"input": {
"aspect_ratio": "auto",
"duration_seconds": 5,
"image_url": "https://example.com/reference.png",
"prompt": "A slow aerial shot drifting over a misty pine forest at sunrise"
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"
See the API reference for authentication, the complete schema, polling, and error handling.















