> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deapi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Prompt Enhancement (Deprecated)

> The v1 prompt boosters are deprecated. Use the unified v2 Prompt Booster instead.

<Warning>
  **The v1 prompt boosters are deprecated and no longer documented.** The v1 booster endpoints (`/prompt/image`, `/prompt/video`, `/prompt/speech`, `/prompt/image2image`, `/prompts/samples`) have been replaced by a single unified endpoint in v2.

  Use the [**v2 Prompt Booster**](https://docs.deapi.ai/api/v2/prompt-enhancement/prompt-booster) — `POST /api/v2/prompts/enhancements`.
</Warning>

## How it works

Prompt Enhancement takes a basic idea and returns an optimized prompt — enriched with relevant detail, style keywords, and quality modifiers — that you then pass to a generation endpoint for better results.

In v2 this is a single endpoint for every booster type: you select the booster with the `type` field (e.g. `images.generations`, `videos.generations`, `audio.speech`, `images.edits`) and the target model with `model_slug`, instead of calling a separate per-type endpoint.

## Migrating from v1

| v1 endpoint                | v2 equivalent                                                       |
| -------------------------- | ------------------------------------------------------------------- |
| `POST /prompt/image`       | `POST /api/v2/prompts/enhancements` with `type: images.generations` |
| `POST /prompt/video`       | `POST /api/v2/prompts/enhancements` with `type: videos.generations` |
| `POST /prompt/speech`      | `POST /api/v2/prompts/enhancements` with `type: audio.speech`       |
| `POST /prompt/image2image` | `POST /api/v2/prompts/enhancements` with `type: images.edits`       |

See the [v2 Prompt Enhancement overview](/api/v2/prompt-enhancement/overview) for the full list of `type` values, and the [Prompt Booster](/api/v2/prompt-enhancement/prompt-booster) page for the request/response schema.
