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-video-edit",
  "video_url": "https://example.com/input.mp4",
  "prompt": "Turn the scene into a rainy cyberpunk street at night",
  "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-video-edit
required

happyhorse-1.0-video-edit: video edit

Example:

"happyhorse-1.0-video-edit"

video_url
string
required

Public URL of the video to edit

Notes:

  • Supports MP4 / MOV (H.264 encoding recommended)
  • Input video duration 3 - 60 seconds
  • File size up to 100MB
  • Video short edge between 320 and 2160 pixels
Example:

"https://example.com/input.mp4"

prompt
string
required

Edit instruction or style transfer description. Use @Image1 ~ @Image5 to reference each image

Notes:

  • Maximum 2500 characters
Maximum string length: 2500
Example:

"Turn the scene into a rainy cyberpunk street at night"

reference_image_urls
string[] | null

Optional list of reference image URLs, up to 5 images

Notes:

  • Supports JPEG / PNG / WEBP
  • Short edge ≥ 300px, each image up to 10MB
  • Array order corresponds to @Image1 ~ @Image5 in the prompt
Maximum array length: 5
Example:
["https://example.com/style.jpg"]
resolution
enum<string>
default:1080p

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

Available options:
720p,
1080p
Example:

"720p"

audio_setting
enum<string>
default:auto

Audio handling strategy

Options:

  • auto — Let the model decide whether to regenerate audio
  • origin — Preserve the original audio of the input video as much as possible

Do not pass this parameter unless necessary.

Available options:
auto,
origin
Example:

"auto"

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"