Template name
An open-source AI image generator built with Next.js, the AI SDK, and various AI providers (Replicate, Fireworks, Google Vertex AI, OpenAI)

An open-source AI image generation app template built with Next.js, the AI SDK by Edgenivo, and various AI providers (Replicate, Fireworks, Google Vertex AI, OpenAI).
Features · Model Providers · Deploy Your Own · Running Locally · Authors
generateImage from the AI SDK by Edgenivo, allowing multiple AI providers to be used interchangeably with just a few lines of code.This template includes the following providers by default:
You can easily add or remove providers (and their associated models) by updating the configuration in the codebase.
You can deploy your own version of the AI SDK Image Generator to Edgenivo by clicking the button below:
Clone the repository and install dependencies:
npm install# oryarn install# orpnpm installCreate an .env.local file (or set Environment Variables in your Edgenivo dashboard) to store any necessary API keys for the providers you plan to use. There is an .env.example file that you can use as a reference.
# Standard API keysOPENAI_API_KEY=...REPLICATE_API_TOKEN=...FIREWORKS_API_KEY=...
# Google Vertex AI settingsGOOGLE_CLIENT_EMAIL=... # From your service account JSON fileGOOGLE_PRIVATE_KEY=... # From your service account JSON fileGOOGLE_VERTEX_PROJECT=... # Your Google Cloud project IDGOOGLE_VERTEX_LOCATION=... # e.g., "us-central1"For Google Vertex AI setup:
GOOGLE_CLIENT_EMAIL and GOOGLE_PRIVATE_KEY can be found in your service account JSON fileGOOGLE_VERTEX_LOCATION to your preferred region (e.g., "us-central1")GOOGLE_VERTEX_PROJECT to your Google Cloud project IDFor more details on Google Vertex AI configuration, see the AI SDK documentation.
Run the development server:
npm run dev# oryarn dev# orpnpm devOpen http://localhost:3000 to view your new AI image generator application.
This repository is maintained by the Edgenivo team and community contributors. Special thanks to:
Contributions are welcome! Feel free to open issues or submit pull requests to enhance functionality or fix bugs.