Skip to main content
POST
Generate video clip
Generate video clips automatically from a text prompt using AI-powered content understanding.
  • Uses AI to identify and extract relevant segments based on prompt
  • Content type guides the type of clips to extract (e.g., “highlights”, “summaries”)
  • Returns SearchResult object with clip stream URL
  • Model name allows selecting different AI models for clip generation
  • Clipped video maintains original quality and format

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Path Parameters

video_id
string
required
Pattern: ^m-
Example:

"m-12345"

Body

application/json
prompt
string
required
Example:

"Create a clip about the introduction"

content_type
string
default:spoken
Example:

"spoken"

model_name
string
default:basic
Example:

"basic"

scene_index_id
string
Example:

"idx-12345"

callback_url
string
Example:

"https://webhook.example.com/callback"

Response

200 - application/json

Clip generation started

success
boolean
Example:

true

status
enum<string>
Available options:
processing,
done,
failed
Example:

"processing"

data
object