Image for Reflex App: Image Gen
Back to Templates

Image Gen

Generate AI images using Replicate's API

Created by

Reflex

The following is an app that allows you to generate AI images. The current map uses replicate's api to generate images but can be easily modified to use other image generation services.

Setup

To run this app locally, install Reflex and run:

reflex init --template image_gen

To run the app, set the REPLICATE_API_TOKEN:

export REPLICATE_API_TOKEN=your_api_token_here

Then run:

pip install -r requirements.txt
reflex run

Note: You can get your replicate api token here.

Customizing the Inference

You can customize the app by modifying the generation.py file replacing replicate's api with that of other image generation services.

More Templates

View All

Image preview for app: LLamaIndex App

LLamaIndex App

A minimal chat app using LLamaIndex

by

Reflex

Image preview for app: Dashboard

Dashboard

Interactive dashboard with real-time data visualization

by

Reflex

Image preview for app: DALL-E

DALL-E

DALL-E is a Reflex app for generating images using OpenAI's API

by

Reflex

Newsletter

Get the latest updates and news about Reflex

$ pip install reflex

$ reflex init

$ reflex run

Need help? Learn how to use Reflex.

Built with Reflex