LogoUnreal AI

Generate an Image

End-to-end demo of calling the /v1/images/generations endpoint.

Generate Images with AI

Create stunning AI-generated images from text descriptions using Unreal's image generation API.

Quick Example

curl -X POST https://openai.ideomind.org/v1/images/generations \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a futuristic city floating in the clouds, painted in pastel tones",
    "model": "playground-v2-5-1024px-aesthetic",
    "seed": 3
  }'

The API will return a base64-encoded image that you can decode and use directly in your application:

{
  "data": [
    { 
      "b64_json": "<base-64 image data>" 
    }
  ]
}
AI-generated futuristic city

Request Parameters

ParameterTypeDescription
promptstringRequired. Text description of the image to generate
modelstringModel to use (default: playground-v2-5-1024px-aesthetic)
seedintegerRandom seed for reproducible results (optional)
nintegerNumber of images to generate (default: 1, max: 4)

Advanced Usage

Multiple Images

Generate multiple variations with a single request:

curl -X POST https://openai.ideomind.org/v1/images/generations \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a futuristic city floating in the clouds, painted in pastel tones",
    "n": 2
  }'

Customizing Output

Try adjusting these parameters for different results:

  • Use longer, more detailed prompts for better precision
  • Experiment with different seeds for varied outputs
  • Try different models for different artistic styles

Need help? Join our community on Discord or Telegram