> ## Documentation Index
> Fetch the complete documentation index at: https://veniceai-feat-models-redesign.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Nano Banana 2 API

> Nano Banana 2 API on Venice: image generation and image editing up to 4K, from $0.10 per image. Anonymized access without your identity.

export const HubMount = ({view, children, ...props}) => {
  const [hub, setHub] = useState(null);
  const [failed, setFailed] = useState(false);
  useEffect(() => {
    let alive = true;
    const w = window;
    if (!w.__veniceModelHub) {
      const urls = w.location.hostname === 'localhost' ? ['http://localhost:3333/data/model-hub.bundle.json', '/data/model-hub.bundle.json'] : ['/data/model-hub.bundle.json'];
      const load = i => fetch(urls[i], {
        cache: 'no-cache'
      }).then(res => {
        if (!res.ok) throw new Error(`bundle ${res.status}`);
        return res.json();
      }).catch(err => i + 1 < urls.length ? load(i + 1) : Promise.reject(err));
      const Frag = <></>.type;
      const h = (type, props, ...kids) => {
        const T = type;
        const {key, ...rest} = props || ({});
        if (!kids.length) return <T key={key} {...rest} />;
        if (kids.length === 1) return <T key={key} {...rest}>{kids[0]}</T>;
        return <T key={key} {...rest}>{kids.map((kid, i) => <Frag key={i}>{kid}</Frag>)}</T>;
      };
      w.__veniceModelHub = load(0).then(bundle => new Function(`return (${bundle.code})`)()({
        h,
        Fragment: Frag,
        useState,
        useEffect,
        useRef,
        useMemo,
        useCallback
      }));
    }
    w.__veniceModelHub.then(instance => {
      if (alive) setHub(instance);
    }).catch(() => {
      w.__veniceModelHub = null;
      if (alive) setFailed(true);
    });
    return () => {
      alive = false;
    };
  }, []);
  const View = hub ? hub[view] : null;
  if (View) return <View {...props}>{children}</View>;
  if (failed) {
    return <div className="vx-mount is-failed">
        <p className="vx-mount-note">The interactive model catalog could not load. The full data is below.</p>
        {children}
      </div>;
  }
  return <div className="vx-mount" aria-busy="true">
      <div className="vx-mount-skeleton" aria-hidden="true"><span /><span /><span /></div>
      <div className="vx-mount-source">{children}</div>
    </div>;
};

<HubMount view="ModelPage" data={{"family":{"slug":"nano-banana-2","name":"Nano Banana 2","modality":"image","task":"image-generation","provider":"google","primary":"nano-banana-2","variants":["nano-banana-2","nano-banana-2-edit"],"created":1772064000,"updated":1772064000,"privacy":["anonymized"],"sets":["venice_recommendations"]},"models":[{"id":"nano-banana-2","name":"Nano Banana 2","type":"image","modality":"image","task":"image-generation","variant":"generate","provider":"google","created":1772064000,"privacy":"anonymized","sets":["venice_recommendations"],"image":{"resolutions":["1K","2K","4K"],"defaultResolution":"1K","aspectRatios":["1:1","3:2","16:9","21:9","9:16","2:3","3:4","4:5"],"defaultAspectRatio":"1:1","promptLimit":32768,"steps":{"default":20,"max":50},"webSearch":true},"pricing":{"perImage":0.1,"defaultResolution":"1K","byResolution":{"1K":0.1,"2K":0.14,"4K":0.19},"upscale":{"2x":0.02,"4x":0.08}},"headline":{"value":0.1,"unit":"per image","basis":"1K"},"endpoints":[{"id":"image-generate","method":"POST","path":"/image/generate","name":"Generate image","status":"stable","recommended":true},{"id":"images-generations","method":"POST","path":"/images/generations","name":"OpenAI-compatible images","status":"stable"}],"media":[{"prompt":"text","type":"image","url":"https://venice.ai/samples/nano-banana-2/text.webp","title":"In-image text","caption":"A retro travel poster with the bold headline \"VENICE\" in large condensed serif type, sunset color palette, clean layout","page":"https://venice.ai/models/nano-banana-2"},{"prompt":"photoreal","type":"image","url":"https://venice.ai/samples/nano-banana-2/photoreal.webp","title":"Photorealism","caption":"Photorealistic close-up portrait of a weathered fisherman at golden hour, 85mm lens, shallow depth of field, natural skin texture","page":"https://venice.ai/models/nano-banana-2"},{"prompt":"composition","type":"image","url":"https://venice.ai/samples/nano-banana-2/composition.webp","title":"Instruction-following","caption":"A small red cube balanced on top of a large glossy blue sphere, with a green cone to the right, plain light-grey studio background","page":"https://venice.ai/models/nano-banana-2"},{"prompt":"style","type":"image","url":"https://venice.ai/samples/nano-banana-2/style.webp","title":"Illustration style","caption":"Cozy watercolor illustration of a hillside village in autumn, warm tones, soft paper texture","page":"https://venice.ai/models/nano-banana-2"}],"family":"nano-banana-2"},{"id":"nano-banana-2-edit","name":"Nano Banana 2","type":"inpaint","modality":"image","task":"image-edit","variant":"edit","provider":"google","created":1772064000,"privacy":"anonymized","image":{"resolutions":["1K","2K","4K"],"defaultResolution":"1K","aspectRatios":["auto","1:1","3:2","16:9","21:9","9:16","2:3","3:4","4:5"],"promptLimit":32768,"maxInputImages":6,"combineImages":true},"pricing":{"perImage":0.1,"defaultResolution":"1K","byResolution":{"1K":0.1,"2K":0.14,"4K":0.19},"edit":0.1},"headline":{"value":0.1,"unit":"per edit","basis":"1K"},"endpoints":[{"id":"image-edit","method":"POST","path":"/image/edit","name":"Edit image","status":"stable","recommended":true},{"id":"image-multi-edit","method":"POST","path":"/image/multi-edit","name":"Multi-image edit","status":"stable"}],"family":"nano-banana-2"}],"related":{"similar":[{"slug":"qwen-image-2-pro","name":"Qwen Image 2 Pro","provider":"alibaba","modality":"image","privacy":["anonymized"],"created":1772582400,"headline":{"value":0.1,"unit":"per image","basis":"flat"},"variants":2},{"slug":"hunyuan-image-3-0","name":"Hunyuan Image 3.0","provider":"tencent","modality":"image","privacy":["private"],"created":1772323200,"headline":{"value":0.09,"unit":"per image","basis":"flat"},"variants":1},{"slug":"wan-2-7-pro","name":"Wan 2.7 Pro","provider":"alibaba","modality":"image","privacy":["anonymized"],"created":1775001600,"headline":{"value":0.09375,"unit":"per image","basis":"flat"},"variants":2},{"slug":"flux-2-max","name":"Flux 2 Max","provider":"bfl","modality":"image","privacy":["anonymized"],"created":1764086377,"headline":{"value":0.09,"unit":"per image","basis":"flat"},"variants":2}],"versions":[]},"providers":{"google":{"slug":"google","name":"Google","logo":"/images/icons/models/google.svg"},"alibaba":{"slug":"alibaba","name":"Alibaba Qwen","logo":"/images/icons/models/qwen.svg"},"tencent":{"slug":"tencent","name":"Tencent Hunyuan","logo":"/images/icons/models/hunyuan.svg"},"bfl":{"slug":"bfl","name":"Black Forest Labs","logo":"/images/icons/models/BlackForestLabs.svg"}},"faq":[{"q":"How much does the Nano Banana 2 API cost?","a":"$0.10 at 1K, $0.14 at 2K and $0.19 at 4K per image. Editing costs $0.10 per edit. Prices are in USD and can be paid in DIEM at parity."},{"q":"What is the Nano Banana 2 model ID?","a":"Use `nano-banana-2` as the `model` parameter. Other variants: `nano-banana-2-edit` (Edit)."},{"q":"Is the Nano Banana 2 API private?","a":"Nano Banana 2 is anonymized: Venice forwards requests to the provider without your identity, but the provider may retain prompt data, so use a private model for sensitive work."},{"q":"What resolutions does Nano Banana 2 support?","a":"Resolutions: 1K, 2K, 4K. Aspect ratios: 1:1, 3:2, 16:9, 21:9, 9:16, 2:3, 3:4, 4:5. Prompts up to 32,768 characters."},{"q":"Which endpoint does the Nano Banana 2 API use?","a":"Call `POST /image/generate`. `/images/generations` is also supported."}]}} />

