@drawcall/generate
v1.0.0
Published
Generate speech, images, video, 3D models, PBR materials and structured data, cached in your project by vitecache
Readme
@drawcall/generate
AI-generated speech, images, video, 3D models, PBR materials, and structured data for your app, through one interface to specialist models.
In a Vite app, cached loaders generate each file once on your machine and keep it in your project with vitecache:
import { CachedImageLoader, CachedMaterialLoader } from "@drawcall/generate";
const poster = await new CachedImageLoader().loadAsync({ prompt: "A sunlit forest clearing" });
const stone = await new CachedMaterialLoader().loadAsync({ prompt: "Mossy stone" });Add vitecache() from vitecache/vite to your Vite plugins, and sign in once with npx drawcall auth login.
From a terminal, npx drawcall generate image "A sunlit forest clearing" saves a new file. On a server, createClient() runs a new generation on every call.
Coding agents can read the package's generate skill, in skills/generate.
