---
title: "Rewrite a prompt for a model"
method: POST
path: "/api/v2/prompts/enhance"
tags: ["Prompts"]
---

# Rewrite a prompt for a model

`POST /api/v2/prompts/enhance`

## Request

- Base URL: `https://azurade.com`
- URL: `https://azurade.com/api/v2/prompts/enhance`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Expands a short prompt into a detailed one, using the target model's own prompting guide when a model is given. Costs 1 credit. The same rewrite is free when requested inside a generation with enhance_prompt: true.

## Request body

- EnhanceRequest
  - `model` 'flux-dev' | 'flux-kontext-pro' | 'gpt-image-2' | 'gpt-image-2.5' | 'hunyuan' | 'imagen-4-ultra' | 'kling-3.0' | 'kling-3.0-turbo' | 'motion-control' | 'nano-banana' | 'nano-banana-2' | 'nano-banana-2-lite' | 'nano-banana-2.1' | 'nano-banana-pro' | 'qwen-image' | 'qwen-image-2.1' | 'qwen-image-edit' | 'qwen-image-edit-plus' | 'qwen-image-edit-plus-lora' | 'qwen-image-layered' | 'recraft-crisp-upscale' | 'remove-background' | 'restore-image' | 'seedance-2' | 'seedance-2-mini' | 'seedance-2.5' | 'seedance-pro' | 'seedream-3' | 'seedream-4' | 'seedream-4.5' | 'seedream-5-flash' | 'seedream-5-lite' | 'seedream-5-pro' | 'veo2' | 'veo3' | 'veo3-fast' | 'veo3.1' | 'vidu-q4' | 'vidu-q4-reference' | 'wan-2.2' | 'wan-2.6' | 'wan-2.7' | 'wan-2.7-image' | 'wan-3.0' | 'wan-3.0-prime': Use this model's prompting guide; sets type
  - `prompt` string, required
  - `type` 'image' | 'video': image when omitted; ignored when model is set

## Response `200`

OK

- EnhanceResult
  - `balance` number: Your credits after the charge
  - `cost` number
  - `model` string
  - `prompt` string
  - `type` string

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid credentials
- `402`: Insufficient credits
- `503`: A dependency is unavailable; retry later

---

[API](https://skmtc.dev/azurade/apis/azurade-ai-api.md) · [All operations](https://skmtc.dev/azurade/apis/azurade-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/azurade/apis/azurade-ai-api/revisions/0530fd2c8b63?raw)
