> ## Documentation Index
> Fetch the complete documentation index at: https://docs.physionlabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Galileo2-PM

> Check whether a video matches its prompt.

Galileo2-PM checks one thing: whether a generated video does what its prompt asked
for. It reports objects, actions, or details in the prompt that the video does not
fulfill. Use **`galileo2-pm`** as the model name. See [pricing](https://docs.physionlabs.ai/resources/limits.md).

## At a glance

| | `galileo2-pm` |
| - | - |
| Checks | Prompt alignment |
| Prompt | Required |
| Price | \$0.04 per minute of video, billed per second (50% off during the launch promotion) |
| Concurrent evaluations | 10 on Free, 100 on Growth |

Video formats, size, and length limits are listed in
[video inputs](https://docs.physionlabs.ai/guides/video-inputs.md).

## Send a prompt

A prompt is required. It is the text the video is checked against, so a request
without one, or with an empty or whitespace-only one, is refused with
`400 missing_prompt` and nothing is charged.

Leave `glitch_types` out, or set it to `["prompt_misalignment"]`. Any other value
is refused with `400 unsupported_glitch_type` before anything is charged.

## Evaluate a video

Submit the evaluation, then retrieve it by `id` until its status is `completed`,
`partial`, or `failed`. From Python `0.1.0rc12` and TypeScript `0.1.0-rc.12`
the SDKs name it `galileo2-pm` and use it as the default model. Earlier Python
releases cannot read `galileo2-pm` responses; upgrade. The HTTP calls are:

```bash theme={null}
curl https://api.physionlabs.ai/v1/evaluations \
  -H "Authorization: Bearer $GALILEO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "galileo2-pm",
    "input": {
      "video": { "url": "https://example.com/video.mp4" },
      "prompt": "A red ball rolls off a table and bounces twice."
    }
  }'

curl https://api.physionlabs.ai/v1/evaluations/EVALUATION_ID \
  -H "Authorization: Bearer $GALILEO_API_KEY"
```

`galileo2-pm` is what runs when `model` is omitted. `galileo-1.0` and `galileo`
are not available on the API: a request that names either is refused with
`400 model_not_available`, and nothing is charged.

## Results

The result contains prompt-alignment findings only. Each entry in
`result.glitches` is one thing the prompt asked for that the video does not fully
show. `detectors` lists `prompt_misalignment` only.

```json theme={null}
{
  "id": "019f6c31-7cec-7448-8085-5d083b4c3e81",
  "object": "evaluation",
  "model": "galileo2-pm",
  "model_version": "1.0",
  "output_schema_version": "evaluation-schema-2026-06-01",
  "created": 1787783200,
  "status": "completed",
  "input": {
    "prompt": "A red ball rolls off a table and bounces twice.",
    "video": {
      "duration_sec": 5,
      "width": 1280,
      "height": 720,
      "fps": 24,
      "num_frames": 120
    }
  },
  "usage": {
    "video_seconds": 5,
    "billable_units": 0.3334
  },
  "result": {
    "glitches": [
      {
        "id": "gl_01",
        "type": "prompt_misalignment",
        "description": "The ball bounces twice — it bounces once, then rolls away.",
        "prompt_segment": {
          "text": "bounces twice",
          "char_start": 33,
          "char_end": 46
        },
        "severity": 2
      }
    ],
    "summary": {
      "num_glitches": 1,
      "has_prompt_misalignment": true
    }
  },
  "error": null,
  "detectors": [
    {
      "detector": "prompt_misalignment",
      "status": "completed"
    }
  ],
  "timing": {
    "e2e_ms": 21000
  }
}
```

### Finding fields

These definitions use the example above. Its prompt is
`"A red ball rolls off a table and bounces twice."`

| Field | Meaning |
| - | - |
| `id` | Identifies this finding within the evaluation. Don't parse it. |
| `type` | Always `prompt_misalignment` for `galileo2-pm`. |
| `description` | A plain-English explanation for people to read: the requirement from the prompt, then what the video shows instead. In the example, the prompt asks for two bounces and the video shows one. The wording is not a fixed format, so don't parse it or match on it. |
| `prompt_segment` | The part of your prompt this finding is about. Use it to highlight that text in your prompt. It is left out when the finding is about the prompt as a whole, such as the order of events, rather than one phrase. |
| `prompt_segment.text` | That part of the prompt, copied exactly: `"bounces twice"`. |
| `prompt_segment.char_start` | Where that text starts in your prompt, counting characters from 0. In the example, the 33 characters `A red ball rolls off a table and ` come before it, so it is `33`. |
| `prompt_segment.char_end` | Where that text ends: the position just after its last character, so `char_end - char_start` is its length. `33 + 13 = 46`. In Python, `prompt[33:46]` and in JavaScript `prompt.slice(33, 46)` return `"bounces twice"`. |
| `severity` | How far the video is from what that part of the prompt asked for, from 1 to 4. Higher is worse. See the scale below. |

Positions count the prompt exactly as you sent it, including leading spaces and
line breaks. They count UTF-16 code units, the same as JavaScript string
indexes. For text without emoji, this is the same as Python string indexes.

| `severity` | Meaning | Example for "bounces twice" |
| - | - | - |
| 1 | Minor mismatch. Mostly matches; a small detail is off. | Two bounces, but the second one is barely visible. |
| 2 | Clear mismatch. Only partly matches. | One bounce instead of two. |
| 3 | Barely matches. | The ball drops but hardly bounces. |
| 4 | Missing or contradicted. The video does not show it, shows the opposite, or cannot be checked against it. | The ball never leaves the table. |

A requirement the video fully matches is not reported, so every finding is a
mismatch of some degree. To flag only clear problems, keep findings with
`severity` of 2 or higher.

`usage.billable_units` is what the evaluation was charged, in credits; one credit
is \$0.01. It can have up to 4 decimals: the 5-second example above is `0.3334`
(\$0.003334) at list price, and `0.1667` during the launch promotion's 50% discount.
See [pricing](https://docs.physionlabs.ai/resources/limits.md). An empty
`glitches` list means no mismatches were reported by the completed check. See [evaluations](https://docs.physionlabs.ai/guides/evaluations.md) for statuses and result fields.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.