Xpersona
I

IMA Nano Banana Image Generator

CLAWHUB · Unverified

Nano Banana-only image generation on IMA Open API. Supports text_to_image and image_to_image with gemini-3.1-flash-image (budget) and gemini-3-pro-image (pre...

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17etzvvhp65ybcxjyj408z1nx83hx8t:ai-nano-banana-ima
  1. Install using `clawhub skill install s17etzvvhp65ybcxjyj408z1nx83hx8t:ai-nano-banana-ima` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/allenfancy-gan/ai-nano-banana-ima before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-allenfancy-gan-ai-nano-banana-ima/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

146,431 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: IMA Nano Banana Image Generator
version: 1.1.0
category: file-generation
author: IMA Studio (imastudio.com)
keywords: nano banana, nano banana 2, nano banana pro, image generation, gemini image, text to image, image to image, ima studio, ai-nano-banana
argument-hint: "[text prompt or image URL]"
description: >
  Nano Banana-only image generation on IMA Open API. Supports text_to_image and image_to_image 
  with gemini-3.1-flash-image (budget) and gemini-3-pro-image (premium). Deterministic size/ratio 
  mapping, 512/1K/2K/4K resolution. Requires IMA_API_KEY.
requires:
  env:
    - IMA_API_KEY
  primaryCredential: IMA_API_KEY
  credentialNote: >
    IMA_API_KEY is sent to api.imastudio.com for generation APIs and to
    imapi.liveme.com only when image_to_image uses local file upload.
persistence:
  readWrite:
    - ~/.openclaw/memory/ima_prefs.json
    - ~/.openclaw/logs/ima_skills/
  retention: Logs are auto-cleaned after 7 days; preferences remain until user deletes them.
---

# IMA Nano Banana Image Generator

## Scope

This skill is for IMA Open API image generation with strict Nano Banana scope:

- Task types: `text_to_image`, `image_to_image`
- Allowed model IDs only:
  - `gemini-3.1-flash-image`
  - `gemini-3-pro-image`
- Always execute through bundled script: `scripts/ima_image_create.py`

Out of scope:

- Video or non-image tasks
- Non-IMA providers
- Non-Nano-Banana model families (for example SeeDream, Midjourney)
- Handcrafted API requests (do not bypass script)

## Quick Runbook (Authoritative)

If any later section conflicts with this runbook, follow this runbook.

1. Confirm request is in scope (IMA + Nano Banana image generation/editing).
2. Resolve `task_type`:
   - No reference image -> `text_to_image`
   - With reference image/edit request -> `image_to_image`
3. Resolve model:
   - Premium/best quality -> `gemini-3-pro-image`
   - Cheapest/budget -> `gemini-3.1-flash-image` + `--size 512`
   - Otherwise -> `gemini-3.1-flash-image`
4. Resolve parameters:
   - Size -> `--size` (`512`,`1K`,`2K`,`4K`)
   - Ratio -> `--extra-params` JSON (for example `{"aspect_ratio":"16:9"}`)
5. If user asks `8K`, explain unsupported and downgrade to `4K`.
6. For `image_to_image`, require at least one input image.
7. For remote image URLs:
   - Prefer `https://`
   - If user gives `http://`, ask for `https://` URL or local file
8. Endpoint policy is fixed:
    - Main API: `https://api.imastudio.com`
    - Upload API: `https://imapi.liveme.com`
    - No CLI/env override for these domains in this skill.
9. Run only `scripts/ima_image_create.py`; do not call API endpoints manually.
10. Use messaging Step 0-4 flow. If `message` tool is unavailable, use normal replies with same content.
11. On success, prefer rendered media output; if media unsupported, return URL + model + elapsed/credit summary.

## FAQ (For Ambiguous Inputs)

### Q1) How to map intent to `task_type`?

| Situation | `task_type` |
|---|---|
| Prompt-only generation | `text_to

_meta.json

{
  "ownerId": "kn7ac9knfd0gdwhn8ktjvqqgj181thkt",
  "slug": "ai-nano-banana-ima",
  "version": "1.0.9",
  "publishedAt": 1774597249212
}

CHANGELOG_CLAWHUB.md

# Changelog — ai-nano-banana-ima

All notable changes to the **IMA Nano Banana Image Generator** skill will be documented in this file.

---

## [1.1.0] - 2026

### Changed (registry / security)

- **Registry metadata aligned with code and SKILL.md**
  - `clawhub.json`: Aligned structure with `ima-image-ai` — removed `optionalEnvVars`, added proper `requires.env`, `requires.primaryCredential`, `requires.credentialNote`, `persistence`, and `localPaths`.
  - `SKILL.md` frontmatter: Added `requires.env: [IMA_API_KEY]`, `persistence`, `version`, `category`, `author`, `keywords`, and `argument-hint` so scanners and registries can see required credentials and config paths.
  - `_meta.json`: Added `ownerid` field for registry consistency.
  - `SECURITY.md`: Simplified credential flow documentation to match `ima-image-ai` format.
- **Removed optional environment variable override mechanism**
  - Removed `IMA_UPLOAD_APP_ID` and `IMA_UPLOAD_APP_KEY` optional env vars.
  - Upload signing now uses fixed shared credentials (same as `ima-image-ai`).
  - Removed `--allow-secondary-upload-domain` CLI flag.
- Addresses ClawHub "Suspicious" review: metadata mismatch (SKILL.md frontmatter missing `requires.env`, `persistence`), and inconsistent manifest (`_meta.json` missing `ownerid`). No functional change; metadata alignment only.

### Requirements

- IMA API key (`IMA_API_KEY` or `--api-key`).
- Python 3, `requests`.

### Endpoints

- `api.imastudio.com` — main image generation API.
- `imapi.liveme.com` — image upload (used for image_to_image when input is a local file). IMA API key is sent to both; both are IMA Studio.

### Model Scope

- `gemini-3.1-flash-image` (Nano Banana 2) — budget option, 4-13 pts
- `gemini-3-pro-image` (Nano Banana Pro) — premium option, 10-18 pts

SECURITY.md

# Security Disclosure: ai-nano-banana-ima

## Purpose

This document explains endpoint usage, credential flow, and local data behavior for `ai-nano-banana-ima`.

## Network Endpoints

| Domain | Used For | Trigger |
|---|---|---|
| `api.imastudio.com` | Product list, task create, task detail polling | All requests |
| `imapi.liveme.com` | Upload-token request for local image inputs | Only when `image_to_image` includes local files |
| `*.aliyuncs.com` / `*.esxscloud.com` | Presigned binary upload + media CDN delivery | Returned by upload-token API |

For remote HTTPS images, the script can pass URLs directly without upload-token calls.

## Credential Flow

| Credential | Where Sent | Why |
|---|---|---|
| `IMA_API_KEY` | `api.imastudio.com` | Open API auth (`Authorization: Bearer ...`) |
| `IMA_API_KEY` | `imapi.liveme.com` | Upload-token auth for local image uploads |

No API key is sent to presigned upload hosts during binary upload.

## Model Scope Enforcement

The script hard-limits exposed model IDs to:

- `gemini-3.1-flash-image`
- `gemini-3-pro-image`

Any other model ID is rejected locally.

## Local Data

| Path | Content | Retention |
|---|---|---|
| `~/.openclaw/memory/ima_prefs.json` | Per-user model preference cache | Until manually removed |
| `~/.openclaw/logs/ima_skills/` | Operational logs | Auto-cleaned by script after 7 days |

No API key is written into repository files.

skill-card.md

## Description:

Nano Banana-only image generation on IMA Open API supporting text-to-image and image-to-image workflows with budget and premium model choices, deterministic size and aspect-ratio handling, and an IMA_API_KEY runtime requirement.

This skill is ready for commercial/non-commercial use.

## Publisher:

[allenfancy-gan](https://clawhub.ai/user/allenfancy-gan)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to generate or edit images through IMA Open API using the Nano Banana model family. It helps agents choose supported task types, models, sizes, aspect ratios, and script parameters for prompt-only or reference-image workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Prompts, image URLs, and local image paths may be retained in local logs during failures or normal operation.

Mitigation: Avoid confidential prompts and private image paths, review local logs before sharing the machine, and periodically delete ~/.openclaw/logs/ima_skills/.

Risk: The IMA API key and image inputs are sent to documented IMA services for generation and local-image upload workflows.

Mitigation: Use a scoped or test API key for initial testing, avoid sensitive image uploads unless this data flow is acceptable, and rotate the key if exposure is suspected.

Risk: User model preferences persist locally until removed.

Mitigation: Delete ~/.openclaw/memory/ima_prefs.json when retained model preferences are no longer desired.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/allenfancy-gan/skills/ai-nano-banana-ima)
- [Publisher profile](https://clawhub.ai/user/allenfancy-gan)
- [IMA Studio](https://imastudio.com/)
- [IMA API key page](https://www.imaclaw.ai/imaclaw/apikey)

## Skill Output:

**Output Type(s):** [Text, Markdown, Shell commands, JSON, Configuration, Guidance]

**Output Format:** [Markdown guidance with shell command templates and JSON result objects from the bundled image-generation script.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May return image URLs or rendered media metadata including model, task id, credit use, and elapsed generation information.]

## Skill Version(s):

1.0.9 (source: server release evidence; artifact files report 1.1.0)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to IMA Nano Banana Image Generator and adjacent AI workflows.