Skip to main content

Overview

Prompt Enhancement is a suite of AI-powered tools that optimize your prompts for better generation results. Whether you’re creating images, videos, or speech, these endpoints analyze your input and return enhanced versions with improved detail, structure, and effectiveness.

Available Boosters

BoosterEndpointUse Case
Image Prompt BoosterPOST /prompt/imageText-to-image generation
Video Prompt BoosterPOST /prompt/videoText/image-to-video generation
Speech Prompt BoosterPOST /prompt/speechText-to-speech synthesis
Image-to-Image BoosterPOST /prompt/image2imageImage transformation
Sample PromptsGET /prompts/samplesGenerate creative ideas

How It Works

1

Send your basic prompt

Submit your simple idea or concept to the appropriate booster endpoint.
2

AI enhancement

Our AI analyzes your input and enriches it with relevant details, style keywords, and quality modifiers.
3

Use enhanced prompt

Use the returned optimized prompt with any generation endpoint for improved results.

Example: Image Prompt Enhancement

Request

curl -X POST https://api.deapi.ai/api/v1/client/prompt/image \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a cat in space"
  }'

Response

{
  "prompt": "A majestic cat floating gracefully in the depths of outer space, surrounded by glittering stars and distant galaxies, cosmic nebula colors reflecting in its curious eyes, cinematic lighting, ultra-detailed fur texture, 8K resolution, artstation trending",
  "negative_prompt": "blurry, low quality, distorted, deformed"
}

Example: Video Prompt Enhancement

Request (with reference image)

curl -X POST https://api.deapi.ai/api/v1/client/prompt/video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "prompt=ocean waves at sunset" \
  -F "[email protected]"

Response

{
  "prompt": "Cinematic ocean waves crashing against rocky shores at golden hour, warm sunset colors reflecting on water surface, smooth camera pan following the wave motion, volumetric light rays through clouds, peaceful atmosphere, 4K quality, slow motion effect",
  "negative_prompt": "static, choppy, low resolution, artificial looking"
}

Example: Sample Prompts Generator

Request

curl -X GET "https://api.deapi.ai/api/v1/client/prompts/samples?type=text2image&topic=cyberpunk" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "type": "text2image",
    "prompt": "A neon-lit cyberpunk street market at midnight, holographic advertisements floating above crowded alleyways, rain-slicked pavement reflecting pink and blue lights, vendors selling exotic tech gadgets, steam rising from food stalls, ultra-detailed, cinematic composition"
  }
}

Pricing

Each booster has a corresponding price calculation endpoint. Costs are minimal compared to generation itself but can significantly improve output quality.
Always check costs with the price calculation endpoints before processing large batches. This helps you estimate total expenses accurately.

Best Practices

  1. Provide context — The more specific your input, the better the enhancement
  2. Use negative prompts — Most boosters also optimize your negative prompt
  3. Include reference images — For video and image-to-image boosters, reference images dramatically improve results
  4. Batch wisely — Calculate prices first when processing multiple prompts