Providers and cost
From README.md at modelpin 0.5.7.
Providers and credentials
Modelpin always uses your credentials, read from the environment. It never stores, logs or
ships a key. Error messages are scrubbed of key-shaped strings with a recognisable prefix (sk-,
gsk_, AIza, ya29., AWS, GitHub, PEM); a key with no distinctive prefix, such as a bare hex
key, is not recognised.
Provider (providers: / --provider) |
Credentials | Notes |
|---|---|---|
openai |
OPENAI_API_KEY |
Chat Completions, multi-turn tool calls. Reasoning models (o1/o3/o4/gpt-5*/gpt-6*) get max_completion_tokens and no temperature |
anthropic |
ANTHROPIC_API_KEY, or Claude on Vertex AI: ANTHROPIC_VERTEX_PROJECT_ID + gcloud auth application-default login (CLOUD_ML_REGION defaults to global) |
Messages API, multi-turn tool calls. Newer Claude models, and every model on the API version current SDKs send (2026-10-21), accept only default sampling, so a scenario's temperature is not sent to them. Checked live on the Claude API on 23 Nov 2026 (Claude Sonnet 4.5 against itself and against Sonnet 5.5, 4 scenarios x 5 runs, docs/live-validation.md); not yet on Vertex AI |
google |
GEMINI_API_KEY (AI Studio), or Vertex AI: GOOGLE_GENAI_USE_VERTEXAI=true + GOOGLE_CLOUD_PROJECT + application-default login |
Multi-turn tool calls. On Vertex, GOOGLE_CLOUD_LOCATION defaults to global; in the project's testing gemini-3.x ids were not served on us-central1, so set it only if you need a specific region |
groq, openrouter, together, cerebras |
GROQ_API_KEY, OPENROUTER_API_KEY, TOGETHER_API_KEY, CEREBRAS_API_KEY |
OpenAI-compatible endpoints. Groq has a free tier |
The judge (judge_model: in modelpin.yaml) decides whether two answers mean the same thing.
It can run on any provider above; set judge_provider: when the model id does not name its
vendor (gpt-*, claude-* and gemini-* do; openai/gpt-oss-120b on Groq does not). Choose a
model that is neither the one you run today nor the candidate. Remove judge_model: to compare
only tool calls, refusals and text checks, with no extra calls.
Reasoning effort (OpenAI reasoning models): set reasoning_effort: in modelpin.yaml, or
pass --reasoning-effort to baseline and check (both read it), to measure the effort you
will ship (none, minimal, low, medium, high or xhigh; which values a model accepts
is OpenAI's call). A scenario can set its own reasoning_effort:. It is sent only to reasoning
models. Unset, and unless a scenario sets its own, Modelpin sends nothing, with one exception:
gpt-5.6 (Sol, Terra, Luna), gpt-6-sol and gpt-6-luna accept tools on Chat Completions only
with reasoning off, so a scenario that sends tools to them runs with none. last-report.md
(the pull-request comment) and migration-report.md state the effort each model was sent.
Testing tool use on those models at another effort needs OpenAI's Responses API, which
Modelpin does not support yet.
Cross-vendor: the baseline and the candidate can be on different providers — record the
baseline with one --provider, check with another (modelpin check --provider google --to gemini-3.1-flash-lite). check reads the baseline from disk, so only the candidate's key is needed
(plus the judge's).
Behind a corporate proxy: on Windows and macOS Modelpin trusts the operating system's
certificate store, so a TLS-inspecting proxy your machine already trusts works. On Linux, set
SSL_CERT_FILE to a CA bundle that includes your proxy's root and the public roots (for Vertex AI
also set REQUESTS_CA_BUNDLE to the same file).
Cost
Everything runs on your key, and check prints the size of the run before it spends:
provider=openai from=gpt-4o-mini to=gpt-4.1 runs=5 match=strict | 8 scenario(s) from scenarios -> 40 replays, >=40 paid calls + up to 360 judge calls
a scenario flagged as a regression is replayed again before it can fail the build: +5 replays, up to 45 judge calls per flagged scenario (--no-confirm to skip)
- Replays = scenarios × runs. A scenario without tools is one model call per replay; a scenario with tools can take up to 6 (one per tool-loop turn).
- Judge calls are an upper bound; identical answers skip the judge and it stops at the first match, so the real number is usually much lower.
- Confirmation: only a scenario flagged as a regression is replayed again; the second line says how much that adds.
Rough guide: 8 scenarios without tools at 5 runs is 40 candidate calls plus judge calls; multiply
the calls shown by your provider's price. modelpin baseline costs the same replays on your
current model, once.