# AI Gateway

AI Gateway on Yottalabs is a unified API aggregator that brings together models from Google DeepMind, ByteDance, Z.AI, and more under one roof.

<figure><img src="https://4009603828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ezFC70sdvT4ACdioCrw%2Fuploads%2FgPDWTPYmSL3jMVCNTRY0%2Fimage.png?alt=media&#x26;token=a6763dff-248a-4a98-a114-302400c3793d" alt=""><figcaption></figcaption></figure>

The category tabs at the top of the model list let you quickly filter models by type — choose from `All`, `LLM`, `Text-To-Image`, `Text-To-Video`, `Image-To-Video`, or browse by `Publishers` using the dropdown.

<figure><img src="https://4009603828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ezFC70sdvT4ACdioCrw%2Fuploads%2FELUGFaagEqKoyyqLxH3z%2Fimage.png?alt=media&#x26;token=4588f1a5-4819-4ea7-b626-cded7f986583" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://4009603828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ezFC70sdvT4ACdioCrw%2Fuploads%2FYBNlNP9xFQ6KyAD2GkXB%2Fimage.png?alt=media&#x26;token=fba08c78-0467-4bf3-ad34-57bd24e5727b" alt="" width="110"><figcaption></figcaption></figure>

Simply click any tab to instantly narrow down the model catalog to what's relevant for your use case.

#### **Nano Banana Pro**

***Google DeepMind*** *`Text-To-Image`*

Nano Banana Pro is Google DeepMind's text-to-image model built for precision and versatility. Where a lot of image models struggle with complex, multi-element prompts or lose consistency across styles, Nano Banana Pro holds its ground — structural details stay sharp, fine visual elements render cleanly, and it handles everything from cinematic portraits to marketing assets well.

***

#### :banana:**Playground**

<figure><img src="https://4009603828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ezFC70sdvT4ACdioCrw%2Fuploads%2FuVxhmma8Ah9qvhHyGCfJ%2Fimage.png?alt=media&#x26;token=69b0d9b2-3547-4ef5-be55-056159b445c5" alt=""><figcaption></figcaption></figure>

The Playground is your zero-setup sandbox. No API key configuration, no environment setup — just type a prompt and run it!

* **Prompt**: Write in natural language. The more context you give it, the more controlled the output.
  * **Template 1 — Portrait / Character**

    ```
    A [photo style] of a [subject description], wearing [clothing details], 
    [action/pose]. The background is [environment description]. 
    Lighting is [lighting type], creating a [mood/atmosphere] feel. 
    Shot with [lens/camera style], [color grade].
    ```

    *Example:*

    > A cinematic photograph of a young black woman wearing a casual t-shirt and shorts, standing still with a colorful beach cocktail in hand, grinning broadly at the camera. The background features a sun-drenched Hawaiian beach scattered with tropical flowers and coconuts.
    >
    > Lighting: bright, warm natural sunlight, creating an upbeat and joyful atmosphere.
    >
    > Lens: wide-angle, capturing the full environment around the subject to amplify the sense of openness and surprise.
    >
    > Color grade: oversaturated, vivid tropical palette — punchy greens, electric blues, warm yellows. High energy, vacation editorial style.
    >
    > <img src="https://4009603828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ezFC70sdvT4ACdioCrw%2Fuploads%2Fql18OYWIO8GUN3budOzg%2Ffa09ae16-34ff-4a25-8064-4fb39aa00457%20(1).png?alt=media&#x26;token=ee095e72-005e-4955-a933-6deaf300e575" alt="" data-size="original">
  * **Template 2 — Scene / Environment**

    ```
    A [render style] of [location/environment], during [time of day / weather]. 
    [Key visual elements present in the scene]. 
    The atmosphere is [descriptive mood]. 
    Color palette: [dominant colors]. Style reference: [art style or director/photographer].
    ```

    *Example:*

    > A photorealistic render of an abandoned greenhouse interior, during golden hour after light rain. Overgrown vines crawl across rusted iron frames, and puddles reflect warm light from broken roof panels. The atmosphere is quiet and melancholic. Color palette: amber, moss green, pale rust. Style reference: Gregory Crewdson.
    >
    > <img src="https://4009603828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ezFC70sdvT4ACdioCrw%2Fuploads%2Fvnx3mL9CBbp0gqEYn3CZ%2Fb625a899-ec27-4235-9a80-5ba4f926dc94.png?alt=media&#x26;token=b2a032d7-107d-4a55-9647-03eb9e26d7e7" alt="" data-size="original">
  * **Template 3 — Product / Marketing Visual**

    ```
    A clean [shot type] of [product name/description] placed on [surface/background]. 
    [Props or surrounding elements if any]. 
    Lighting: [lighting setup]. 
    The overall tone is [brand tone: minimal / bold / luxury / playful]. 
    No text, no watermark.
    ```

    *Example:*

    > A clean overhead shot of a matte black coffee cup placed on a white marble surface. A single sprig of dried lavender rests beside it. Lighting: soft diffused natural light from the left. The overall tone is minimal and premium. No text, no watermark.
    >
    > <img src="https://4009603828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ezFC70sdvT4ACdioCrw%2Fuploads%2F8LXZDnPgjypEKlFOnCF3%2F7bf78b4a-127a-432b-accc-0a72532f9cd0.png?alt=media&#x26;token=5691ff38-f3ce-4a93-8a20-117d23f60dba" alt="" data-size="original">

    **Quick Reference — Power Words by Category**

    | Category    | Options                                                                      |
    | ----------- | ---------------------------------------------------------------------------- |
    | Photo style | cinematic, photorealistic, editorial, documentary, long-exposure             |
    | Lighting    | golden hour, blue hour, hard rim light, soft diffused, neon-lit, candlelit   |
    | Mood        | ethereal, gritty, melancholic, energetic, sterile, nostalgic                 |
    | Color grade | desaturated, warm analog, high contrast B\&W, teal & orange, pastel washed   |
    | Composition | wide establishing shot, tight close-up, bird's eye, Dutch angle, symmetrical |
