transform-generate-image-with-transloadit
Run
Use the image generate intent for quick image generation from a prompt.
npx -y @transloadit/node image generate \
--prompt 'A minimal product photo of a chameleon on white background' \
--output ./out.png
Run With OpenAI gpt-image-2
Use this when the user explicitly asks for openai/gpt-image-2, gpt-image-2, or OpenAI image
generation. Keep it opt-in for now; the CLI default remains google/nano-banana-2.
npx -y @transloadit/node image generate \
--model openai/gpt-image-2 \
--width 1024 \
--height 1024 \
--prompt 'A ceramic coffee mug on a white seamless studio background' \
--output ./out.png
Run With Input Images
You can also guide generation with one or more input images. Prefer meaningful filenames and refer to them in the prompt.
npx -y @transloadit/node image generate \
--input ./person1.jpg \
--input ./person2.jpg \
--input ./background.jpg \
--prompt 'Place person1.jpg feeding person2.jpg in front of background.jpg' \
--output ./out.png
Notes:
- The CLI defaults to
google/nano-banana-2. - Use
--model openai/gpt-image-2for OpenAI image generation. The oldergpt-image-2spelling is still accepted by API2 for backwards compatibility. - Repeated
--inputvalues are bundled into a single/image/generateassembly. - Prompt-only generation still works without any
--input. - Without
--output, prompt-only and multi-input runs default to the current working directory.
Debug If It Fails
npx -y @transloadit/node assemblies get <assemblyIdOrUrl> -j
Notes:
- Some generator/AI robots can be account-gated; if the assembly fails with capability or availability errors, switch models or confirm the feature is enabled for your account.
More from transloadit/skills
transform-encode-hls-video-with-transloadit
One-off HLS encoding (local video -> HLS renditions + playlist) using Transloadit via the `transloadit` CLI. Prefer builtin templates (`builtin/encode-hls-video@latest`) and download outputs locally via `-o`.
38integrate-uppy-transloadit-s3-uploading-to-nextjs
Add Uppy Dashboard + Transloadit uploads to a Next.js (App Router) app, with server-side signature generation and optional /s3/store export.
36transloadit
Main entry-point skill for Transloadit. Route to the right `integrate-*`, `transform-*`, or `docs-*` skill, and prefer executing via `npx -y @transloadit/node ...` (CLI) for deterministic behavior.
35docs-transloadit-robots
Offline lookup for Transloadit Robots and their parameter docs/examples via the `transloadit` CLI. Use to draft or validate `steps` JSON without guessing robot names/params.
35integrate-asset-delivery-with-transloadit-smartcdn-in-nextjs
Add Transloadit Smart CDN URL signing to a Next.js App Router project (server-side signing route + optional client demo page).
35transform-remove-background-with-transloadit
One-off background removal (local image -> transparent PNG) using the official `@transloadit/node` CLI. Use a minimal `/image/bgremove` steps JSON and download the result to an explicit `.png` path via `-o`.
27