Analyze Frames
Face analysis for single or multiple images with automatic person deduplication
persons format optimized for face swap. Automatically deduplicates faces across multiple frames.Request Parameters
Response Format
Response Fields
Person Object
Examples
Example 1: Single Image Analysis
Request:Example 2: Multi-Frame Analysis (Video Frames)
Request:Example 3: Custom Expand Ratio
Request:Error Responses
Integration with Face Swap
Best Practices
- URL Requirements: Use HTTPS, ensure publicly accessible
- Multi-Frame: Use 3-10 frames for typical video clips
- Expand Ratio: Use 0.5 for more facial context in face swap
Authorizations
Your API Key used for request authorization. If both Authorization and x-api-key have values, Authorization will be used first and x-api-key will be discarded.
Body
List of image URLs to analyze. Must be publicly accessible.
- Single URL: Returns each face as a separate person
- Multiple URLs: Automatically deduplicates faces across frames
Optional timestamps for each frame (in seconds).
If not provided, sequential indices (0.0, 1.0, 2.0, ...) will be used.
Length should match frame_urls length.
Expansion ratio for face cropping. The face bounding box is expanded by this ratio on all sides before cropping. Higher values include more context around the face.
0 <= x <= 10.3
Response
Face analysis completed successfully
Whether the analysis was successful
true
Number of frames that were analyzed
3
List of detected persons. Each person contains:
- Unique ID and index
- Cropped face image URL
- Bounding box and confidence
- All appearances across frames
- First and last seen timestamps