Skip to main content
POST
/
v1
/
videos
/
generations
curl --request POST \
  --url https://api.foxapi.cc/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "happyhorse-1.0-image-to-video",
  "image_url": "https://example.com/start.jpg",
  "prompt": "The camera slowly pushes in as the subject smiles",
  "duration": 5,
  "resolution": "1080p"
}
'
{
  "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:happyhorse-1.0-image-to-video
required

happyhorse-1.0-image-to-video: image-to-video

Example:

"happyhorse-1.0-image-to-video"

image_url
string
required

First-frame image URL

Notes:

  • Supports JPEG / JPG / PNG / BMP / WEBP
  • Short edge ≥ 300px, aspect ratio between 1:2.5 and 2.5:1
  • File size up to 10MB
  • Output video aspect ratio is determined by the first-frame image; no need to specify aspect_ratio
Example:

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

prompt
string | null

Optional prompt to describe desired camera motion, subject action, or scene change

Notes:

  • Maximum 2500 characters
Maximum string length: 2500
Example:

"The camera slowly pushes in as the subject smiles"

duration
integer
default:5

Output video duration in seconds. Supports integers from 3 to 15.

Required range: 3 <= x <= 15
Example:

3

resolution
enum<string>
default:1080p

Output video resolution. Options: 720p or 1080p.

Available options:
720p,
1080p
Example:

"720p"

seed
integer | null

Random seed used to improve result reproducibility.

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

123

enable_safety_checker
boolean | null

Whether to enable the safety checker. If not provided, the model default behavior is used.

Do not pass this parameter unless necessary.

Example:

true

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

Asynchronous task information

type
enum<string>

Task output type

Available options:
video
Example:

"video"