Reflex Cloud - Fast, secure & scalable hosting. One command to deploy.

Image for Reflex App: ai_image_gen
Back to Templates

ai_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:

To run the app, set the REPLICATE_API_TOKEN:

Then 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: reflex-llamaindex-template
reflex-llamaindex-template

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: dalle
dalle

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