Skip to main content
POST
/
action
/
process_video
Process Video
curl --request POST \
  --url https://api-lr.agent.ai/v1/action/process_video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "video_type": "YouTube URL",
  "video_url": "<string>",
  "model_prompt": "<string>",
  "output_variable_name": "<string>"
}
'
{
  "status": 123,
  "response": {}
}

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/integrations#api)

Body

application/json
video_type
enum<string>
default:YouTube URL
required

Select the video type to process

Available options:
YouTube URL
video_url
string
required

Provide the URL of the YouTube video

model_prompt
string
required

Enter a prompt to analyze the video, such as 'Generate 10 second clips where product announcements are made'

output_variable_name
string

Provide a variable name to store the video analysis, like 'video_analysis'

Pattern: ^[a-zA-Z][a-zA-Z0-9_]*$

Response

Successful response

status
integer<int32>

HTTP status code of the action response

response
object

Response data from the action