A prompt playground is where prompts go to be tested before they earn a release. It's the fast loop between writing a prompt and trusting it in production.
What a playground is for
Start from one of six templates - Answer from articles, Summarise a document, Extract fields as JSON, Classify a message, Rewrite in a tone, Agent instructions - or load a saved prompt. Then work in System prompt and Message.
- Iterate fast - tweak a message and see the answer in seconds, with no release in between.
- Test against live models - every message is a real request on a real key, at the model's price.
- Tune parameters - pick the model, set the temperature, and open Advanced settings when you need more.
- Keep the thread - each turn sends the whole conversation so far, the way a chat product does.
Before you even need evals
Formal LLM evals are essential, but they're slow. The playground is the first check: does this prompt do anything sensible at all? Iterate here, then graduate candidates into a test set for rigorous comparison.
Working from a real key
The most realistic playground tests run on a real key, not a mock. In Infere, Billed to picks the key each message runs on - the workspace's DEFAULT key unless you pick another - so every turn is a real request: it shows in that key's Logs, is billed at the model's price, and carries source playground. A key that holds a released prompt isn't offered, because the gateway would add the prompt's messages to yours.
# Playground request (OpenAI-compatible)
POST /v1/chat/completions
Authorization: Bearer inf_prod_x9y8z7
{
"model": "gpt-4o-mini",
"messages": [
{"role": "system", "content": "You are a business advisor."},
{"role": "user", "content": "Summarize our Q2 growth."}
],
"temperature": 0.7
}
Before a message goes out, Run shows the price cap for that turn. After each answer you get its cost, latency and tokens, a link to the logged request, and Add to test set - which is how a good playground answer becomes a regression case. The whole conversation is on the Logs Conversations tab, and New conversation starts over.
Connecting the playground to git
The best setup connects a prompt playground to prompt management: test a draft in the Playground, keep the prompt as prompts/<name>.pml in the repository, push a branch, and merge only what passes. In Infere, Load a saved prompt opens a prompt you already have, so the text you iterate on is the file that gets released - and nothing reaches a key without a release.
The playground is where you build confidence in a prompt; evaluation is where you prove it.
Next steps
Infere combines the Playground with prompt management, test sets, evaluators and Logs - so the prompt you test is the prompt you release. Test, evaluate, release, and watch it from one platform.
Testing in the playground also shows you what each iteration costs: every answer carries its own price, and Cost and usage adds up the rest. For the wider picture, read the true cost of agentic coding to see how output tokens and model choice move a bill.