Text to Image

artany-nano-banana-2

Picverse phase-one image capability.

POST /v1/images/generationsAsync generationFixed Credit pricing

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":"artany-nano-banana-2","count":1,"prompt":"A cinematic coastal village","resolution":"0.5k","aspect_ratio":"16:9"}'

Request

Headers

HeaderRequiredDescription
AuthorizationYesBearer token for an Artany API key.
Content-TypeYesMust be application/json.
Idempotency-KeyRecommended8–128 characters. Reusing it with an identical request prevents duplicate jobs and charges.

Body

{
  "model": "artany-nano-banana-2",
  "count": 1,
  "prompt": "A cinematic coastal village",
  "resolution": "0.5k",
  "aspect_ratio": "16:9"
}

Parameters

Only these fields are accepted. Defaults are applied before validation and quoting.

FieldTypeRequiredDescriptionDefaultConstraints
modelstringYesStable Artany public model ID. Do not send provider model IDs.artany-nano-banana-2This exact public model ID.
countintegerNoNumber of images to generate in one request. The model-specific maximum is enforced.1Range: 1–4
promptstringYesNatural-language instruction describing the desired image or video. Include subject, setting, composition, motion, lighting, and style as needed.Length: 1–12000
resolutionstringNoRequested output quality tier. Available values are model-specific and can affect price."0.5k"Allowed: 0.5k, 1k, 2k, 4k
web_searchbooleanNoWhether to allow the model's supported web-search enhancement when generating the result.false
aspect_ratiostringNoOutput canvas ratio. It controls the composition frame, not the pixel resolution tier."1:1"Allowed: auto, 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 5:4, 4:5, 21:9, 1:4, 4:1, 1:8, 8:1

Response and task status

A successful submission returns HTTP 202. The response shape is the same for every Artany model; provider-specific task formats are not exposed.

{
  "id": "job_…",
  "object": "generation.job",
  "model": "artany-nano-banana-2",
  "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.

countresolutionweb_searchCredits
10.5kany15
10.5ktrue20
11kany23
11ktrue28
20.5kany30
12kany34
12ktrue39
20.5ktrue40
30.5kany45
21kany46
14kany51
14ktrue56
21ktrue56
40.5kany60
30.5ktrue60
22kany68
31kany69
22ktrue78
40.5ktrue80
31ktrue84
41kany92
24kany102
32kany102
24ktrue112
41ktrue112
32ktrue117
42kany136
34kany153
42ktrue156
34ktrue168
44kany204
44ktrue224