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": "wan-2.7-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:wan-2.7-video-edit
required

wan-2.7-video-edit: Video Edit

Example:

"wan-2.7-video-edit"

video_url
string
required

Public URL of the video to be edited

Notes:

  • Supports MP4 / MOV
  • Input video duration must be within 2-10 seconds
  • Maximum file size 100MB
Example:

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

prompt
string
required

Edit instruction or style transfer description

Example:

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

reference_image_url
string | null

Optional reference image URL for reference-image-driven video editing

Example:

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

audio_setting
enum<string>
default:auto

Audio processing strategy

Options:

  • auto — Model automatically decides whether to regenerate audio
  • origin — Preserve the original audio from the input video as much as possible

Do not pass this parameter unless necessary.

Available options:
auto,
origin
Example:

"auto"

duration
integer
default:0

Output video duration in seconds

Notes:

  • 0 means follow the input video duration
  • When set to 2-10, the corresponding duration is taken from the start of the input video
Required range: 0 <= x <= 10
Example:

0

resolution
enum<string>
default:1080p

Output video resolution

Options: 720p, 1080p

Available options:
720p,
1080p
Example:

"720p"

aspect_ratio
enum<string> | null

Output video aspect ratio

Notes:

  • Uses the input video aspect ratio when not specified
  • Options: 16:9, 9:16, 1:1, 4:3, 3:4
Available options:
16:9,
9:16,
1:1,
4:3,
3:4
Example:

"16:9"

seed
integer | null

Random seed for reproducibility

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

123

enable_safety_checker
boolean | null

Whether to enable safety checker. Uses model default if not specified

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"