Meldport
google · Image

Nano Banana 2 Lite API

Image model · Published on Meldport

Lighter Nano Banana 2 image model for faster generation and editing workflows

Generation is available through the published Meldport configurations below. Review the exact quote before submitting.

Model ID
google-nano-banana-2-lite
Released
Jun 30, 2026
Billing unit
generation

MODEL API

How to call the Nano Banana 2 Lite API

Nano Banana 2 Lite is available on Meldport through the image API. Quote the request, submit a job with the images:generate scope, poll the job until it is settled, then request a download URL. The same flow works for every published configuration.

API scope
images:generate
Quote endpoint
POST /v1/media/quotes
Job endpoint
POST /v1/media/jobs
Poll endpoint
GET /v1/media/jobs/{job_id}
Download endpoint
POST /v1/media/jobs/{job_id}/download-url
Published configurations
2
Starting rate
Estimated $0.040324 per generation
Workflows
Text to image · Image to image
Output formats
image/jpeg
Output retention
8 days

Generation requests use a published configuration ID. The quote returns the customer price and maximum reservation before a paid job starts.

Meldport generation prices

Nano Banana 2 Lite

API configuration ID1a36600b-d338-493d-b2b5-c84c4c9d90e3

text to image

Estimated totalMeldport $0.040324/ generation

Example: 1K image output · 1 output. Final cost may differ from the estimate. See billing details.

Variable billing details
API request and parameters

Use images:generate on your API key. This configuration runs text to image and returns image/jpeg.

This configuration does not require an uploaded image. Choose a different configuration ID to change the workflow or output settings. Send only options listed below.

These output settings are included in this configuration. Select another configuration ID to change them. Do not add them to options.

generation_parametersJSON
{
  "width": 1024,
  "height": 1024
}

This configuration has no additional request options.

Replace the prompt and set a unique MELDPORT_IDEMPOTENCY_KEY for this operation. The example quotes the request and then creates one paid job. Read the billing rules before accepting variable charges.

generate.mjsJavaScript
const api = "https://api.meldport.com";
const key = process.env.MELDPORT_API_KEY;
const idempotencyKey = process.env.MELDPORT_IDEMPOTENCY_KEY;
if (!key || !idempotencyKey) throw new Error("Set your API key and a unique operation ID first.");

async function post(path, body) {
  const response = await fetch(api + path, {method: "POST",
    headers: {Authorization: `Bearer ${key}`, "Content-Type": "application/json"},
    body: JSON.stringify(body)});
  const result = await response.json();
  if (!response.ok) throw new Error(JSON.stringify(result.error));
  return result;
}

const request = {
  "configuration_id": "1a36600b-d338-493d-b2b5-c84c4c9d90e3",
  "prompt": "Replace with your prompt or speech script.",
  "options": {},
  "input_asset_ids": []
};
const {data: quote} = await post("/v1/media/quotes", request);
console.log("Quote:", quote);
const result = await post("/v1/media/jobs", {
  ...request, idempotency_key: idempotencyKey,
  accepted_customer_price_microusd: quote.customer_price_microusd,
  accepted_maximum_reservation_microusd: quote.maximum_reservation_microusd,
  ...(quote.billing_policy_version === "actual-cost-v1"
    ? {billing_policy_version: "actual-cost-v1"} : {}),
});
console.log(result.job);
// Poll GET /v1/media/jobs/<job.id> with the same API key.
// Keep this operation ID for retries. A new ID requests another generation.

Poll the returned job ID. Download only after state is succeeded and billing_state is settled. Polling and download example.

Nano Banana 2 Lite

API configuration IDc163b201-5586-4278-850d-824d77f417bc

image to image

Estimated totalMeldport $0.040728/ generation

Example: 1K image output · 1 output. Final cost may differ from the estimate. See billing details.

Variable billing details
API request and parameters

Use images:generate on your API key. This configuration runs image to image and returns image/jpeg.

Upload an image using the same API key, then replace YOUR_UPLOADED_ASSET_ID. Input upload example. Choose a different configuration ID to change the workflow or output settings. Send only options listed below.

These output settings are included in this configuration. Select another configuration ID to change them. Do not add them to options.

generation_parametersJSON
{
  "resolution": "1K"
}

This configuration has no additional request options.

Replace the prompt and set a unique MELDPORT_IDEMPOTENCY_KEY for this operation. The example quotes the request and then creates one paid job. Read the billing rules before accepting variable charges.

generate.mjsJavaScript
const api = "https://api.meldport.com";
const key = process.env.MELDPORT_API_KEY;
const idempotencyKey = process.env.MELDPORT_IDEMPOTENCY_KEY;
if (!key || !idempotencyKey) throw new Error("Set your API key and a unique operation ID first.");

async function post(path, body) {
  const response = await fetch(api + path, {method: "POST",
    headers: {Authorization: `Bearer ${key}`, "Content-Type": "application/json"},
    body: JSON.stringify(body)});
  const result = await response.json();
  if (!response.ok) throw new Error(JSON.stringify(result.error));
  return result;
}

const request = {
  "configuration_id": "c163b201-5586-4278-850d-824d77f417bc",
  "prompt": "Replace with your prompt or speech script.",
  "options": {},
  "input_asset_ids": [
    "YOUR_UPLOADED_ASSET_ID"
  ]
};
const {data: quote} = await post("/v1/media/quotes", request);
console.log("Quote:", quote);
const result = await post("/v1/media/jobs", {
  ...request, idempotency_key: idempotencyKey,
  accepted_customer_price_microusd: quote.customer_price_microusd,
  accepted_maximum_reservation_microusd: quote.maximum_reservation_microusd,
  ...(quote.billing_policy_version === "actual-cost-v1"
    ? {billing_policy_version: "actual-cost-v1"} : {}),
});
console.log(result.job);
// Poll GET /v1/media/jobs/<job.id> with the same API key.
// Keep this operation ID for retries. A new ID requests another generation.

Poll the returned job ID. Download only after state is succeeded and billing_state is settled. Polling and download example.

About this model

Nano Banana 2 Lite is a lighter variant in Google's Nano Banana 2 image model family. It is positioned as a more efficient option for teams that want the same broad text-to-image and image-editing workflow shape as Nano Banana 2 but with faster turnaround and a smaller model footprint. It is best understood as a lower-latency, higher-throughput entry point into the Nano Banana 2 family rather than a separate creative direction.

  • text to image
  • image to image
  • video to image
  • op:edit
  • checkpoint

Nano Banana 2 Lite API FAQ

Does Nano Banana 2 Lite have an API?

Yes. Meldport publishes 2 image configurations for Nano Banana 2 Lite. Quote the request, then submit a job with the images:generate scope; the same API key covers quoting, polling, and download.

How much does the Nano Banana 2 Lite API cost?

Published configurations start at an estimated $0.040324 per generation. These configurations use actual-cost billing, so the final charge can differ from the estimate. Quote the exact request before submitting to see the customer price and maximum reservation.

Which configuration ID should I send?

Send a published configuration ID from this page, such as 1a36600b-d338-493d-b2b5-c84c4c9d90e3. Each configuration fixes the workflow and output settings, and its price is listed on this page. Changing the configuration does not require a new API key.

How do I get an API key for Nano Banana 2 Lite?

Create a Meldport account, add a workspace API key with the images:generate scope, and keep the key on your server. The API reference covers key creation and scopes.

How are Nano Banana 2 Lite results delivered?

POST /v1/media/jobs returns a job instead of a finished file. Poll GET /v1/media/jobs/{job_id} until state is succeeded and billing_state is settled, then request a download URL. Outputs are retained for 8 days.