meta

Compile a free-text prompt into a CompiledQuery (no analysis created)

Stateless prompt compiler. Auth optional (anonymous allowed); rate-limited to 30 req/min per IP. Never touches the GPU and never burns credits — use POST /v1/analyses with validate_only:true when you also want cost/assessability estimates.

post/v1/parse

Request

  • Base URL: https://api.primateintelligence.ai
  • URL: https://api.primateintelligence.ai/v1/parse
  • Auth: none declared

Request body

promptstring required

Free-text video question. Must be a non-empty string.

Example request

{
  "prompt": "Is there a dog in this video?"
}

Response

The compiled query and which parser produced it.

compiled_queryobject required

CompiledQuery — canonical JSON Schema served at /v1/schemas/compiled-query.json. Same structure accepted by POST /v1/analyses query.

parse_mode'haiku' | 'heuristic' required

How the prompt was compiled: "haiku" = LLM parser; "heuristic" = deterministic fallback (used when the LLM is unavailable).

Changes

No recorded changes to this operation across all 1 revision of this API.