/api/v1/videos.
POST /api/v1/scripts
Generate a video script for a given topic.Request parameters
The topic or keyword for the script.
Language for the generated script (e.g.
"en", "zh", "fr"). Leave empty for the LLM to decide based on the subject.Number of paragraphs to generate. More paragraphs produce a longer script suitable for longer videos.
Response
The generated script text. Pass this as
video_script in a /api/v1/videos request to use it directly.POST /api/v1/terms
Generate footage search terms from a subject and script. These terms are used to query Pexels or Pixabay for relevant video clips.Request parameters
The topic of the video.
The video script to extract terms from.
Number of search terms to generate.
Response
List of search keywords. Pass this as
video_terms in a /api/v1/videos request to control which footage is retrieved.