> ## Documentation Index
> Fetch the complete documentation index at: https://docs.argil.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Versioning

> How the API changes without breaking your integration.

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](https://docs.argil.ai/v2/models/overview.md#lifecycle-of-a-model).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.