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
| Booster | Endpoint | Use Case |
|---|
| Image Prompt Booster | POST /prompt/image | Text-to-image generation |
| Video Prompt Booster | POST /prompt/video | Text/image-to-video generation |
| Speech Prompt Booster | POST /prompt/speech | Text-to-speech synthesis |
| Image-to-Image Booster | POST /prompt/image2image | Image transformation |
| Sample Prompts | GET /prompts/samples | Generate creative ideas |
How It Works
Send your basic prompt
Submit your simple idea or concept to the appropriate booster endpoint.
AI enhancement
Our AI analyzes your input and enriches it with relevant details, style keywords, and quality modifiers.
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
- Provide context — The more specific your input, the better the enhancement
- Use negative prompts — Most boosters also optimize your negative prompt
- Include reference images — For video and image-to-image boosters, reference images dramatically improve results
- Batch wisely — Calculate prices first when processing multiple prompts