Skip to main content

Playground page

The Playground page is where you send real requests through the gateway from the browser to check a model, a key, a guardrail or an MCP tool before you wire it into an application. Open it at /ui/playground. It sits under AI Gateway in the left nav as Playground.

The nav item is shown to the session roles Admin and Internal User. Admin Viewers (proxy_admin_viewer), Internal Viewers and org admins do not see it. When enabled_ui_pages_internal_users is set in UI settings, an Internal User sees the item only if llm-playground is in that list. The page itself only checks view-only status. A view-only user who opens the URL directly gets Access Denied with the text "Your role does not have access to the Playground. Ask your proxy admin for access to test models." No license feature is needed for any part of the page.

Every request on this page is a real call. It is authenticated with the key you choose, counts against that key's budget and limits, costs money at the provider and is logged like any other request.

The page has four tabs, Chat, Compare, Compliance and Decisions (the Decisions tab carries a Beta badge unless new badges are turned off). The active tab is kept in the tab query parameter, with the values chat, compare, compliance and system-one, so a link such as /ui/playground?tab=system-one opens a tab directly. Chat is the default. Switching tabs keeps each tab's state because all four stay mounted.

A real-world scenario​

A developer is about to give a new team a key limited to two models with a PII masking guardrail. Before sending them the key, the admin pastes it into the Playground, sends a prompt that contains an email address, and checks that the answer comes back with the address masked and the cost shown.

Steps​

  1. Open Playground under AI Gateway in the left nav, or go to /ui/playground. The Chat tab opens.

  2. Set Virtual Key Source to Virtual Key and paste the team's key. Keep Endpoint Type at /v1/chat/completions.

  3. Pick a model under Select Model, type a prompt and press Enter.

  4. Read the reply and its metrics row with tokens, latency and Cost. Click Get Code to copy the same request as code, or send it with curl:

    curl http://localhost:4000/v1/chat/completions \
    -H "Authorization: Bearer $TEAM_KEY" -H "Content-Type: application/json" \
    -d '{"model": "gpt-5.5", "messages": [{"role": "user", "content": "Email jane@example.com a summary of this call"}]}'
  5. Open Logs to see the same request with the key alias and the guardrail result.

Expected result​

The reply arrives with a metrics row, and the logged request shows the guardrail ran. A model the key may not use is refused with key_model_access_denied.

Chat tab​

The Chat tab has a Configurations panel on the left and a conversation area titled Test Key on the right. Most settings in the panel, the custom headers and the conversation are remembered in the browser's session storage for this tab, so they survive a reload and are dropped when the tab is closed. A virtual key you paste is kept in memory only, so you enter it again after a reload. Signing out clears the session storage, so the next person on the browser does not get your Playground state.

Configurations panel​

