Docs
Sign in

Prompt Playground

The Prompt Playground is a place to try out instructions on a model, compare several models on the same prompt, or chain prompts together. You do not need an agent or a graph.

Screenshot to add: The Prompt Playground with the prompt library on the left, the messages in the middle and the output below.

Open it

Click Prompt Playground under APEX Studio (/studio/prompts). You need the Prompts permission. It runs on your own AI key, so add one first in AI Model Keys.

The three modes

Choose a tab at the top.

ModeWhat it does
SingleRun your prompt on one model
CompareRun it on three models at once and see the results side by side. A table shows tokens and time, charts compare them, and a Best button lets you mark a winner
ChainRun several steps in order. Each step has its own model and system prompt, and receives the previous step's answer. Click Add Step to add more

In Chain, each step has an Output var: name, but the name is not substituted into later prompts. Only the previous step's answer is passed on. The Chain Status panel shows each step as Done.

Write a prompt

  • The messages list starts with a system message ("You are a helpful AI assistant.") and an empty user message. Use the buttons to add more system, user or assistant messages, and delete when there is more than one.
  • Placeholders in the boxes: "Enter system instructions... Use {{variable}} for variables.", "Enter user message…" and "Enter assistant response…".
  • Any {{name}} you type is detected and gets its own amber box ("Value for name") so you can fill it in.

Settings

  • Model (pick with the search box; the default is gpt-4o-mini, so change it if you have no OpenAI key).
  • Temp: 0 to 1 (default 0.7).
  • Top-P: 0 to 1 (default 1.0).
  • Max tokens: 64 to 8192 (default 1024).
  • A live estimate shows "~N tokens · $x", "price not set" or "free".

Run it

Click Run Prompt (Run Comparison or Run Chain in those modes). While it works the button says "Generating…". In Single mode it becomes Stop.

The output

  • The answer types out on screen. Click the copy button to copy it ("Copied.").
  • A bar shows input and output tokens.
  • An Evaluation block has sliders for accuracy, clarity and helpfulness (1 to 5, default 3) and a Save Evaluation button.
  • Before the first run: "Run a prompt to see output". Errors show in red, for example "Backend error: …" or "Cannot reach the API gateway. Check that Docker services are running."

Export Code opens "Export as Code" and gives you ready-to-copy code for Python or TypeScript, using the Anthropic or OpenAI SDK. Toast "Code copied to clipboard."

The prompt library

The left sidebar is the Prompt Library.

  • My Templates: your saved prompts, with a search ("Search templates…"). Click one to load its messages, model, temperature, max tokens and Top-P. A trash icon deletes it. Empty: "No templates yet. Save your first prompt above."
  • Save current opens Save Template: Name (required, for example "My template name") and Tags (comma-separated, for example "coding, analysis, production"). Toasts "Template saved." and "Template deleted."
  • System Prompts: built-in examples grouped as General, Coding, Analysis, Data, Agent and Creative: Helpful Assistant, Customer Support, Expert Developer, Code Reviewer, Data Analyst, JSON Extractor, SQL Expert, RAG Agent and Creative Writer. Click one to load it ("Loaded "(name)" system prompt.").
  • Run History: your last 10 runs in this session. Each shows the model, time and a short preview. "No runs yet."

Known gaps