11# Upgrade your API integration | Codex use cases---
22 name: Upgrade your API integration
33Codex use casestagline: Upgrade your app to the latest OpenAI API models.
44 summary: Use Codex to update your existing OpenAI API integration to the latest
55 recommended models and API features, while checking for regressions before you
66 ship.
77skills:
88 - token: $openai-docs
99Codex use case url: https://github.com/openai/skills/tree/main/skills/.curated/openai-docs
1010 description: Pull the current model, migration, and API guidance before Codex
1111# Upgrade your API integration makes edits to your implementation.
1212 bestFor:
13Upgrade your app to the latest OpenAI API models.
14
15Difficulty **Intermediate**
16
17Time horizon **1h**
18
19Use Codex to update your existing OpenAI API integration to the latest recommended models and API features, while checking for regressions before you ship.
20
21## Best for
22
23 - Teams upgrading from older models or API surfaces13 - Teams upgrading from older models or API surfaces
24 - Repos that need behavior-preserving migrations with explicit validation14 - Repos that need behavior-preserving migrations with explicit validation
15starterPrompt:
16 title: Upgrade the Integration Safely
17 body: >-
18 Use $openai-docs to upgrade this OpenAI integration to the latest
19 recommended model and API features.
25 20
26# Contents
27
28[← All use cases](https://developers.openai.com/codex/use-cases)
29
30Copy page [Export as PDF](https://developers.openai.com/codex/use-cases/api-integration-migrations/?export=pdf)
31
32Use Codex to update your existing OpenAI API integration to the latest recommended models and API features, while checking for regressions before you ship.
33
34Intermediate
35 21
36221h Specifically, look for the latest model and prompt guidance for this
23 specific model.
37 24
38Related links
39
40[Latest model guide](https://developers.openai.com/api/docs/guides/latest-model) [Prompt guidance](https://developers.openai.com/api/docs/guides/prompt-guidance) [OpenAI Docs MCP](/learn/docs-mcp) [Evals guide](https://developers.openai.com/api/docs/guides/evals)
41
42## Best for
43
44 - Teams upgrading from older models or API surfaces
45 - Repos that need behavior-preserving migrations with explicit validation
46 25
4726## Skills & Plugins Requirements:
48
49- [OpenAI Docs](https://github.com/openai/skills/tree/main/skills/.curated/openai-docs)
50
51 Pull the current model, migration, and API guidance before Codex makes edits to your implementation.
52 27
5328| Skill | Why use it | - Start by inventorying the current models, endpoints, and tool assumptions
5429| --- | --- | in the repo.
55| [OpenAI Docs](https://github.com/openai/skills/tree/main/skills/.curated/openai-docs) | Pull the current model, migration, and API guidance before Codex makes edits to your implementation. |
56 30
5731## Starter prompt - Identify the smallest migration plan that gets us onto the latest
32 supported path.
58 33
59Use $openai-docs to upgrade this OpenAI integration to the latest recommended model and API features.
60Specifically, look for the latest model and prompt guidance for this specific model.
61 Requirements:
62- Start by inventorying the current models, endpoints, and tool assumptions in the repo.
63- Identify the smallest migration plan that gets us onto the latest supported path.
64 - Preserve behavior unless a change is required by the new API or model.34 - Preserve behavior unless a change is required by the new API or model.
65 - Update prompts using the latest model prompt guidance.
66- Call out any prompt, tool, or response-shape changes we need to review manually.
67 35
68Use $openai-docs to upgrade this OpenAI integration to the latest recommended model and API features.
69Specifically, look for the latest model and prompt guidance for this specific model.
70 Requirements:
71- Start by inventorying the current models, endpoints, and tool assumptions in the repo.
72- Identify the smallest migration plan that gets us onto the latest supported path.
73 - Preserve behavior unless a change is required by the new API or model.
74 - Update prompts using the latest model prompt guidance. 36 - Update prompts using the latest model prompt guidance.
7537- Call out any prompt, tool, or response-shape changes we need to review manually.
38 - Call out any prompt, tool, or response-shape changes we need to review
39 manually.
40relatedLinks:
41 - label: Latest model guide
42 url: /api/docs/guides/latest-model
43 - label: Prompt guidance
44 url: /api/docs/guides/prompt-guidance
45 - label: OpenAI Docs MCP
46 url: /learn/docs-mcp
47 - label: Evals guide
48 url: /api/docs/guides/evals
49---
76 50
77## Introduction51## Introduction
78 52
98Make sure to build an evals pipeline that you can run every time you make changes to your integration, to verify there is no regression in behavior.72Make sure to build an evals pipeline that you can run every time you make changes to your integration, to verify there is no regression in behavior.
99 73
100This [cookbook guide](https://developers.openai.com/cookbook/examples/evaluation/building_resilient_prompts_using_an_evaluation_flywheel) covers in detail how to do this using our [Evals API](https://developers.openai.com/api/docs/guides/evals).74This [cookbook guide](https://developers.openai.com/cookbook/examples/evaluation/building_resilient_prompts_using_an_evaluation_flywheel) covers in detail how to do this using our [Evals API](https://developers.openai.com/api/docs/guides/evals).
101
102## Related use cases
103
104[
105
106### Add Mac telemetry
107
108Use Codex and the Build macOS Apps plugin to add a few high-signal `Logger` events around...
109
110macOS Code](https://developers.openai.com/codex/use-cases/macos-telemetry-logs)[
111
112### Create a CLI Codex can use
113
114Ask Codex to create a composable CLI it can run from any folder, combine with repo scripts...
115
116Engineering Code](https://developers.openai.com/codex/use-cases/agent-friendly-clis)[
117
118### Create browser-based games
119
120Use Codex to turn a game brief into first a well-defined plan, and then a real browser-based...
121
122Engineering Code](https://developers.openai.com/codex/use-cases/browser-games)