Skip to main content
The version is in the URL: /v2. Within v2, changes are only additive, so an integration that works today keeps working. A breaking change would ship as /v3, with /v2 kept running alongside, the way /v1 runs today.

What can change within v2

These ship at any time. Write your client to tolerate them:
  • New endpoints, new optional request fields, new response fields.
  • New enum values (status_detail, error.code of a generation, moderation.category).
  • New models, modes, event types.
  • Reordering fields in a JSON object, changing the length or format of ids within their prefix.
  • New error codes for new failure cases.
  • Wording of detail and message.

What cannot

Removing or renaming a field, changing a type or a default, adding a required field, making validation stricter for existing inputs. These only happen in a new major version, announced with a migration guide and a deprecation period for the old one.

Models change faster than the API

A model or mode is never changed in place in a way that breaks valid requests: a model that changes behavior significantly gets a new id (nano-banana-2.1 → nano-banana-3). A model is marked deprecated, with its sunset_at date and a replacement, at least 90 days before it is removed. See Model lifecycle.