<div className="vx-static">
  <Accordion title="Plain-text specification">
    # Nano Banana 2 API

    Nano Banana 2 is an image generation and image editing model by Google, available on the Venice API as `nano-banana-2`. Requests are anonymized, so the provider never sees your identity.

    ## Nano Banana 2 API pricing

    | Model ID | Variant | Privacy | Price |
    | - | - | - | - |
    | `nano-banana-2` | Generate | Anonymized | \$0.10 per image |
    | `nano-banana-2-edit` | Edit | Anonymized | \$0.10 per edit |

    ## Nano Banana 2 specifications

    | Spec | Value |
    | - | - |
    | Provider | Google |
    | Released | Feb 26, 2026 |
    | Privacy | Anonymized |
    | Resolutions | 1K, 2K, 4K |
    | Aspect ratios | 1:1, 3:2, 16:9, 21:9, 9:16, 2:3, 3:4, 4:5 |
    | Prompt limit | 32,768 characters |

    ## How to use the Nano Banana 2 API

    Send requests to `POST https://api.venice.ai/api/v1/image/generate` with `"model": "nano-banana-2"` and your API key.

    ```bash theme={null}
    curl https://api.venice.ai/api/v1/image/generate \
      -H "Authorization: Bearer $VENICE_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "nano-banana-2",
        "prompt": "A retro travel poster with the bold headline \"VENICE\" in large condensed serif type, sunset color palette",
        "resolution": "1K",
        "aspect_ratio": "1:1"
      }'
    ```

    ## Nano Banana 2 API FAQ

    ### How much does the Nano Banana 2 API cost?

    $0.10 at 1K, $0.14 at 2K and $0.19 at 4K per image. Editing costs $0.10 per edit. Prices are in USD and can be paid in DIEM at parity.

    ### What is the Nano Banana 2 model ID?

    Use `nano-banana-2` as the `model` parameter. Other variants: `nano-banana-2-edit` (Edit).

    ### Is the Nano Banana 2 API private?

    Nano Banana 2 is anonymized: Venice forwards requests to the provider without your identity, but the provider may retain prompt data, so use a private model for sensitive work.

    ### What resolutions does Nano Banana 2 support?

    Resolutions: 1K, 2K, 4K. Aspect ratios: 1:1, 3:2, 16:9, 21:9, 9:16, 2:3, 3:4, 4:5. Prompts up to 32,768 characters.

    ### Which endpoint does the Nano Banana 2 API use?

    Call `POST /image/generate`. `/images/generations` is also supported.

    ## Related models

    * [Qwen Image 2 Pro API](/models/qwen-image-2-pro): \$0.10 per image
    * [Hunyuan Image 3.0 API](/models/hunyuan-image-3-0): \$0.09 per image
    * [Wan 2.7 Pro API](/models/wan-2-7-pro): \$0.09 per image
    * [Flux 2 Max API](/models/flux-2-max): \$0.09 per image
  </Accordion>
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.