1# Upgrade your API integration | Codex use cases1---
2 2name: Upgrade your API integration
3Codex use cases3tagline: Upgrade your app to the latest OpenAI API models.
4 4summary: Use Codex to update your existing OpenAI API integration to the latest
55 recommended models and API features, while checking for regressions before you
6 6 ship.
77skills:
8 8 - token: $openai-docs
9Codex use case9 url: https://github.com/openai/skills/tree/main/skills/.curated/openai-docs
10 10 description: Pull the current model, migration, and API guidance before Codex
11# Upgrade your API integration11 makes edits to your implementation.
12 12bestFor:
13Upgrade your app to the latest OpenAI API models.13 - Teams upgrading from older models or API surfaces
14 14 - Repos that need behavior-preserving migrations with explicit validation
15Difficulty **Intermediate**15starterPrompt:
16 16 title: Upgrade the Integration Safely
17Time horizon **1h**17 body: >-
18 18 Use $openai-docs to upgrade this OpenAI integration to the latest
19Use Codex to update your existing OpenAI API integration to the latest recommended models and API features, while checking for regressions before you ship.19 recommended model and API features.
20 20
21## Best for21
22 22 Specifically, look for the latest model and prompt guidance for this
23- Teams upgrading from older models or API surfaces23 specific model.
24- Repos that need behavior-preserving migrations with explicit validation24
25 25
26# Contents26 Requirements:
27 27
28[← All use cases](https://developers.openai.com/codex/use-cases)28 - Start by inventorying the current models, endpoints, and tool assumptions
29 29 in the repo.
30Copy page [Export as PDF](https://developers.openai.com/codex/use-cases/api-integration-migrations/?export=pdf)30
31 31 - Identify the smallest migration plan that gets us onto the latest
32Use Codex to update your existing OpenAI API integration to the latest recommended models and API features, while checking for regressions before you ship.32 supported path.
33 33
34Intermediate34 - Preserve behavior unless a change is required by the new API or model.
35 35
361h36 - Update prompts using the latest model prompt guidance.
37 37
38Related links38 - Call out any prompt, tool, or response-shape changes we need to review
39 39 manually.
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)40relatedLinks:
41 41 - label: Latest model guide
42## Best for42 url: /api/docs/guides/latest-model
43 43 - label: Prompt guidance
44- Teams upgrading from older models or API surfaces44 url: /api/docs/guides/prompt-guidance
45- Repos that need behavior-preserving migrations with explicit validation45 - label: OpenAI Docs MCP
46 46 url: /learn/docs-mcp
47## Skills & Plugins47 - label: Evals guide
48 48 url: /api/docs/guides/evals
49- [OpenAI Docs](https://github.com/openai/skills/tree/main/skills/.curated/openai-docs)49---
50
51 Pull the current model, migration, and API guidance before Codex makes edits to your implementation.
52
53| Skill | Why use it |
54| --- | --- |
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
57## Starter prompt
58
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.
61Requirements:
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.
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
68Open in the Codex app
69
70Use $openai-docs to upgrade this OpenAI integration to the latest recommended model and API features.
71Specifically, look for the latest model and prompt guidance for this specific model.
72Requirements:
73- Start by inventorying the current models, endpoints, and tool assumptions in the repo.
74- Identify the smallest migration plan that gets us onto the latest supported path.
75- Preserve behavior unless a change is required by the new API or model.
76- Update prompts using the latest model prompt guidance.
77- Call out any prompt, tool, or response-shape changes we need to review manually.
78 50
79## Introduction51## Introduction
80 52
100Make 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.
101 73
102This [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).
103
104## Related use cases
105
106[
107
108### Add evals to your AI application
109
110Ask Codex to inspect your AI application, identify the behavior you want to evaluate, and...
111
112Evaluation Quality](https://developers.openai.com/codex/use-cases/ai-app-evals)[
113
114### Remediate a vulnerability backlog
115
116Bring in approved findings from ticketing tools or vulnerability reporting systems, then use...
117
118Engineering Quality](https://developers.openai.com/codex/use-cases/remediate-vulnerability-backlog)[
119
120### Add Mac telemetry
121
122Use Codex and the Build macOS Apps plugin to add a few high-signal `Logger` events around...
123
124macOS Code](https://developers.openai.com/codex/use-cases/macos-telemetry-logs)
125