ControlTypeWhat it does
Virtual Key SourceDropdownCurrent UI Session sends requests with your signed-in UI session key. Virtual Key shows a password field (placeholder Enter custom Virtual Key) for any virtual key you paste. The default is Current UI Session, or Virtual Key when personal key creation is disabled for you, in which case the dropdown is also locked. The model list, the MCP server list and the agent list are loaded with the chosen key, so they show what that key can use.
Custom Proxy Base URLText fieldOptional. Sends every request from the Chat tab, and from the Compare and Decisions tabs, to another gateway URL instead of this one (the placeholder suggests a local gateway address). When set, the panel shows "API calls will be sent to" followed by the URL. The key you chose is sent to that URL, so only enter a gateway you trust. Fill appears when the admin has set SPANWAY_UI_API_DOC_BASE_URL and copies that value in. Clear empties the field.
Endpoint TypeSearchable dropdownPicks the API the request goes to. See the endpoint table below. The default is /v1/chat/completions. Changing it clears the selected model, agent and MCP tool.
VoiceDropdownShown for /v1/audio/speech. Picks the voice, from Alloy - Professional and confident (the default) through Shimmer - Bright and cheerful.
Session ManagementSwitchShown for /v1/responses. See the section below.
Select ModelSearchable dropdownHidden for the A2A and MCP endpoints. Lists the model groups the key can use that fit the chosen endpoint, each with its mode. Enter custom model shows a free text field (placeholder Enter custom model name) for a model name that is not listed. The placeholder reads Loading models... while the list loads.
Model Settings (gear icon)PopoverNext to Select Model. See the Model Settings section. When neither the model nor the endpoint supports any of the settings, the gear is disabled with the tooltip "Advanced parameters are only supported for chat models currently".
Select AgentSearchable dropdownShown for /v1/a2a/message/send instead of the model picker. Lists the A2A agents the key can reach, with each agent's description. When there are none it says "No agents found. Create agents via /v1/agents endpoint."
TagsMulti selectTags to attach to the request. They are sent in the x-spanway-tags header and can drive tag based routing and spend tracking.
Custom HeadersKey and value listHidden for /v1/realtime. Extra HTTP headers sent with every Playground request, for example provider specific headers such as anthropic-beta. Rows with an empty name are ignored. A header with the same name as one the gateway client needs is overridden by the required one.
MCP ServersMulti selectMCP servers and toolsets to make available as tools in the conversation. All MCP Servers uses every server the key can reach. Toolsets are listed by name. The field is disabled for endpoints other than chat completions, responses, messages and MCP. For /mcp-rest/tools/call it becomes a single choice labeled MCP Server. The info icon opens How Toolsets Work, which explains toolsets and has a Close button.
Limit tools for a serverMulti selectShown under each selected server once its tools load (not for All MCP Servers and not for the MCP endpoint). Restricts the model to the chosen tools on that server. Empty means All tools (default).
BYOK connect rowButtonShown for each selected server that needs your own API key. It reads "requires your API key" and offers Connect, or Connected with Reconnect once a key is stored. Both open the Connect dialog described below.
Vector StoreMulti selectVector stores to search for this call. The tooltip links to the Vector Stores page.
GuardrailsMulti selectGuardrails to run on this call, in addition to whatever the key and team already enforce. The tooltip links to the Guardrails page. Guardrails are also applied to MCP tool calls and A2A calls.
PoliciesMulti selectShown only to the session role Admin. Policies to apply to this call. The tooltip links to the Policies page.
Code InterpreterSwitchShown for /v1/responses. Lets the model run Python in a container that is created automatically. It is disabled unless the selected model name looks like an OpenAI model (it starts with openai/, gpt-, o1 or o3, or contains openai), and then shows "Code Interpreter is currently only supported for OpenAI models." with a Request support for other providers link.

The tag, vector store, guardrail and policy pickers always load their options with your UI session key, even when Virtual Key is selected.

Endpoint types​

EndpointWhat the request doesInput area
/v1/chat/completionsChat completion with the conversation history. Supports streaming, MCP tools, vector stores, guardrails, policies and the fallback test.Text box plus an attach button for one image or PDF.
/v1/responsesResponses API call. Supports streaming, MCP tools, Code Interpreter and session management.Text box plus an attach button for one image or PDF, and a Code Interpreter toggle button.
/v1/messagesAnthropic Messages format call. Supports streaming, MCP tools, vector stores, guardrails and policies.Text box.
/v1/images/generationsGenerates an image from the prompt and shows it in the conversation.Text box (placeholder Describe the image you want to generate...).
/v1/images/editsEdits the uploaded images using the prompt. At least one image is required. The images are removed after the request.Upload area for up to 10 images (PNG, JPG, JPEG, GIF, WebP, up to 20 MB each) and a text box.
/v1/embeddingsCreates an embedding for the text. The result is shown truncated to 100 characters.Text box.
/v1/audio/speechTurns the text into speech with the chosen voice and shows an audio player.Text box (placeholder Enter text to convert to speech...).
/v1/audio/transcriptionsTranscribes the uploaded audio file. The file is removed after the request.Upload area for one audio file (MP3, MP4, MPEG, MPGA, M4A, WAV, WEBM, up to 25 MB) and an optional text box.
/v1/a2a/message/sendSends the message to the selected A2A agent and streams the reply.Text box (placeholder Send a message to the A2A agent...).
/mcp-rest/tools/callCalls one MCP tool directly, with no model involved.A form generated from the tool's input schema replaces the text box.
/v1/realtimeOpens a realtime voice session. The whole right side is replaced by the realtime panel described below.Realtime panel.
/v1beta/interactionsInteractions API call.Text box.

Picking a model filters the model list to models whose mode fits the endpoint. Chat models are also listed for the responses, messages and interactions endpoints, and image generation models are also listed for image edits. The empty text of the model list tells you why it is empty. Enter a Virtual Key to load models means the key field is empty, Unable to load models for this key means the model list request failed, No models available for this endpoint means the key has models but none fit, and No models available for this key means the key has none.

