Primate Intelligence · Schema
Analysis
A video analysis (§13.2).
Artificial IntelligenceVideoReal-TimeJEPAPlatform
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Analysis resource id (prefixed ULID). |
| object | string | |
| livemode | boolean | true when the request used a live key; false for test keys and sandbox. Stripe-style. |
| origin | string | `api` — submitted via the public API; `console` — uploaded via the dashboard; `system` — generated internally (e.g. auto-probe, fixture seeding, run_prompt). System analyses are never billed. Agents s |
| status | object | |
| video_id | string | Video resource id (prefixed ULID). Immutable. |
| prompt | stringnull | |
| query | object | CompiledQuery (schema at /v1/schemas/compiled-query.json). Always populated in responses. |
| parse_mode | stringnull | |
| model | string | |
| options | object | |
| progress | object | |
| queue_position | integernull | |
| result | object | |
| narrative | object | |
| artifacts | object | |
| error | object | |
| metering_rule | object | |
| usage | object | |
| rerun_eligible | boolean | PRI-493: present on failed analyses — true when this analysis qualifies for ONE free re-run (it failed during a platform incident, or was flagged by ops). POST /v1/analyses/{id}/rerun creates a fresh |
| metadata | object | Free-form key/value metadata. ≤16 keys, key ≤40 chars [a-zA-Z0-9_.-], value ≤500 chars. |
| created_at | string | |
| started_at | stringnull | |
| completed_at | stringnull |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/primateintelligence-ai/json-schema/primateintelligence-ai-analysis-schema.json",
"title": "Analysis",
"description": "A video analysis (§13.2).",
"x-generated": "2026-11-21",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/primateintelligence-ai-openapi.json#/components/schemas/Analysis",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^an_[0-9A-HJKMNP-TV-Z]{26}$",
"description": "Analysis resource id (prefixed ULID)."
},
"object": {
"type": "string",
"enum": [
"analysis"
]
},
"livemode": {
"type": "boolean",
"description": "true when the request used a live key; false for test keys and sandbox. Stripe-style."
},
"origin": {
"type": "string",
"enum": [
"api",
"console",
"system"
],
"description": "`api` — submitted via the public API; `console` — uploaded via the dashboard; `system` — generated internally (e.g. auto-probe, fixture seeding, run_prompt). System analyses are never billed. Agents should normally only process api/console-origin analyses. (Renamed 2026-07-27: former value `user` is now `api`.)"
},
"status": {
"$ref": "#/$defs/AnalysisStatus"
},
"video_id": {
"type": "string",
"pattern": "^video_[0-9A-HJKMNP-TV-Z]{26}$",
"description": "Video resource id (prefixed ULID). Immutable."
},
"prompt": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 2000
},
"query": {
"type": "object",
"additionalProperties": {},
"description": "CompiledQuery (schema at /v1/schemas/compiled-query.json). Always populated in responses."
},
"parse_mode": {
"type": [
"string",
"null"
],
"enum": [
"llm",
"heuristic",
"client"
]
},
"model": {
"type": "string"
},
"options": {
"type": "object",
"properties": {
"narrative": {
"type": "boolean",
"default": false
}
}
},
"progress": {
"$ref": "#/$defs/Progress"
},
"queue_position": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"result": {
"$ref": "#/$defs/Result"
},
"narrative": {
"$ref": "#/$defs/Narrative"
},
"artifacts": {
"$ref": "#/$defs/Artifacts"
},
"error": {
"$ref": "#/$defs/ErrorObject"
},
"metering_rule": {
"$ref": "#/$defs/MeteringRule"
},
"usage": {
"$ref": "#/$defs/AnalysisUsage"
},
"rerun_eligible": {
"type": "boolean",
"description": "PRI-493: present on failed analyses — true when this analysis qualifies for ONE free re-run (it failed during a platform incident, or was flagged by ops). POST /v1/analyses/{id}/rerun creates a fresh analysis at no charge. Absent on non-failed analyses."
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string",
"maxLength": 500
},
"default": {},
"description": "Free-form key/value metadata. ≤16 keys, key ≤40 chars [a-zA-Z0-9_.-], value ≤500 chars."
},
"created_at": {
"type": "string",
"format": "date-time"
},
"started_at": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"completed_at": {
"type": [
"string",
"null"
],
"format": "date-time"
}
},
"required": [
"id",
"object",
"livemode",
"origin",
"status",
"video_id",
"prompt",
"query",
"parse_mode",
"model",
"options",
"progress",
"queue_position",
"result",
"narrative",
"artifacts",
"error",
"usage",
"created_at",
"started_at",
"completed_at"
],
"$defs": {
"AnalysisStatus": {
"type": "string",
"enum": [
"queued",
"preparing",
"analyzing",
"rendering",
"completed",
"failed",
"canceled"
],
"description": "Analysis lifecycle state (§14.2). Clients MUST tolerate unknown future non-terminal values."
},
"AnalysisUsage": {
"type": [
"object",
"null"
],
"properties": {
"billed_seconds": {
"type": "integer",
"minimum": 0
},
"credit_balance_after": {
"type": [
"integer",
"null"
]
},
"metering_rule": {
"allOf": [
{
"$ref": "#/$defs/MeteringRule"
},
{
"description": "PRI-552: the rule this analysis settled under. Mirrors the top-level metering_rule for a self-contained terminal summary."
}
]
},
"frames": {
"type": [
"integer",
"null"
],
"minimum": 0,
"description": "PRI-552: processed-frame count reported by the inference callback (cost telemetry). Present for both metering rules when available; null when the callback did not carry it."
}
},
"required": [
"billed_seconds",
"credit_balance_after"
],
"description": "Terminal only. credit_balance_after is the balance immediately after THIS analysis settled — an immutable point-in-time snapshot; it does not change as later analyses run. Null when the account row is unavailable (e.g. free-grant exhausted before settlement). billed_seconds is the settled ledger amount, derived from the processed-frame count for per_frame rows (PRI-552); historical per_second rows carry their original clock-derived amount."
},
"Artifacts": {
"type": [
"object",
"null"
],
"properties": {
"annotated_video_url": {
"type": "string",
"format": "uri"
},
"expires_at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"annotated_video_url",
"expires_at"
],
"description": "Signed URL TTL 1h; re-fetch GET analysis for a fresh URL."
},
"Clip": {
"type": "object",
"properties": {
"start_s": {
"type": "number",
"minimum": 0
},
"end_s": {
"type": "number"
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"terms": {
"type": "object",
"additionalProperties": {
"type": "number",
"minimum": 0,
"maximum": 1
}
}
},
"required": [
"start_s",
"end_s",
"confidence",
"terms"
]
},
"ErrorObject": {
"type": [
"object",
"null"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
]
},
"MeteringRule": {
"type": "string",
"enum": [
"per_second",
"per_frame"
],
"description": "PRI-552: settlement rule pinned at admission. Resources created before the cutover report per_second."
},
"Narrative": {
"type": [
"object",
"null"
],
"properties": {
"status": {
"type": "string",
"enum": [
"generating",
"ready",
"failed"
]
},
"entries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"t_s": {
"type": "number"
},
"text": {
"type": "string"
}
},
"required": [
"t_s",
"text"
]
}
}
},
"required": [
"status",
"entries"
]
},
"Progress": {
"type": [
"object",
"null"
],
"properties": {
"stage": {
"type": "string"
},
"percent": {
"type": "number",
"minimum": 0,
"maximum": 100
}
},
"required": [
"stage",
"percent"
],
"description": "Non-terminal only. percent is monotonic non-decreasing per analysis."
},
"Result": {
"type": [
"object",
"null"
],
"properties": {
"answer": {
"type": "string",
"enum": [
"yes",
"no",
"indeterminate"
]
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"clips": {
"type": "array",
"items": {
"$ref": "#/$defs/Clip"
},
"maxItems": 500
},
"term_confidences": {
"type": "object",
"additionalProperties": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"query_type": {
"type": "string",
"enum": [
"object",
"action",
"compound",
"attribute",
"open_ended"
]
},
"video_duration_s": {
"type": [
"number",
"null"
],
"exclusiveMinimum": 0
},
"detected_count": {
"type": [
"integer",
"null"
],
"minimum": 0
},
"indeterminate_reason": {
"type": [
"string",
"null"
],
"enum": [
"low_confidence",
"nothing_detected",
"unsupported_query_form",
"duration_mismatch",
"unsupported_action_term"
]
},
"unsupported_action": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"description": "Why the request could not be scored."
},
"docs_url": {
"type": "string",
"description": "The supported-actions capability list — what the model can and cannot detect."
}
},
"required": [
"reason",
"docs_url"
],
"description": "PRI-516: present only when the prompt requested something the model cannot detect/score. Absent otherwise — never null."
}
},
"required": [
"answer",
"confidence",
"clips",
"term_confidences",
"query_type",
"video_duration_s"
],
"description": "Analysis result — the product (§13.3). Reserved (always absent in v1): masks, bounding_boxes, events."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/primateintelligence-ai-analysis"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.