Skip to main content
POST
/
v1
/
videos
/
generations
Kling V3 Image-to-Video
curl --request POST \
  --url https://api.foxapi.cc/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "kling-v3-image-to-video",
  "prompt": "Smooth transition from a misty morning to a golden sunset",
  "resolution": "720p",
  "image_url": "https://example.com/start.jpg",
  "image_tail_url": "https://example.com/end.jpg",
  "duration": 10
}
'
{
  "created": 1757165031,
  "id": "task-unified-1757165031-uyujaw3d",
  "model": "<string>",
  "object": "video.generation.task",
  "progress": 0,
  "status": "pending",
  "task_info": {
    "can_cancel": true,
    "estimated_time": 45
  },
  "type": "video"
}

Documentation Index

Fetch the complete documentation index at: https://docs.foxapi.cc/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

All APIs require Bearer Token authentication

Add to request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
string
default:kling-v3-image-to-video
required

kling-v3-image-to-video: First-frame image driven video generation, supports 720p/1080p

Example:

"kling-v3-image-to-video"

prompt
string
required

Text prompt describing the video content you want to generate

Notes:

  • Maximum 2500 characters
  • Supports both Chinese and English
Maximum string length: 2500
Example:

"Smooth transition from a misty morning to a golden sunset"

image_url
string
required

Public URL of the first-frame image

Notes:

  • Format: JPG / PNG
  • Must be a publicly accessible URL
Example:

"https://example.com/start.jpg"

resolution
string
default:720p

Output resolution

Options:

  • 720p — 720P SD
  • 1080p — 1080P HD
  • 4k — Native 4K UHD (independent tier, billing not affected by generate_audio / voice_ids)
Example:

"720p"

generate_audio
boolean
default:false

Whether to generate accompanying audio

Notes:

  • When enabled, the video will include AI-generated sound effects/music
  • Disabled by default
Example:

false

negative_prompt
string
default:""

Negative prompt, describing elements you don't want to appear

Notes:

  • Separate multiple keywords with commas
  • Common: blurry, low quality, watermark, text overlay

Do not pass this parameter unless necessary.

Example:

"blurry, low quality, watermark, text overlay"

image_tail_url
string | null

Public URL of the end-frame image

Notes:

  • Format: JPG / PNG
  • Must be a publicly accessible URL
  • Used together with image_url to generate a first-to-last frame transition video
Example:

"https://example.com/end.jpg"

duration
integer
default:5

Output video duration (seconds)

Available values:

  • 5 — 5-second short video (default)
  • 10 — 10-second video
Example:

5

voice_ids
string[] | null

Voice ID list for voice control

Notes:

  • Maximum 2 voices
  • Use <<<voice_1>>> / <<<voice_2>>> in prompt to reference
  • Obtain voice_id via the kling-video-create-voice endpoint
  • generate_audio must be true when using this parameter

Do not pass this parameter unless necessary.

Example:
["voice_123456"]
multi_prompt
object[] | null

Multi-prompt sequence

Notes:

  • Each segment contains its own prompt and duration
  • The sum of all segment durations should equal the total duration

Do not pass this parameter unless necessary.

Response

Task created successfully

created
integer

Task creation timestamp

Example:

1757165031

id
string

Task ID

Example:

"task-unified-1757165031-uyujaw3d"

model
string

Actual model name used

object
enum<string>

Specific task type

Available options:
video.generation.task
progress
integer

Task progress percentage (0-100)

Required range: 0 <= x <= 100
Example:

0

status
enum<string>

Task status

Available options:
pending,
processing,
completed,
failed
Example:

"pending"

task_info
object

Async task information

type
enum<string>

Task output type

Available options:
video
Example:

"video"