C.W.K.
Stream
Lesson 07 of 08 · published

API Versioning

~22 min · versioning, deprecation, model-pins

Level 0Tokenizer
0 XP0/54 lessons0/10 achievements
0/120 XP to next level120 XP to go0% complete

OpenAI uses a simple versioning scheme via the openai-version response header. The current version is 2020-10-01 — a surprisingly old date that reflects their commitment to backwards compatibility.

How Versioning Works

  • The openai-version header is returned in every response.
  • OpenAI maintains backwards compatibility for existing endpoints.
  • New features are added additively (new parameters, new response fields).
  • Deprecated features follow a published deprecation schedule with advance notice.

Response Headers for Debugging

HeaderDescription
openai-organizationOrganization associated with the request
openai-processing-msServer-side processing time
openai-versionREST API version (currently 2020-10-01)
x-request-idUnique request ID for support tickets

Deprecation Policy

Models are deprecated with advance notice. For example, the Assistants API was deprecated August 26, 2026, with migration guidance to the Responses API. Old model versions (like gpt-4-turbo) remain available but may have higher pricing. Always test against new model versions before switching production workloads.

External links

Exercise

Write a CI check that fails the build if any code path uses an unpinned model name. Hint: grep for model="gpt-* and require a date suffix on prod paths.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.