Readme

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.

Code
HTTP
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!