6 image models · capabilities and pricing in one placeSee pricing →
API documentationRetrieve a model

OGA DEVELOPER CENTER

API v1 · Last verified 2026-08-15

Retrieve a model

Read one model's operations, parameters, sizes, ratios, and price matrices.

GET/api/v1/models/{model_id}
Browse common endpoints

Overview

One logical model may have multiple route rows. Read each row's closed capability set. Only exact published and routable combinations may be submitted; omitted 1K, 2K, 4K, or ratio combinations must not be inferred.

Authentication: No authentication

Request

Path parameters

NameTypeDescription
model_idrequiredstringPublished logical model ID.

Response

JSON endpoints use the standard response envelope. HTTP status represents the request outcome; business errors are not disguised as HTTP 200.

HTTPMeaning
200Request succeeded
404Resource not found or signature invalid
422Request-structure validation failed
500Internal service error

Complete success example (optional fields vary by state)

{
  "code": 0,
  "message": "success",
  "data": {
    "model_id": "gpt-image-2",
    "company": "OpenAI",
    "modality": "image",
    "lifecycle_status": "active",
    "availability_status": "available",
    "capabilities": [],
    "verified_capabilities": []
  },
  "request_id": "8f25b42f-2ed1-4ad7-99de-61d7f779bc7b",
  "timestamp": "2026-08-10T00:00:00Z"
}

Important boundaries

  • Use the public price_matrix for customer pricing, never supplier acquisition cost.
  • All three Nano Banana models explicitly return custom_aspect_ratio_supported=false and custom_pixel_size_supported=false; submit only discrete tier/ratio pairs listed by a route.
  • Arbitrary WIDTHxHEIGHT may be attempted only when a current routable route explicitly returns parameters.size.custom_size_constraints. Without that field, custom pixel sizes are unsupported.

Open the machine-readable OpenAPI

Code & API explorer

GET · /api/v1/models/{model_id}

curl -X GET "$OGA_BASE_URL/api/v1/models/gpt-image-2" \
  -H "X-Request-Id: <UUID_V4>" \
  -H "Accept-Language: en-US"