Generate images through the imini image generation API using a local API key from environment variables. This skill supports text-to-image and image-guided generation with public image URLs, asks the user to choose a model when they did not specify one, then polls the async task until final images are ready and saved into the workspace.
Use this skill when:
Do not use this skill when:
The script reads configuration from environment variables. In OpenClaw, declare IMINI_IMAGE_API_KEY in the skill config so the registry and runtime requirements stay aligned.
IMINI_IMAGE_API_KEY (required)IMINI_IMAGE_API_BASE_URL (optional, default https://openapi.imini.ai/imini/router)IMINI_IMAGE_TIMEOUT (optional, default 300)IMINI_IMAGE_POLL_INTERVAL (optional, default 2)Do not put real keys into this skill directory, SKILL.md, or command arguments. Setup details live in references/config.md.
modelaspect_ratiostyle instead of default assetWhich model do you want to use?
1. google/nano-banana: faster and lower cost for standard image generation
2. google/nano-banana-pro: higher quality and higher resolution support
3. google/nano-banana-2: most capable option with more aspect ratios and resolutions
If you are not sure, I recommend starting with google/nano-banana.
Do not call the API until the user chooses a model, unless they explicitly ask you to use the default recommendation.
python3 /absolute/path/to/imini-imagegen/scripts/generate_image.py \
--model google/nano-banana \
--prompt "A shiba inu wearing a spacesuit and standing on the moon, 3D cartoon style" \
--aspect-ratio 1:1 \
--out-dir output/imagegen
With references:
python3 /absolute/path/to/imini-imagegen/scripts/generate_image.py \
--model google/nano-banana \
--prompt "Keep the main composition and turn it into a cinematic poster with dramatic lighting" \
--image-url "https://example.com/ref1.jpg" \
--reference-type asset \
--out-dir output/imagegen
POST /v1/images/generateGET /v1/images/tasks/{task_id}images[].url resultsprompt is required.google/nano-bananagoogle/nano-banana-progoogle/nano-banana-2google/nano-banana as the default low-friction option.resolution defaults to 1K. Higher values should only be used when the chosen model supports them.aspect_ratio is optional. Allowed values are documented in references/api.md.--image-url count limits depend on the chosen model.reference_type defaults to asset; use style only when the user clearly wants style transfer behavior.If generation fails, check in this order:
IMINI_IMAGE_API_KEY is present.failed.images was empty or downloads failed.For API shapes, status values, and exact request fields, read references/api.md.
共 1 个版本