Skip to main content

AI-powered prompt enhancement

Transform simple text descriptions into optimized prompts for AI image and video generation, improving output quality automatically.
Improve Prompt is an AI-powered prompt enhancement API that transforms basic text descriptions into detailed, optimized prompts for AI generation. Submit a simple prompt like “a cat” and receive an enhanced version with specific details about lighting, composition, style, and atmosphere. The API supports both image and video generation prompts, with multi-language output capabilities.

Key capabilities

  • Dual-mode enhancement: Optimize prompts for either image or video generation with mode-specific improvements
  • Multi-language support: Output enhanced prompts in any language using ISO 639-1 codes (e.g., en, es, fr, de)
  • Creative generation: Submit an empty prompt to generate creative ideas from scratch
  • Maximum prompt length: Input prompts up to 2,500 characters for comprehensive enhancement
  • Context-aware improvements: Adds relevant details for lighting, composition, style, mood, and technical parameters
  • Async processing: Webhook notifications or polling for task completion

Use cases

  • Text-to-image workflows: Enhance prompts before sending to Flux, Mystic, or other image generation APIs
  • Video generation preparation: Optimize prompts for Kling, WAN, or other video generation models
  • Creative brainstorming: Generate detailed creative prompts from minimal input or ideas
  • Non-English content creation: Create prompts in your preferred language for localized projects
  • Batch processing pipelines: Automate prompt enhancement in production workflows
  • Quality improvement: Consistently achieve better AI generation results with optimized prompts

Enhance prompts with Improve Prompt

Submit a text prompt with the target generation type (image or video). The service returns a task ID for async polling or webhook notification.

Parameters

ParameterTypeRequiredDefaultDescription
promptstringYes-Text prompt to improve for AI generation. Can be empty to generate a creative prompt. Maximum length: 2,500 characters.
typestringYes-Type of generation to optimize for: "image" or "video"
languagestringNo"en"Language code for the improved prompt (ISO 639-1 format, e.g., "en", "es", "fr")
webhook_urlstringNo-URL for task completion notification

Frequently Asked Questions

Improve Prompt is an AI-powered API that enhances basic text descriptions into detailed, optimized prompts for AI image or video generation. You submit a simple prompt (e.g., “a sunset”) with the target type (image or video), receive a task ID immediately, then poll for results or receive a webhook notification. The output is an enhanced prompt with added details about composition, lighting, style, and technical parameters.
The type parameter determines how the prompt is optimized. For "image" prompts, the API adds details about composition, lighting, color palette, and visual style. For "video" prompts, it includes motion descriptions, camera movements, temporal flow, and cinematic elements that help video generation models produce better results.
Yes. Use the language parameter with any ISO 639-1 language code (e.g., "es" for Spanish, "fr" for French, "de" for German, "ja" for Japanese). The enhanced prompt will be returned in your specified language. Default is English ("en").
When you submit an empty prompt, the API generates a creative prompt from scratch. This is useful for brainstorming or when you want AI-generated creative ideas for image or video generation.
Input prompts can be up to 2,500 characters. This allows you to provide detailed context that the API will further enhance and optimize.
Prompt enhancement typically completes within 2-5 seconds. For production workflows, use webhooks instead of polling to receive immediate notification when tasks complete.
Rate limits vary by subscription tier. See Rate Limits for current limits.
See the Pricing page for current rates and subscription options.

Best practices

  • Be specific: Even simple prompts benefit from context - include subject, action, or mood hints
  • Choose the right type: Use "image" for static visuals and "video" for motion content
  • Language matching: Set the language parameter to match your target audience or downstream model preferences
  • Chain with generation: Pipe enhanced prompts directly to Flux, Mystic, Kling, or other generation APIs
  • Production integration: Use webhooks instead of polling for scalable applications
  • Error handling: Implement retry logic with exponential backoff for 503 errors
  • Freepik Mystic: Generate photorealistic images in 1K/2K/4K with LoRA styles
  • Flux Pro: High-quality text-to-image generation with Flux Pro
  • Kling 2.6 Pro: Generate videos from images with Kling
  • Image to Prompt: Reverse process - generate prompts from images