Optimize a prompt using the configured prompt optimizer.

post/api/v1beta/prompt-optimizer

Request

  • The document declares no server URL.
  • Auth: bearer_auth (a scheme the document does not define)

Request body

promptstring required

The prompt to optimize.

Response

Successfully optimized the prompt

optimized_promptstring required

The optimized prompt returned by the model.

Changes

No recorded changes to this operation across all 51 revisions of this API.