{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "mattn-tensai--generate-images-offline-in-go",
 "repo": "mattn/tensai",
 "repo_url": "https://github.com/mattn/tensai",
 "repo_slug": "mattn-tensai",
 "title": "Generate images locally with Tensai image",
 "page_title": "How to generate images locally with Tensai image with Tensai",
 "summary": "Render a 256x256 picture from a text prompt using Qwen-Image-2.1 in pure Go.",
 "who": "A creator or developer who wants text-to-image output on a laptop without a cloud image service.",
 "problem": "Image generation models usually need a Python stack and a dedicated GPU.",
 "outcome": "A generated image file cached beside the checkpoint, produced by a single command.",
 "steps": [
  "Clone the repository and build or install the Tensai command from its root. (inferred, check the README)",
  "Make sure enough disk space is free for the checkpoint, which the README sizes at 7GB at eight bits or 3.5GB at four bits.",
  "Run `tensai image \"a calico cat asleep on a stack of books\"`",
  "Open the cached result and confirm it shows the requested subject."
 ],
 "agent_prompt": "In the mattn/tensai repository, run tensai image with the prompt \"a calico cat asleep on a stack of books\". Report the output file path and the elapsed time. Verify that the image file exists and that the run took under four minutes on a laptop-class machine, as the README claims.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "120 minutes",
 "basis": "readme",
 "caveat": "The README timing of under four minutes for a 256x256 picture is a claim about a laptop, so actual speed will depend on the machine and the checkpoint download.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "go",
 "requirements": [
  "Go toolchain (Go 1.26 or 1.27 is needed only for the GOEXPERIMENT=simd build)",
  "git to clone the repository",
  "Disk space for model checkpoints when using the image, audio, or embedding commands"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/mattn-tensai/generate-images-offline-in-go/",
 "md": "https://dedupedai.com/use-cases/mattn-tensai/generate-images-offline-in-go/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/mattn-tensai--generate-images-offline-in-go.json",
 "api_version": "v1"
}
