This endpoint generates open-ended texts based on your videos, including but not limited to tables of content, action items, memos, and detailed analyses.
The unique identifier of the video for which you wish to generate a text.
A prompt that guides the model on the desired format or content.
Examples:
Controls the randomness of the text output generated by the model. A higher value generates more creative text, while a lower value produces more deterministic text output.
Default: 0.2 Min: 0 Max: 1
Set this parameter to true
to enable streaming responses in the NDJSON format.
Default: false
The specified video has successfully been processed.
When the value of the stream
parameter is set to false
, the response is as follows:
When the value of the stream
parameter is set to true
, the platform provides a streaming response in the NDJSON format.
The stream contains three types of events:
To integrate the response into your application, follow the guidelines below:
event_type
field to determine how to handle the event.text_generation
events, process the text
field as it arrives. Depending on your application’s requirements, this may involve displaying the text incrementally, storing it for later use, or performing any tasks.stream_start
and stream_end
events to manage the lifecycle of your streaming session.