* **Advanced Settings**: Expand this section to adjust parameters like output dimensions, sampling steps, or guidance scale, depending on what the provider exposes. Useful when you want to push quality or constrain style.
  * **Aspect Ratio** defines the shape of your image. `1:1` for social square posts, `9:16` for mobile/Stories, `16:9` for presentations and banners, `2:3` for portrait editorial, `21:9` for cinematic widescreen, and several others in between. The selected ratio is highlighted in black — default is `1:1`.
  * **Resolution** sets the output quality: `1K`, `2K`, or `4K`. Higher resolution means more detail and larger file size. For quick prototyping, 1K is fine. For anything going into production — print, large-format display, or high-DPI screens — go 2K or 4K.
  * **Output Format** is straightforward: `PNG` for lossless quality with transparency support, `JPEG` for smaller file sizes when you don't need a transparent background. **When in doubt, PNG is the safer default.**

<figure><img src="https://4009603828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ezFC70sdvT4ACdioCrw%2Fuploads%2FHLKNLmTlGQeAB36NYppd%2Fimage.png?alt=media&#x26;token=392038e0-0cd8-4483-9b7c-7ebfa75b9867" alt="" width="440"><figcaption></figcaption></figure>

* **Run**: Hit **Run** to generate.
* **Output & Download**: Generated images render directly in the panel. Use the download icon in the top-right corner of the output to save your result locally.
* **Pricing**: Cost is shown transparently beneath the output — currently **$0.14 per image**. What you see is what you pay.

***

#### :banana:**Providers**

<figure><img src="https://4009603828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ezFC70sdvT4ACdioCrw%2Fuploads%2FbCLckwOMOC60S7L5C2TO%2Fimage.png?alt=media&#x26;token=e5428b97-41fd-47c9-98ff-0c0a25062d9d" alt=""><figcaption></figcaption></figure>

Different providers may vary in latency, throughput, or price. You don't need to manage any of this manually — Yotta Labs automatically routes your requests to the most suitable provider based on your prompt and parameters.

***

#### :banana:**API**

If you're integrating Nano Banana Pro into your own application, the API tab is your starting point. Authentication is handled via an `X-API-KEY` header — grab your key from your account settings and you're good to go.

{% stepper %}
{% step %}
**Copy the SDK Code**

Head to the **API** tab on the Nano Banana Pro model page. Copy the full Python SDK code provided.
{% endstep %}

{% step %}
**Save It Locally**

Open any text editor (Notepad, VS Code, or anything you have on hand). Paste the code in, then make two edits before saving:

* Replace `"MY API Key"` with your actual API key from the Dashboard. See our official doc for API key [here](https://docs.yottalabs.ai/api-and-sdk/api-keys)
* Replace the default prompt with your own

Save the file as `run.py` in a folder of your choice, for example:

```
D:\yottalabs\run.py
```

{% endstep %}

{% step %}
**Run It from the Command Line**

Open **Command Prompt** (search "cmd" in the Windows Start menu). Navigate to the folder where you saved the file, then run it:

```bash
cd D:\yottalabs
python run.py
```

You'll see status updates printed in the terminal as the job processes:

<figure><img src="https://4009603828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ezFC70sdvT4ACdioCrw%2Fuploads%2FE0LsdZz7tgljVJKuoCTA%2Fimage.png?alt=media&#x26;token=34dc418a-7df3-4691-8dd6-237ab1d200a0" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Copy the Output URL and Save Image**

Once the job completes, the terminal prints a URL starting with `https://`. Select and copy the full URL.

Paste the URL into your browser and hit Enter. The image will load directly in the browser.

<figure><img src="https://4009603828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ezFC70sdvT4ACdioCrw%2Fuploads%2FSjkow65ffyq0fn2YIvWy%2Fimage.png?alt=media&#x26;token=9da8988d-c33f-48e8-9170-c06003fb0cf5" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yottalabs.ai/products/ai-gateway.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
