Skip to main content
Skip to main content

Nano Banana 2.1 Cheap

Nano Banana 2.1 is Google's newer image model for reference-heavy generation with 1K to 4K output. “Cheap” is the next question, not the next model. A platform may use the label because it bought capacity at a lower rate, bundles the model into a subscription, or routes some requests to a less capable tier.

  • 99.9% SLA
  • Official Discounts
  • Pay-as-you-go
  • Fast & Low Latency
Brand:GooglePrice: $0.015 / image
Open docs

API DOCS / SIMPLIFIED

Task API overview

Create a task for Nano Banana 2.1 Cheap with its model ID and parameters, then use the returned task ID to check its status. Include your MuseSpark API key in each request.

Input mode
X-API-Key on every request
POST /api/v1/openapi/task
GET /api/v1/openapi/task/status/{task_id}
Async task workflow

Create a task and retrieve its status

Replace the API key placeholder and review the example parameters before sending the request. Each example checks status once; repeat the status request until the task finishes. For cURL, also replace the task ID placeholder with the ID returned by the create request.

Task API

API_KEY="<API_KEY>"
BASE_URL="https://api.musespark.ai"
REQUEST_BODY='{
  "model_id": "nano-banana-2.1-cheap",
  "parameters": {
    "prompt": "A cinematic portrait with soft lighting",
    "resolution": "1K",
    "aspect_ratio": "1:1",
    "batch_size": 1
  }
}'

CREATE_RESPONSE=$(curl --request POST "$BASE_URL/api/v1/openapi/task" \
  --header "X-API-Key: $API_KEY" \
  --header "Content-Type: application/json" \
  --data-raw "$REQUEST_BODY")

printf '%s\n' "$CREATE_RESPONSE"
TASK_ID="<TASK_ID_FROM_CREATE_RESPONSE>"

curl "$BASE_URL/api/v1/openapi/task/status/$TASK_ID" \
  --header "X-API-Key: $API_KEY"

Request and response

The request creates a task; the response shown is an example from a status lookup. Inline comments explain fields and must be removed before sending or parsing the copied JSON.

Create task request

Send this request body to the task creation endpoint with values appropriate for your use case.

Request Body · JSON
{
"model_id": "nano-banana-2.1-cheap",// target model
"parameters": {
"prompt": "A cinematic portrait with soft lighting",// image generation or reference-image editing prompt · min 1 · min length 1
"resolution": "1K",// choose 1K, 2K or 4K output. 0.5K is not supported · enum: 1K | 2K | 4K
"aspect_ratio": "1:1",// enum: auto | 1:4 | 4:1 | 1:8 | 8:1 | 1:1 | 2:3 | 3:2 | 3:4 | 4:3 | 4:5 | 5:4 | 9:16 | 16:9 | 21:9
"batch_size": 1// museSpark batch count; each child task requests one provider output · min 1 · max 15
}
}

Available parameters and their requirements depend on the selected model or tool and input mode.

Task status response

A completed task may return output in its result. The result fields and output format depend on the model or tool.

Response Body · JSON
{
"code": 200,// 200 on success
"msg": "success",
"data": {
"task_id": "task_01HQX8N2QJ0YQ8Q0T7G6N4V6K2",// use for status polling
"status": "completed",// enum: queued | running | completed | failed | cancelled
"progress": 100,// 0-100 if available
"completed_at": 1760000000,// unix timestamp
"expires_at": 1760001800,// unix timestamp
"result": {
"output_urls": [// generated files
"https://cdn.example.com/output.png"
]
}
}
}

Poll every 2-5 seconds and stop once status becomes completed, failed, cancelled.