All tools
OpenAIO

by OpenAI

Create a response

Generates text, or JSON that follows a schema you pass, from a prompt, optionally using tools such as web search.

View on GitHub
Updated Sep 26, 2026Available asCLIAPI

Description

Draft copy with a plain prompt. To classify records, pass a JSON schema in `text.format` (structured outputs) and read the label from the returned JSON.

create-response.md

Create a response

Generates text, or JSON that follows a schema you pass, from a prompt, optionally using tools such as web search.

Draft copy with a plain prompt. To classify records, pass a JSON schema in text.format (structured outputs) and read the label from the returned JSON.

Set up

Use the first option your agent supports.

CLI (official)

Install the command, then confirm it runs.

brew install openai/tools/openai
openai --version

Run openai responses create.

Set $OPENAI_API_KEY in your environment first (get a key: https://platform.openai.com/api-keys).

API (official)

Before doing anything else, make one read-only call to confirm access.

Rules

  • Ask the user before anything that sends messages, costs money, or changes data.
  • Never print API keys.

Built from these files in the repository

The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.

Ways in

RouteSourceCallRequiredDocs
CLIOfficialopenai responses createAPI key in $OPENAI_API_KEYDocs
APIOfficialPOST /responsesAPI key in $OPENAI_API_KEYDocs

Workflows using Create a response

No workflows yet
No published workflow uses Create a response yet.