Metadata-Version: 2.4
Name: consistize
Version: 0.1.0
Summary: Image consistency checks with OpenAI vision models.
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: openai>=1.40.0

# consistize

Check whether an image is consistent with a set of reference images using OpenAI
vision models.

## Install

```bash
pip install -e .
```

## Usage

```python
from consistize import Consistize

checker = Consistize(
    reference_images=["./refs/ref1.jpg", "./refs/ref2.jpg"],
)

result = checker.run("./inputs/target.jpg")
print(result.consistency_score)
print(result.inconsistent_parts)
print(result.background_fix_prompts)
```

Set `OPENAI_API_KEY` in your environment or pass `api_key` to `Consistize`.

### Custom prompt or model

```python
result = checker.run(
    "./inputs/target.jpg",
    prompt="Check the first image against the references; focus on lighting.",
    model="gpt-5.2-pro"
)
```
