Migrate from Pegasus 1.5 to Pegasus 1.6
To migrate to Pegasus 1.6, change the model name. Everything else in your requests can stay unchanged.
Pegasus 1.5 remains available. Requests without a model name use Pegasus 1.5.
If you use batch analysis, keep Pegasus 1.5. Batch analysis does not support Pegasus 1.6.
Pegasus 1.6 adds egocentric video understanding, image analysis, improved entity recognition, improved metadata extraction, in-segment events, and segmentation without a token limit. For the full capability list, see the Pegasus 1.6 page.
Migration steps
Update your analysis calls
Set model_name to "pegasus1.6".
Python
Node.js
cURL
Before:
After:
No other request changes are required.
Use new Pegasus 1.6 features
The following examples show three of the new capabilities: image analysis, in-segment events, and segmentation without a token limit.
Analyze images
Pegasus 1.6 analyzes up to 20 images per request.
Python
Node.js
cURL
image parameter is mutually exclusive with the video and prompt_v2 parameters. The prompt parameter is required when you provide images.For the complete instructions and examples, see the Analyze images guide.
Extract in-segment events
Use time_array to extract a list of timestamped events inside each segment. For example, segment a video into scenes and return the start and end time of each spoken line.
Python
Node.js
cURL
For the complete instructions and examples, see the Segment videos guide.
Segment long videos without a token limit
Set max_tokens to unlimited to segment long videos without a token ceiling. The task completes even when the platform cannot extract every segment. The error field then states that the results may be incomplete.