PixMind Docs
API ReferenceImage ModelsNano Banana 2 Eco

Nano Banana 2 Eco Image API

Generate or process images with Nano Banana 2 Eco through the PixMind API.

Cost-efficient image generation and editing for everyday, high-volume workloads.

Provider

Google

Model ID

nano-banana-2-eco

Endpoint

POST /api-platform/v1/generations

Model notes

  • The size tier changes the billed API price.

Request parameters

ParameterTypeRequiredDescription
modelstringYes

Stable PixMind model ID. Use `nano-banana-2-eco`.

Allowed values: nano-banana-2-eco

promptstringYes

Natural-language generation or editing instructions.

resolutionstringNo

Output resolution tier. This field affects request pricing.

Allowed values: 2K, 4K

Default: 2K

aspectRatiostringNo

Requested output aspect ratio.

Allowed values: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9

Default: 1:1

referenceImagesstring[] (URI)No

Reference image URLs used for editing, composition, subject, or style guidance.

Request example

cURL
curl https://aihub-admin.aimix.pro/api-platform/v1/generations \
  -H "Authorization: Bearer $PIXMIND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "nano-banana-2-eco",
  "prompt": "A bright social media product image on a pastel background",
  "resolution": "2K",
  "aspectRatio": "1:1"
}'
JavaScript
const response = await fetch("https://aihub-admin.aimix.pro/api-platform/v1/generations", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.PIXMIND_API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "model": "nano-banana-2-eco",
  "prompt": "A bright social media product image on a pastel background",
  "resolution": "2K",
  "aspectRatio": "1:1"
})
});

const task = await response.json();

Accepted task response

Generation is asynchronous. Save taskId and poll GET /api-platform/v1/tasks/{taskId} until status is ready or failed.

200 OK
{
  "code": 1000,
  "data": {
    "id": "img_44160",
    "taskId": 44160,
    "type": "image",
    "model": "nano-banana-2-eco",
    "status": "processing"
  }
}

API pricing

ConfigurationPrice
2K output$0.050 / image
4K output$0.070 / image

API pricing uses the apiPlatform role and is separate from PixMind Studio credits. The accepted task response is the final pricing snapshot.