---
layout: playground.njk
title: Prompt API playground
shorttitle: Prompt API
description: Web API to prompt the browser-provided language model. For more information, check out the API documentation .
stylesheet: prompt-api.css
script: prompt-api.js
permalink: prompt-api/
---
User prompt
The user prompt is the text that you want to send to the language model. It can be a question, a statement, or
any other type of input that you want the model to respond to. The model will generate a response based on this
prompt.
System prompt
The system prompt is a set of instructions or guidelines that you want the language model to follow when
generating a response. This can include information about the desired tone, style, or content of the response.
The model will use this prompt to generate a response that aligns with your instructions.
Response constraint schema (load an example )
A JSON schema that's used to constrain the model's response.
More settings
N-shot prompt instructions (load an example )
N-shot prompting is a technique used to provide the model with a few examples of the desired input-output pairs.
Prompt
Stop