Skip to main content
POST
/
v1
/
videos
/
generations
Kling O3 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-o3-image-to-video",
  "prompt": "Bring this first-frame image to life gradually, the river starts flowing and leaves gently sway in the breeze",
  "image_url": "https://picsum.photos/id/1015/1280/720.jpg",
  "end_image_url": "https://picsum.photos/id/1016/1280/720.jpg",
  "duration": 5
}
'
{
  "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-o3-image-to-video
required

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

Example:

"kling-o3-image-to-video"

image_url
string
required

First-frame image URL

Notes:

  • Must be a publicly accessible URL
Example:

"https://picsum.photos/id/1015/1280/720.jpg"

prompt
string | null

Text prompt

Notes:

  • Maximum 2500 characters
  • Mutually exclusive with multi_prompt
Maximum string length: 2500
Example:

"Bring this first-frame image to life gradually, the river starts flowing"

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)
Example:

"720p"

generate_audio
boolean
default:false

Whether to generate accompanying audio

Example:

false

end_image_url
string | null

End-frame image URL

Example:

"https://picsum.photos/id/1016/1280/720.jpg"

duration
integer | null

Output video duration (seconds), 3-15

Example:

5

shot_type
string | null
default:customize

Multi-shot segmentation mode, currently fixed to customize

Do not pass this parameter unless necessary.

Example:

"customize"

multi_prompt
object[] | null

Multi-prompt sequence

Notes:

  • Mutually exclusive with prompt
  • The sum of all segment duration values 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"