gitwtfhub

wtf is ai-image-gen?

josje96/ai-image-gen — explained in plain English

Analysis updated 2026-05-18

0VueAudience · vibe coderComplexity · 2/5LicenseSetup · easy

TL;DR

A small local web app where you paste your own SiliconFlow API key and generate AI images or videos from a text prompt, with no accounts or backend server.

Mindmap

mindmap
  root((ai-image-gen))
    What it does
      Text to image
      Text to video
      Bring your own API key
    Tech stack
      Vue 3
      Vite
      Bun
    Use cases
      Quick local image gen
      Text to video experiments
      Forkable UI for other providers
    Audience
      Hobbyist tinkerers
      SiliconFlow users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Generate images locally from a text prompt using models like FLUX.1 or SD 3.5 Large.

REASON 2

Generate short videos from text or from a source image using Wan 2.2.

REASON 3

Fork the project to point it at a different AI provider by editing the model config files.

What's in the stack?

VueViteBunJavaScript

How it stacks up

josje96/ai-image-gencleanmachine1/homerfanux/bytebase.com
Stars0
LanguageVueVueVue
Last pushed2022-10-302023-02-01
MaintenanceDormantDormant
Setup difficultyeasyeasymoderate
Complexity2/52/52/5
Audiencevibe coderops devopsdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Requires your own SiliconFlow API key, video renders take a few minutes to complete.

Use, modify, and distribute freely, including commercially, as long as you keep the copyright notice.

Wtf does this do

ai-image-gen is a small, local tool for generating images and videos using the SiliconFlow API. You bring your own SiliconFlow API key, pick a model, type a prompt, and it makes the image or video for you. There are no accounts to create and no backend server, everything runs on your own machine in the browser, and your API key never leaves it. The project is aimed at people who want a local, no-login, easily modified interface rather than SiliconFlow's own web playground, which is fine for a few quick one-off generations but not built for tinkering or forking. It is built with Vue 3 and Vite, and you run it with Bun. To get started you copy a provided .env.example file to .env and either paste your API key into the app once it is running, which saves it in your browser local storage, or set it directly in the .env file so it is already filled in when you open the app. Because browsers cannot call the SiliconFlow API directly due to missing CORS headers, the app uses Vite development proxy to forward your requests along with your key. SiliconFlow runs two separate platforms, an international one and a China based one, each with its own accounts and keys, so a key issued for one will be rejected by the other. The tool offers two modes you can switch between. Image mode works right away and lets you choose from models such as Kolors, FLUX.1, Qwen-Image, and SD 3.5 Large, along with settings like size, batch count, steps, guidance, and seed. Video mode is slower: it submits a job to generate a short video from text or from a source image, then checks back until the render is ready and plays it once finished. Both modes let you paste in any other SiliconFlow model id instead of the built-in choices. The project is released under the MIT license.

Yoink these prompts

Prompt 1
Help me set up ai-image-gen with Bun and create a .env file with my SiliconFlow API key.
Prompt 2
Explain the difference between the international and China SiliconFlow platforms and how to switch this app between them.
Prompt 3
Walk me through generating my first image and then my first text-to-video render in ai-image-gen.
Prompt 4
Show me how to add a custom SiliconFlow model id in the image and video mode toggles.

Frequently asked questions

wtf is ai-image-gen?

A small local web app where you paste your own SiliconFlow API key and generate AI images or videos from a text prompt, with no accounts or backend server.

What language is ai-image-gen written in?

Mainly Vue. The stack also includes Vue, Vite, Bun.

What license does ai-image-gen use?

Use, modify, and distribute freely, including commercially, as long as you keep the copyright notice.

How hard is ai-image-gen to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is ai-image-gen for?

Mainly vibe coder.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.