imggenpro
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
main.tsx
https://andiebuk--746dda06278311f0b46e569c3dd06744.web.val.run
Example usage:
https://your-val.val.run?image=a%20beautiful%20sunset (uses default 1024x768)
https://your-val.val.run?image=a%20beautiful%20sunset&width=512&height=512 (uses 512x512)
https://your-val.val.run?image=a%20beautiful%20sunset&width=4096&height=4096 (will cap at 2048x2048)
This uses together.ai api and generates the image using the black-forest-labs/FLUX.1-schnell model which is very fast.
You will need to set the environment var TOGETHER_API_KEY to your key.
I built this entirely with Townie AI and most of it was done with the Claude 3.5 Haiku which I find for most projects get things right faster than sonnet.