v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-25173140700.7 KB
Prompt

Optimize a prompt

Rewrite a draft prompt into a clearer, better-structured version using an LLM.

post/prompts/optimize

Query parameters

cookie_namestring nullable

Request body

promptstring required

Prompt to optimize.

temperaturenumber

Temperature for optimization, default is 0.0

Example request

{
  "prompt": "write a short email to my team about the deadline"
}

Response

Successful Response

contentstring required

The rewritten, optimized prompt text.

Example response

{
  "content": "Write a concise email to my team reminding them of the project deadline on Friday."
}