Endpoint
input.enhance_prompt to true in Create Prediction.
The rewrite keeps the language of your prompt.
It also keeps reference tokens such as @Image1, so they still point at the same inputs.
A model supports prompt enhancement when GET /v1/models/{slug} returns a prompt_instructions value.
For a model where prompt_instructions is null, this endpoint returns 422.
Authentication
Pass a standard API key as a Bearer token:Path Parameters
Request Body
Code Example
cURL
Response
Response Fields
Pricing
Each call costs$0.01.
It appears in Run History as the model eachlabs-prompt-enhancer.
A failed enhancement is not charged.
After a 504, the run can still finish later. If it does, it is charged and shows in Run History.
Error Responses
A
502 or 504 response names the run in details.execution_id: