← Code

imagine.js logo

await Imagine("a red rose") returns an image. The same call worked with a local Stable Diffusion server or with hosted models on Replicate and Stability AI, and it could use a language model to write a better image prompt first.

Part of ai.js, which put my AI libraries behind one toolkit.