---
title: "Expand a short prompt into a detailed one"
method: POST
path: "/v1/prompts/enhance"
tags: ["prompt"]
---

# Expand a short prompt into a detailed one

`POST /v1/prompts/enhance`

## Request

- Base URL: `https://external.api.recraft.ai`
- URL: `https://external.api.recraft.ai/v1/prompts/enhance`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/recraft/apis/recraft-ai-external-api/docs/v1/prompts/enhance/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `prompt` string, required

## Response `200`

OK

- object
  - `enhanced_prompt` string, required

## Other responses

- `4XX`: Request failed. The body is plain text (for example 401 `request unauthorized`) or JSON, so read it as text before parsing.
- `5XX`: Request failed. The body is plain text (for example 401 `request unauthorized`) or JSON, so read it as text before parsing.

---

[API](https://skmtc.dev/recraft/apis/recraft-ai-external-api.md) - [All operations](https://skmtc.dev/recraft/apis/recraft-ai-external-api/llms.txt) - [OpenAPI document](https://skmtc.dev/recraft/apis/recraft-ai-external-api/revisions/2180aa45c034?raw)
