Start Stream Video Understanding
Live Video Understanding
Start Stream Video Understanding
Start a real-time AI analysis session on a live RTMP video stream with a custom prompt.
POST
Start Stream Video Understanding
Product: Visual Intelligence — Live Video Understanding
Use case: Apply a custom AI prompt continuously to a live RTMP stream (e.g. captioning, activity recognition, custom monitoring), results to your callback every 5s
Mode: Server-Pull (you give us an RTMP URL → we pull → results to your callback)
Host:
https://stream.memories.ai
Auth: Authorization: sk-mavi-... (no Bearer prefix)user_prompt, and pushes results to your callback URL every few seconds.
Request Example
Parameters
RTMP stream URL for live video input (e.g.
rtmp://your.server:1935/live/stream).The analysis instruction applied to each frame window — e.g.
"What is happening right now?".Role or context for the AI — e.g.
"You are a real-time video monitoring system.".Public URL to receive continuous analysis results. Called repeatedly throughout the stream lifetime.
Enable reasoning mode for deeper analysis.
Start Stream Response
task_id to stop the stream via Stop Stream Video Understanding.
Callback Payload
Results are pushed to yourcallback URL continuously while the stream is active:
0 = success, -1 = failure.Identifies which stream this callback belongs to. Use this to stop the stream.
AI-generated analysis for the current frame window.
UTC timestamp of the analysis frame.
Error Codes
Billing
- Charged every 5 seconds per active stream
- If credit deduction fails, the stream stops automatically — recharge and call this endpoint again to resume
- This API does not support video file uploads or historical playback — live RTMP only
Authorizations
Body
application/json
RTMP stream URL for live video input
Example:
"rtmp://your.server:1935/live/stream"
Analysis instruction applied to each frame window
Example:
"What is happening right now?"
Role or context for the AI
Example:
"You are a real-time video monitoring system."
Public URL to receive continuous analysis results
Example:
"https://your.app/callback"
Enable reasoning mode for deeper analysis