MCP direct tool calls​

With /mcp-rest/tools/call, pick one server or toolset in MCP Server, then a tool in Select Tool (placeholder Select a tool to call). A toolset only offers its own tools, and the call is routed to the server that owns the tool. The composer then shows a form for the tool's arguments, or "Loading tool schema..." until the schema arrives. Required fields are checked before sending. The result is shown as JSON, or "Tool executed successfully." when the tool returns nothing. Selected guardrails are sent with the call.

Connect dialog for servers that need your key​

The Connect dialog has two steps. The first explains How it works and offers Continue to Authentication and Cancel. The second asks for the key (placeholder Enter your API key) with a Back button and Connect & Authorize, which stores the key encrypted for your account. An empty key shows "Please enter your API key". When the gateway confirms the key is stored it shows "Connected to" with the server name and reloads the MCP server list. If the gateway kept no key, it shows "... did not keep your key. Try again." and the server stays unconnected.

Session Management​

Shown only for /v1/responses. The switch goes from UI to API.

ModeWhat happens
UI (default)The browser sends the whole conversation history on every turn. The status reads UI Session: Ready, then "UI session active - context maintained client-side".
APIAfter the first turn only the new message is sent, together with previous_response_id, and the gateway keeps the context. The status reads API Session: Ready, then Response ID with the first 10 characters of the ID and "Spanway API session active - context maintained server-side". A copy button copies the full response ID, and its tooltip shows a sample curl call that continues the session.

Model Settings​

The gear next to Select Model opens a Model Settings popover.

ControlTypeWhat it does
Stream responsesCheckboxShown for the chat completions, responses and messages endpoints. On by default. Uncheck it to send a non-streaming request and render the full answer at once.
Use Advanced ParametersCheckboxShown for chat models. Off by default. Only when it is checked are Temperature and Max Tokens sent.
Simulate failure to test fallbacksCheckboxOff by default. Makes the first attempt fail so the router tries the fallbacks configured for the model. It is only sent on /v1/chat/completions requests.
TemperatureSlider and number field0 to 2 in steps of 0.1, default 1.0. A typed value outside the range is clamped when the field loses focus.
Max TokensSlider and number field1 to 32768, default 2048. Values are rounded to whole numbers and clamped to the range.

Conversation area​

ControlWhat it does
Clear ChatRemoves the conversation, the trace ID and the response ID from the tab and removes any attached images or audio. It shows "Chat history cleared." There is no confirmation and it cannot be undone, but nothing on the gateway is deleted.
Get CodeOpens Generated Code with Python code that reproduces the current request, including the conversation, model, tags, vector stores, guardrails, policies, MCP servers and custom headers. SDK Type switches between OpenAI SDK and Azure SDK. Copy to Clipboard copies it. With Current UI Session the code uses the placeholder sk-... and the dialog says "Replace sk-... with a virtual key from Virtual Keys. Your login session token is never put in generated code." With Virtual Key the code contains the key you entered, in plain text, so treat that snippet as a secret.
SuggestionsWhen the conversation is empty, three sample prompts fill the text box when clicked.
Attach image or PDFFor chat completions and responses. Accepts one PNG, JPEG, GIF, WebP or PDF file up to 20 MB. A preview card with a remove button appears above the text box, and the file is removed after the request.
Send (arrow button)Sends the request. Enter also sends, Shift+Enter adds a new line. It is disabled while a request runs and when the input is empty, when no audio file is attached for transcriptions, or when no server and tool are chosen for MCP calls.
Stop (square button)Replaces Send while a request runs and cancels it, showing "Request cancelled".
Jump to bottomThe round arrow button scrolls to the last message.

Assistant replies show the model name, any reasoning content, MCP tool events (tool listing and tool calls), search results with sources, generated images, audio players, Code Interpreter output with downloadable files, and a metrics row. The metrics row shows TTFT (time to first token), Total Latency, In, Out, Reasoning and Total tokens, Cost and Tool when present. It shows Cache Read and Cache Write token counts when the provider reports prompt caching, or Response Cache with Hit when the gateway answered from its own response cache without calling the provider. A2A replies show A2A Metadata with the task ID, session ID and status message instead.

