validate_analysis
Validate a prompt before committing to an analysis: dry-run compiles the query, checks if it's assessable, and previews estimated cost and time.
Instructions
Dry-run a prompt WITHOUT creating an analysis or spending credits (POST /v1/analyses with validate_only: true). Compiles the prompt and returns an analysis_preview: the compiled query, assessable (false means the model cannot score this query form — rephrase as a yes/no or count question), estimated_seconds, and estimated_cost_usd (both null when the video duration is not yet known). Recommended before create_analysis to catch unassessable prompts and preview cost.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model id (see list_models). Defaults to the current default model. | |
| prompt | Yes | Free-text question to validate, e.g. "How many people are walking?" | |
| video_id | Yes | The video the analysis would run against (video_… id). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| object | Yes | ||
| assessable | Yes | False means the model cannot score this query form — rephrase as yes/no or count. | |
| parse_mode | Yes | ||
| video_duration_s | Yes | ||
| estimated_seconds | Yes | Null when the video duration is not yet known. | |
| estimated_cost_usd | Yes |