Use case
Model evaluation
Leaderboards rank models on someone else's tasks. Running your own prompts through a few candidates tells you which one is good enough for your workload, how fast it is and what it really costs.
The problem
Comparing models across vendors normally means several accounts, several SDKs and several bills, so teams stop at one or two candidates and keep using a model long after a cheaper or better one ships. New models arrive every few weeks; re-testing has to be cheap enough to actually do.
How it works with NeuronGate
01
Prompt set
20-200 real examples from your workload
02
Same request
Only the model field changes
03
Record
Output, latency, token usage
04
Score
Checks, a judge model, or people
05
Decide
Quality per dollar for your task
Every response carries a usage object with prompt and completion token counts, and each request's cost appears in your request log and CSV export. Give the evaluation its own key and the whole experiment's cost is one filter away.
Choosing candidates
Test across price tiers, not just the top of the leaderboard. Often a mid-priced model is indistinguishable on your task. Browse candidates by provider, context window and capability in the model catalog.
| Tier | Example | Include it to learn | Watch for |
|---|---|---|---|
| Frontier | ~anthropic/claude-sonnet-latest | The quality ceiling for your task | Whether the gap justifies the price |
| Frontier, other family | ~openai/gpt-latest | Whether another provider's strengths fit better | Different formatting habits |
| Fast mid-tier | ~google/gemini-flash-latest | If speed and price matter more than the last few points | Drops on your hardest examples |
| Low cost | deepseek/deepseek-v4-flash | The floor: is this task easy enough for it? | Instruction-following on edge cases |
Example: a side-by-side run
Runs every prompt through every model and prints a comparison. Swap the simple pass/fail check for whatever scoring fits your task.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://neurongate.net/v1",
api_key=os.environ["NEURONGATE_API_KEY"],
)
import time, statistics
MODELS = [
"~anthropic/claude-sonnet-latest",
"~openai/gpt-latest",
"~google/gemini-flash-latest",
"deepseek/deepseek-v4-flash",
]
CASES = [ # real examples from your workload, with a check per case
{"prompt": "Classify: 'Card charged twice'", "expect": "billing"},
{"prompt": "Classify: 'App crashes on login'", "expect": "bug"},
]
for model in MODELS:
passed, latencies, tokens = 0, [], 0
for case in CASES:
start = time.perf_counter()
reply = client.chat.completions.create(
model=model,
temperature=0,
messages=[{"role": "user", "content": case["prompt"] + " Answer with one word."}],
)
latencies.append(time.perf_counter() - start)
tokens += reply.usage.total_tokens
passed += case["expect"] in reply.choices[0].message.content.lower()
print(f"{model:36} pass {passed}/{len(CASES)} "
f"p50 {statistics.median(latencies):.2f}s tokens {tokens}")Compare cost per correct answer
Pin ids when you ship
~anthropic/claude-sonnet-latest follow the newest release, which is handy for evaluation. In production, use the specific model id you evaluated, and re-run the evaluation before moving to a new one.Cost control
- 1
Give the workload its own key
Create a key just for evaluation runs under API keys. Its usage then shows up separately in the logs, and revoking it touches nothing else. - 2
Set a monthly spend cap
Once the key has spent its cap for the month, its requests are refused until the next month or until you raise the cap. Size it from a week of real traffic, not a guess. - 3
Allowlist the models it may call
Restrict the key to the models this workload actually uses, for example the candidate models in the current run. A typo or a prompt-injected model switch then fails instead of quietly running on a pricier model. - 4
Watch the logs
Filter the request log by this key to see tokens, cost and latency per call. Export CSV for a monthly cost-per-workload report.
FAQ
Do I need an account with each provider?
No. All models in the catalog are called through the same NeuronGate endpoint and key, and billed from one balance.
Where do I see the cost of each request?
In the request log, which shows model, tokens, cost, latency and status per call. Filter by the evaluation key and export CSV to compare models.
How many examples do I need?
Enough to cover your real variety: 20 to 50 is often enough to rule models out, and a few hundred to choose between close candidates.