When Code Interpreter is on, a bar above the text box reads Code Interpreter Active (or "Running Python code..." while a request runs) with a Disable button and three sample prompts.

Realtime panel​

Selecting /v1/realtime replaces the conversation area with Realtime Voice Chat. A dot and label show Connected, Connecting... or Disconnected.

ControlWhat it does
VoicePicks the voice for the session. It is locked while connected.
ConnectOpens a WebSocket to /v1/realtime on the gateway (or the custom base URL) with the selected model and guardrails, using the chosen key. Without a model it shows "Please select a model first". Tags and custom headers are not sent on realtime sessions.
DisconnectCloses the session.
Microphone buttonStarts and stops recording from your microphone. The browser asks for microphone access the first time.
Text field and SendSends a typed message (placeholder Type a message or use the mic...). Enter also sends.

Status lines such as "Connected to realtime API", "WebSocket error", "Disconnected", "Connection failed" and "Microphone error" appear in the transcript.

Compare tab​

The Compare tab sends the same prompt to two or three models, or agents, at once and shows the answers side by side. Nothing on this tab is saved, including the virtual key you type.

Toolbar​

ControlTypeWhat it does
Virtual Key SourceDropdownCurrent UI Session or Virtual Key, with a password field (placeholder Enter Virtual Key). Locked to Virtual Key when personal key creation is disabled for you. The model and agent lists load with this key.
EndpointDropdown/v1/chat/completions (the default) compares models. /a2a (Agents) compares A2A agents.
Clear All ChatsButtonEmpties every panel. It is disabled when there are no messages. There is no confirmation.
Add ComparisonButtonAdds a panel. It is disabled at three panels with the tooltip "Compare up to 3 models at a time".

The tab starts with two panels. When the model list loads, empty panels are filled with the first models in the list.

Comparison panels​

Each panel has a model or agent picker (placeholder Select a model or Select an agent), a settings gear and, when more than one panel exists, an X button that removes the panel and its conversation.

The settings gear opens a popover that stays open until you click its close button.

ControlWhat it does
Sync Settings Across ModelsCopies this panel's tags, vector stores, guardrails and advanced parameters to every panel, and keeps later changes in sync. Unchecking it stops syncing and keeps the current values.
TagsTags for this panel's requests.
Vector StoresVector stores for this panel's requests.
GuardrailsGuardrails for this panel's requests.
Use Advanced ParametersSends Temperature (0 to 2 in steps of 0.01, default 1) and Max Tokens (1 to 32768, default 2048) only when checked.

Tags, vector stores, guardrails and advanced parameters apply to chat completion comparisons only. In /a2a (Agents) mode the messages are sent to the agents without them.

Message box​

The box under the panels has a text field (placeholder Type your message... (Shift+Enter for new line)), an attach button for one image or PDF (same types and 20 MB limit as the Chat tab) and a send button. Before the first message it offers sample prompts, and after every panel has answered it offers follow up questions such as "Can you summarize the key points?". While answers stream it reads "Gathering responses from all models..." or "Gathering responses from all agents...". If a panel has no model or agent selected, sending shows "Select a model before sending a message." or "Select an agent before sending a message.". A failed request shows the error as a toast and in that panel. Compare requests always stream and cannot be stopped once sent.

Each answer shows the same metrics as the Chat tab.

Compliance tab​

The Compliance tab runs prompts through guardrails and policies without calling a model, so you can see which prompts are blocked and whether that matches what you expect. It calls POST /utils/test_policies_and_guardrails with your UI session key. There is no key picker on this tab.

Test Configuration​

ControlWhat it does
PoliciesShown only to the session role Admin. Policies to test.
GuardrailsA dropdown that reads None selected or the number selected. Lists every guardrail on the gateway. Selected guardrails appear as chips with a remove button. When there are none it says "No guardrails available. Create guardrails in the Guardrails page."
SimulateRuns every selected prompt in the prompt library as one batch and switches to Batch Results. The button shows the number of selected prompts. It is disabled when no prompt is selected or when personal key creation is disabled for you.
StopReplaces Simulate during a run and cancels it. Rows that had not finished stay pending.
ResetClears the selected policies and guardrails, the batch results and the quick test messages. It does not clear the prompt selection.

If you select neither policies nor guardrails, the test runs with no rules, so every prompt is allowed.

Test Prompts library​

