> ## Documentation Index
> Fetch the complete documentation index at: https://vlyai-1c28d863.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Image generator

> User prompts → DALL-E or Replicate → stored gallery. ~30 minutes.

A user types a prompt, picks a model, generates an image, sees it stored in their personal gallery.

**Time:** \~30 min. **Integrations:** [OpenAI](/integrations/openai) (DALL-E) or [Replicate](/integrations/replicate).

<Note>
  Full walkthrough being written.
</Note>

## Foundation prompt

```text theme={null}
An image generator. User types a prompt; picks model (DALL-E 3 or Replicate flux);
clicks Generate. Image saved to their gallery. Gallery view shows thumbnails;
click for full size; download button.

Use OpenAI's DALL-E 3 by default; allow switching to Replicate's flux models.
Store generated images in Convex file storage.
```

## Related

<CardGroup cols={3}>
  <Card title="OpenAI" icon="sparkles" href="/integrations/openai">
    DALL-E.
  </Card>

  <Card title="Replicate" icon="brain" href="/integrations/replicate">
    Open-source models.
  </Card>

  <Card title="File storage" icon="hard-drive" href="/convex/file-storage">
    Storing the results.
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.