analyses
Create an analysis (video × prompt × model)
Async by default: 202 + poll. Prefer: wait=<s> (≤120) blocks and returns the terminal resource when it finishes in time. Test-mode keys (pv_test_) return deterministic canned results with no GPU time and no credit burn. Set validate_only: true to dry-run a prompt — returns an AnalysisPreview with cost/assessability and creates nothing.
post/v1/analyses
Request
- Base URL: https://api.primateintelligence.ai
- URL: https://api.primateintelligence.ai/v1/analyses
- Auth: HTTP bearer
Headers
Idempotency-Keystring
§16.1: first request wins; 24h replay window; same key + different body → 409 idempotency_key_reused.
Preferstring
wait=<seconds> (cap 120)
Request body
Example request
{
"video_id": "video_01KX12XX3BNM688AWHX7406HCF",
"model": "Darwin-preview-1.3B",
"validate_only": true
}Response
Terminal resource (Prefer: wait satisfied, or test mode) — OR an AnalysisPreview when validate_only:true was sent. Discriminate on the object field.
Example response
{
"id": "an_01KX12XX3BNM688AWHX7406HCF",
"video_id": "video_01KX12XX3BNM688AWHX7406HCF",
"model": "Darwin-preview-1.3B",
"result": {
"unsupported_action": {
"reason": "unsupported_query_form",
"docs_url": "https://primateintelligence.ai/docs/supported-actions"
}
},
"artifacts": {
"expires_at": "2026-07-08T14:00:00Z"
},
"error": {
"code": "video_unreadable"
},
"created_at": "2026-07-08T14:00:00Z",
"started_at": "2026-07-08T14:00:00Z",
"completed_at": "2026-07-08T14:00:00Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.