SJinn Image Generation
Use this skill when the user wants to create an image, transform an image, use a reference image, or download an image result through SJinn.
Prerequisites
Before generating, quickly verify the CLI and login:
sjinn --version
sjinn auth whoami
If either command fails, use sjinn-setup first.
Workflow
- Choose a model and options. For model-specific options, see
references/models.md. - Prefer JSON output so results are easy to parse.
- Use
--asyncwhen the user wants a task ID immediately. - Use
--download [path]only when the user asks to save the result locally.
Commands
Text to image:
sjinn image generate --prompt "a clean product render of a glass lamp" --model gpt-image-2 --aspect 1:1 --json
Image variation from a URL:
sjinn image generate --prompt "make this product photo more cinematic" --image "https://example.com/input.png" --model nano-banana --json
Image variation from a local file:
sjinn image generate --prompt "turn this sketch into a polished concept render" --image "./sketch.png" --model seedream-v4 --json
Async:
sjinn image generate --prompt "a futuristic workspace at sunrise" --model nano-banana-2 --resolution 4K --async --json
Output Handling
On success, return the task ID, primary URL, any additional URLs, model, and elapsed time. If status is created, tell the user to query the task with sjinn-task-status.
On error, summarize the CLI error plainly and suggest sjinn-setup only when the error indicates the CLI is missing or unauthenticated.