Text to Image
nano-banana-2-lite
Draft model pending operator verification
Quick start
Submit a request with this public model ID. The API immediately returns a normalized job; poll GET /v1/jobs/{jobId} while its status is queued or running.
curl -X POST "https://api.artany.ai/v1/images/generations" \
-H "Authorization: Bearer $ARTANY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: unique-request-id" \
-d '{"model":"nano-banana-2-lite","prompt":"A small blue paper kite","size":"auto","resolution":"1K","count":1}'Request
Headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token for an Artany API key. |
| Content-Type | Yes | Must be application/json. |
| Idempotency-Key | Recommended | 8–128 characters. Reusing it with an identical request prevents duplicate jobs and charges. |
Body
{
"model": "nano-banana-2-lite",
"prompt": "A small blue paper kite",
"size": "auto",
"resolution": "1K",
"count": 1
}Request Parameters
Only fields in this model’s public request contract are shown. Defaults are applied before validation and quoting.
Stable public model ID for this request.
Text instruction for image generation or editing. Describe the desired subject, composition, style, and changes.
Length: 1–12000
Output image aspect ratio. Use auto when the model should select a suitable framing.
Allowed: auto, 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 5:4, 4:5, 21:9
- For reference-based generation, the input image can influence the resulting aspect ratio.
Output resolution for the Lite model.
Allowed: 1K
Note:Lite output is fixed at 1K. Any other tier is reduced to 1K.
Number of images to generate in this request.
Allowed: 1 · Range: 1–1
Note:Send a JSON number rather than a quoted string.
Reference images for image-to-image generation. Public http(s) URLs or complete Base64 Data URIs are supported.
Items: 1–14
- Up to 14 reference images are supported.
Note:Base64 input must include its complete data URI prefix. Use accessible, stable source URLs.
Response and task status
A successful asynchronous submission returns HTTP 202 with a supplier-neutral job.
{
"id": "job_…",
"object": "generation.job",
"model": "nano-banana-2-lite",
"status": "queued",
"progress": 0,
"output": null,
"error": null,
"billing": {
"estimated_credits": "…",
"frozen_credits": "…",
"charged_credits": "0",
"state": "frozen",
"price_version": "2026-07-18.picverse-parity"
},
"created_at": "2026-07-21T00:00:00.000Z",
"completed_at": null
}- queued / running: continue polling.
- succeeded: retrieve media URLs from
output; billing has settled. - failed / canceled: inspect
error; frozen Credits are released.
Pricing
The price shown for a matching configuration is the fixed amount settled on successful completion. Price version: 2026-07-18.picverse-parity.
| Credits |
|---|
| 3 |