---
title: How to Generate AI Images
description: "Step-by-step guide to generating AI images in LightSync Pro."
url: "https://lightsyncpro.com/docs/how-to-generate-ai-images/"
updated: "2026-06-05"
category: AI Image Generation
---

# How to Generate AI Images

## Steps

1. Go to **LightSync Pro → AI Generate**
2. Click **Connect OpenRouter** and sign in (first time only)
3. Type your image prompt in the text field
4. Select an AI model from the dropdown (Flux, DALL-E, Gemini, Stable Diffusion, Recraft, Ideogram, and more)
5. Optionally select a reference image from your Media Library
6. Review the cost badge (shows estimated cost before generating)
7. Click **Generate**

## What Happens Next

The generated image is automatically optimized (WebP/AVIF if enabled), named using your AI naming pattern, and saved to your WordPress Media Library -- the same pipeline as every other cloud source.

## Requirements

- OpenRouter account (free to create at [openrouter.ai](https://openrouter.ai))
- Credits on your OpenRouter account (for paid models -- many models are free)
