API versioning

The Mira API uses URL-based versioning to ensure backward compatibility and smooth migration between versions. The current stable version is v1.

Current version

Base URL (v1)
https://api.vmira.ai/v1

All endpoints include the version in the URL path. See the endpoint reference for the full list.

How versioning works

  • URL-basedThe version is part of the URL: /v1/chat/completions. When v2 is released, the URL will be /v2/chat/completions.
  • No implicit versionsRequests without a version in the URL are not supported. Always specify the version explicitly.
  • Default versionCurrently the only available version is v1. When new versions are released, v1 will continue to work.

Backward compatibility policy

Mira follows a strict backward compatibility policy within a major version:

  • Non-breaking changesAdding new fields to responses, new optional request parameters, and new endpoints — these changes do not require client code updates.
  • Breaking changesRemoving fields, changing types, renaming parameters, and behavior changes — these are only possible in a new major version (v2).
Your code that works with v1 will continue to work without changes, even if we add new fields to responses or new optional parameters.

Deprecation notices

If an API version is scheduled for removal, Mira provides at least 12 months for migration. Notices are published in the documentation, the blog, and sent via email.

Deprecation header
HTTP/1.1 200 OK
Deprecation: Sun, 01 Jan 2028 00:00:00 GMT
Sunset: Sun, 01 Jan 2028 00:00:00 GMT
Link: <https://docs.vmira.ai/migration/v1-to-v2>; rel="deprecation"

Next steps