The left panel lists built in prompt sets grouped by framework and category, with a counter of selected prompts out of the total. The built in frameworks are EU AI Act, GDPR and Airline Brand Protection. Each prompt is marked Should Fail (you expect it to be blocked) or Should Pass (you expect it to be allowed).

ControlWhat it does
Search (placeholder Search prompts...)Filters prompts by text.
Select All and ClearSelects or clears every prompt.
Framework rowExpands or collapses the framework. Its All or Clear button selects or clears every prompt in it.
Category rowExpands or collapses the category and shows its description, with a Select all or Clear button.
Prompt checkboxSelects one prompt.
AddOpens a form to add a custom prompt (placeholder Enter your test prompt...), with Should Fail (the default) or Should Pass, then Add or Cancel. Custom prompts appear under a Custom framework.
CSVOpens Upload CSV Dataset. Download Template saves a sample compliance_prompts_template.csv. Choose CSV file uploads a file of up to 5 MB with the required columns prompt and expected_result (fail or pass) and the optional columns framework and category. Rows without a framework go under CSV Upload and rows without a category under Uploaded Prompts. Uploaded prompts are selected automatically. Any invalid row rejects the whole file and up to five row errors are shown.
Delete (trash icon)Shown on custom and uploaded prompts. Removes the prompt at once.

Custom and uploaded prompts live only in the open page and are gone after a reload.

Quick Test​

The Quick Test tab on the right tests one text at a time. It lists the policies and guardrails under test after Testing against, or says none are selected. Type in the box (placeholder Enter text to test...) and press Enter or the button, whose label reads Test or names what is being tested, for example "Test 2 guardrails". Each result is marked Blocked with the guardrail and message that blocked it, or Allowed, and shows Returned with the text after guardrails ran, which shows masking. The button is disabled when personal key creation is disabled for you.

Batch Results​

Control or fieldMeaning
Filter buttonsall, matches, mismatches and pending, each with a count.
Export CSVDownloads the rows shown by the current filter as compliance_batch_results_<date>.csv.
Summarytotal, correct, false negative (allowed content that should have been blocked) and false positive (blocked content that should have been allowed).
ScoreThe share of finished prompts that matched the expectation. It is green at 80% and above, amber from 50%, and red below.
Row badgesExpect Block or Expect Allow, then Match or Gap once finished.
Expanded rowTriggered by (guardrail and message), Verdict (correctly handled, a gap that should have been blocked, or a false positive) and the returned text.

If the batch request fails, every row is marked finished with the error under Triggered by.

Decisions tab​

The Decisions tab builds and sends requests to decision models, which answer structured questions with calibrated probabilities instead of free text.

Request editor​

ControlTypeWhat it does
Decision endpointDropdown/v1/systemone (the default) or /v1/decisions. Each endpoint keeps its own draft.
Decision modelSearchable dropdownLists the model groups whose mode is decisions or evaluation (placeholder Pick a decision model). Picking one writes it into the request. When the key has none, it reads No decision models yet and an Add a decision model link goes to the Models + Endpoints page.
Virtual Key SourceDropdownCurrent UI Session or Virtual Key, with a password field (placeholder Enter Virtual Key). Locked to Virtual Key when personal key creation is disabled for you. The key is not saved.
Form and cURLTabsForm edits the request with fields. cURL shows a read only curl command for the current request with a Copy cURL button and the note "Replace $SPANWAY_API_KEY with a virtual key". The command does not contain your key.
ExampleDropdownLoads a sample request, Triage a bug report (the default), Route a support ticket, Moderate a forum comment or Score a sales lead. It reads Custom once you edit the request.
Docs (book icon)LinkOpens the Decisions API docs in a new tab.
ClearButtonEmpties the questions and input but keeps the model. It is disabled when the request is already empty.
SendButtonSends the request. It is disabled while the request has errors, while a request runs, or when there is no key.
Cancel requestButtonShown while a request runs and cancels it.

The form is framed as Request form with a badge that reads Valid payload or the number of issues. A list under the form names each issue with its field path, or reads "Ready to send".

For /v1/systemone, each question has a Question name (it must be filled in and unique), an Answer type of Choice, Yes / no (the model returns the probability that the answer is yes) or Score, and Instructions (placeholder What should the model decide?). Choice questions have Options with an optional description each. Yes or no questions have optional Yes means and No means fields. Score questions have Levels, lowest first with Add level. Add question adds a question and the trash icon removes one. Input holds the text the model decides about (placeholder Paste the text the model should decide about).

