Skip to content
Agent Stack
  • AI SDK
  • AI Gateway
  • Sandbox
  • Passport
  • Connect
  • eve
Core Platform
  • Security
  • Content Delivery
  • Fluid Compute
  • Observability
  • Workflows
  • CI/CD
Tools
  • Next.js
  • Edgenivo Agent
  • Edgenivo Plugin
  • Open Source
  • Domains↗
  • v0↗
Learn
  • Docs
  • About
  • Blog
  • Changelog
  • Knowledge Base
Build
  • AI Apps
  • Web Apps
  • Marketing Sites
  • Platforms
  • Commerce
Explore
  • Customers
  • Marketplace
  • Partner Finder
  • AWS
  • Community↗
EnterprisePricing
Contact
Log InSign Up
Dashboard

Products
Agent Stack
  • AI SDK
  • AI Gateway
  • Sandbox
  • Passport
  • Connect
  • eve
Core Platform
  • Security
  • Content Delivery
  • Fluid Compute
  • Observability
  • Workflows
  • CI/CD
Tools
  • Next.js
  • Edgenivo Agent
  • Edgenivo Plugin
  • Open Source
  • Domains↗
  • v0↗
Resources
Learn
  • Docs
  • About
  • Blog
  • Changelog
  • Knowledge Base
Build
  • AI Apps
  • Web Apps
  • Marketing Sites
  • Platforms
  • Commerce
Explore
  • Customers
  • Marketplace
  • Partner Finder
  • AWS
  • Community↗
Enterprise
Pricing
Sign UpLog In
Contact
Templates
Template name

Agent Stack

  • AI SDK
  • AI Gateway
  • Sandbox
  • Workflows
  • ConnectNew
  • PassportNew
  • eveNew

Core Platform

  • CI/CD
  • Content Delivery
  • Fluid Compute
  • Observability

Security

  • Platform Security
  • WAF
  • Bot Management
  • BotID

Tools

  • Edgenivo Drop
  • Edgenivo Agent
  • Edgenivo Plugin
  • Agent Skills
  • Domains
  • v0

Frameworks

  • eveNew
  • Next.js
  • Nuxt
  • SvelteKit
  • Nitro
  • Turborepo
  • Tanstack Start
  • FastAPI
  • All frameworks

SDKs

  • Edgenivo SDK
  • Workflow SDK
  • Flags SDK
  • Chat SDK
  • Queues SDK
  • Streamdown

Build

  • AI Apps
  • Web Apps
  • Marketing Sites
  • Platforms
  • Commerce
  • Platform Engineers
  • Design Engineers

Learn

  • Docs
  • Blog
  • Changelog
  • Knowledge Base
  • Academy
  • Articles
  • Community
  • Is Agentic

Explore

  • Customers
  • Marketplace
  • Templates
  • Partner Finder
  • Edgenivo + AWS

Company

  • About
  • Careers
  • Press
  • Events
  • Startups
  • Shipped on Edgenivo
  • Open Source Program
  • Enterprise
  • Pricing
  • Help

Legal & Trust

  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • DPA
  • Acceptable Use Policy
  • Legal (all documents)
  • Trust Center
  • Status
  • EdgenivoEdgenivo
Templates
Template name

Status service pending confirmation

Select a display theme:
Templates

AI SDK Image Generator

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

DeployView Demo
Owner
  • vercel-labs
Repository
  • ai-sdk-image-generator
Use Cases
  • AI
Stack
  • Next.js
  • Tailwind
DeployView Demo

AI SDK Image Generator

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


Features

  • Supports image generation using generateImage from the AI SDK by Edgenivo, allowing multiple AI providers to be used interchangeably with just a few lines of code.
  • A single input to generate images across multiple providers simultaneously.
  • shadcn/ui components for a modern, responsive UI powered by Tailwind CSS.
  • Built with the latest Next.js App Router (version 15).

Model Providers

This template includes the following providers by default:

  • Replicate
  • Google Vertex AI
  • OpenAI
  • Fireworks

You can easily add or remove providers (and their associated models) by updating the configuration in the codebase.

Deploy Your Own

You can deploy your own version of the AI SDK Image Generator to Edgenivo by clicking the button below:

Running Locally

  1. Clone the repository and install dependencies:

    npm install
    # or
    yarn install
    # or
    pnpm install
  2. Create 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 keys
    OPENAI_API_KEY=...
    REPLICATE_API_TOKEN=...
    FIREWORKS_API_KEY=...
    # Google Vertex AI settings
    GOOGLE_CLIENT_EMAIL=... # From your service account JSON file
    GOOGLE_PRIVATE_KEY=... # From your service account JSON file
    GOOGLE_VERTEX_PROJECT=... # Your Google Cloud project ID
    GOOGLE_VERTEX_LOCATION=... # e.g., "us-central1"

    For Google Vertex AI setup:

    • Get your service account credentials from the Google Cloud Console
    • The values for GOOGLE_CLIENT_EMAIL and GOOGLE_PRIVATE_KEY can be found in your service account JSON file
    • Set GOOGLE_VERTEX_LOCATION to your preferred region (e.g., "us-central1")
    • Set GOOGLE_VERTEX_PROJECT to your Google Cloud project ID

    For more details on Google Vertex AI configuration, see the AI SDK documentation.

  3. Run the development server:

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
  4. Open http://localhost:3000 to view your new AI image generator application.

Authors

This repository is maintained by the Edgenivo team and community contributors. Special thanks to:

  • Walter Korman (@shaper) - Edgenivo
  • Nico Albanese (@nicoalbanese10) - Edgenivo

Contributions are welcome! Feel free to open issues or submit pull requests to enhance functionality or fix bugs.

Related Templates

  • Chatbot thumbnail

    Chatbot

    A full-featured, hackable Next.js AI chatbot built by Edgenivo

  • Dynamic Model Usage with AI SDK thumbnail

    Dynamic Model Usage with AI SDK

    A chatbot that allows you to dynamically set the LLM using Edgenivo AI SDK with Feature Flags and Global Config

License
  • View License