Improve a prompt
Create a new-and-improved prompt guided by feedback
The prompt tools APIs are in a closed research preview. Request to join the closed research preview.
Before you begin
The prompt tools are a set of APIs to generate and improve prompts. Unlike our other APIs, this is an experimental API: you’ll need to request access, and it doesn’t have the same level of commitment to long-term support as other APIs.
These APIs are similar to what’s available in the Anthropic Workbench, and are intented for use by other prompt engineering platforms and playgrounds.
Getting started with the prompt improver
To use the prompt generation API, you’ll need to:
- Have joined the closed research preview for the prompt tools APIs
- Use the API directly, rather than the SDK
- Add the beta header
prompt-tools-2025-04-02
This API is not available in the SDK
Improve a prompt
Headers
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2
or specify the header multiple times for each beta.
Body
Response
Successful Response
The response is of type object
.