# `mix openrouter.snapshot`
[🔗](https://github.com/zmzlois/openrouter_sdk/blob/v0.1.0/lib/mix/tasks/openrouter.snapshot.ex#L1)

fetches `/api/v1/models` and `/api/v1/providers` from openrouter and
writes them into `priv/openrouter/`. designed for ci to call on a
schedule and auto-open a pr when drift exists.

## usage

    mix openrouter.snapshot           # write snapshot, bump version
    mix openrouter.snapshot --check   # exit non-zero on drift (pr gate)

network calls go via `:httpc` so we don't depend on a live finch
pool while compiling. no api key is required for either endpoint.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
