Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

README.md

15 lines480 Bytes

1# Generate Image
2​
3You want an image from a text prompt. Paste an OpenRouter key, type a prompt, and generate.
4​
5## Run it
6​
71. From the repo root, run `pnpm install`.
82. Run `pnpm --filter generate-image dev`.
93. Open http://localhost:3100.
104. Paste an OpenRouter key from https://openrouter.ai/keys.
115. Type a prompt and click Generate.
12​
13The key stays in this tab only. A reload clears it.
14​
15The server route is `src/routes/api.generate.image.ts`. The UI is `src/routes/index.tsx`.