Skip to content

The AI Playground: try endpoints and prompts by hand

Describes AI 0.29.1.

The Playground is where an administrator tries an endpoint before anything on the site relies on it: send a message or a saved prompt, and see the answer, the tokens it took and what it cost.

Where to find it

In the admin sidebar, open AI, then Playground (/admin/ai/playground). You need the AI permission, and the AI module must be switched on under Modules. Only enabled endpoints and enabled prompts can be picked.

Every try is a real call to the provider: it costs what the provider charges and appears on the Usage page. Chat tries carry the source “Playground”; image and speech tries carry “PhoenixKitAI.Web.Playground”. All of them are made in your name as the Playground task, so that task’s limits and blocks on AI → Tasks apply to them.

The AI Playground in PhoenixKit: endpoint and prompt pickers, an optional system prompt and the message box with Send The AI Playground in PhoenixKit: endpoint and prompt pickers, an optional system prompt and the message box with Send

The Playground: try an endpoint before you use it.

Configuration

  • Endpoint (required): one of the enabled endpoints. With none, the page says No enabled endpoints. and links to Create one.
  • Prompt (Optional): a saved prompt, or Freeform (no prompt template) to type your own.

Sending a message

Without a prompt, the Message card has:

  • System Prompt (Optional): instructions sent before your message.
  • Message (required).
  • Dictate: records what you say and writes it into the message. It shows only when an endpoint is picked and the site’s PhoenixKit can record audio; it uses the settings of the Speech to text card (see the speech to text guide).

With a prompt picked, the card takes the prompt’s name. It shows the prompt’s description and system prompt, the template under Prompt Template (editable) and a field for each variable. Edits to the template apply to this try only; the saved prompt doesn’t change.

Send sends the call; the page stays usable while the model answers. Clear empties the message, the system prompt and the last answer.

The answer

The Response card shows the tokens sent (in), the tokens received (out), the total, the cost when known, and the answer’s text. A failed call shows an Error box with the reason instead.

Image edit

With an endpoint picked, the Image edit card sends images to an image-capable endpoint:

  • Add image: up to two JPG, PNG or WebP files, 8 MB each. The first is the image being edited; the second is a reference.
  • Operations: named edits to apply. You can pick operations, write an instruction, or both.
  • Instruction (optional with operations; the question for Describe).
  • Load model list and Model (override): try another model than the endpoint’s. Options such as Aspect ratio, Resolution or Quality appear when the model takes them.
  • Check the result against the original with the same endpoint (one more call): after the edit, a second call compares the result with the original and reports Check passed or The check found changes.

Edit image runs the edit (usually 10 to 40 seconds); Describe asks the model about the image instead. The result shows the image, any text the model returned, and under Prompt sent the prompt that was built.

Streaming voice

For an xAI endpoint, a Streaming Voice (xAI) card appears: choose a Voice, type text, press Connect, then Speak. Disconnect closes the connection.

What it doesn’t do

  • It keeps no conversation: each Send is one message and one answer.
  • Nothing typed here is saved as a prompt.
  • Image edit takes at most two images.