Skip to main content

Endpoint

Send a short prompt and the slug of the model you plan to run. each::labs rewrites the prompt with that model’s prompt instructions and returns the rewrite. It does not run the model. To run it, send the rewrite as the prompt in Create Prediction. To rewrite and run in one request, set 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:
Last modified on December 3, 2026