Skip to main content
Generate an image based on the given text by automatically employing AI models like Flux, Stable Diffusion, DALL·E, and other top models.

Quick Start

Javascript

Specify the image aspect ratio

You can specify different aspect ratios for your generated images. Here are the supported ratios and their common use cases:
Aspect RatioCommon Use Cases
1:1Social media posts, profile pictures
16:9YouTube thumbnails, presentations
21:9Ultrawide displays, cinematic shots
3:2Digital photography, postcards
2:3Mobile phone wallpapers, book covers
4:5Instagram portraits
5:4Photo prints, desktop wallpapers
3:4Digital displays, e-reader content
4:3Traditional computer displays
9:16Mobile-first content, stories
9:21Vertical ultrawide displays

Writing Effective Prompts

  • Be Specific: Instead of “a cat”, try “a fluffy orange tabby cat sleeping on a windowsill in soft morning light”
  • Include Details: Mention style, lighting, perspective, and mood
  • Use Artistic References: Include terms like “digital art”, “oil painting”, or “photography”
  • Avoid Negatives: Instead of saying what you don’t want, focus on what you do want

Example

Generate an Artistic Portrait
Find more information on Image Generation API here