For /v1/decisions, each question has an optional name, an Answer type of Predicate, Choice or Score, and Instructions. Choice questions have Choices, each with a value type of Text, true (boolean) or false (boolean), a value and an optional description. Score questions have Levels, lowest first with a label and description for each level. The form also has Input and an optional Safety identifier. When the input contains messages, the form says "Input contains messages. Form edits keep them unchanged."

If the request has a shape the form cannot show, the form says so and offers Reset to example.

Results​

The result panel appears next to the editor after you send. While waiting it reads "Calculating calibrated probabilities". It then shows Calibrated probabilities (or Response JSON when the cURL view is open) with the model, a latency badge in milliseconds and the input and output token counts. Each question gets a card with its name and type. Yes or no answers show the probability of yes, choice answers show the selected choice and a probability bar per option, and score answers show a bar per level. A refused answer reads "Model refused to answer". Raw response expands the full JSON. A failure shows Decisions request failed with the error.

Empty, error and disabled states​

On the Chat tab, an empty conversation shows "Start a conversation, generate an image, or handle audio". Sending without a key shows "Please provide a Virtual Key or select Current UI Session". Sending without a model shows "Please select a model before sending a request", without an endpoint "Please select an endpoint before sending a request", without images for image edits "Please upload at least one image for editing", without audio for transcriptions "Please upload an audio file for transcription", without an agent "Please select an agent to send a message", and for MCP calls "Please select an MCP server to test" or "Please select an MCP tool to call". A file that is too large or of the wrong type is rejected with a message naming the file and the allowed types. A failed request is shown as an assistant message that starts with "Error fetching response". If the image cannot be read, it shows "Failed to process image. Please try again."

If the MCP server list is empty, the picker reads No MCP servers. If an MCP server's tools fail to load, its tool restriction list does not appear.

On the Compare tab, sending without a key shows "Please provide a Virtual Key or select Current UI Session".

On the Compliance tab, an empty quick test reads "Type a prompt below to quickly test it." and empty batch results read "Select prompts and click Simulate to run batch compliance tests." A CSV upload error is shown in the upload box, for example "Please upload a .csv file.", "File too large (max 5 MB).", "CSV file is empty." or "Missing required columns".

On the Decisions tab, the result card reads "Send a request to see decision answers and probabilities." until you send. A response the UI cannot parse is shown as an error naming the endpoint and "response has an invalid shape."

When personal key creation is disabled for you, the key source dropdowns on Chat, Compare and Decisions are locked to Virtual Key, and the Simulate and quick test buttons on Compliance are disabled.

Differences by role and license​

WhoWhat changes
Admin (proxy admin)Sees the page and every control, including Policies on the Chat and Compliance tabs.
Internal UserSees the page unless enabled_ui_pages_internal_users leaves it out. Policies is hidden on the Chat and Compliance tabs. Model, MCP server and agent lists show what the chosen key can use.
Admin viewer (proxy_admin_viewer) and Internal ViewerThe nav item is hidden. View-only users who open the URL get Access Denied.
Org AdminThe nav item is hidden because the session role Org Admin is not in the Playground role list, but the page has no role guard, so the URL works.
Users with personal key creation disabledMust paste a virtual key on Chat, Compare and Decisions, and cannot run Compliance tests.

No license feature gates this page. The gateway still applies the chosen key's model access, budgets, rate limits and guardrails to every request.

Errors​

What you seeWhat it meansFix
"Access Denied"Your role is view-only.Ask a proxy admin for a role that may test models.
"Please provide a Virtual Key or select Current UI Session"No key was chosen.Pick a key source.
"Please select a model before sending a request"No model is selected.Pick a model the key can use.
"Error fetching response" with key_model_access_deniedThe key may not use that model.Pick another model or add it to the key.
"Error fetching response" with budget_exceededThe key spent its budget.Raise the budget on Virtual Keys.
"Error fetching response" with a guardrail messageA guardrail blocked the prompt or the answer.This is the guardrail working. Change the prompt, or check the guardrail on the Guardrails page.

Logs​

Every message sent from the Playground is an ordinary model request made with the key you picked, so it shows up on the Logs page with its model, tokens, cost and the key's alias, and counts against that key's budget. The Playground writes no gateway log lines of its own, and the request lines are in the log reference.