11# Upgrade your API integration | Codex use cases---
22 name: Upgrade your API integration
33[← All use cases](https://developers.openai.com/codex/use-cases)tagline: Upgrade your app to the latest OpenAI API models.
44 summary: Use Codex to update your existing OpenAI API integration to the latest
55Use Codex to update your existing OpenAI API integration to the latest recommended models and API features, while checking for regressions before you ship. recommended models and API features, while checking for regressions before you
66 ship.
77Intermediateskills:
88 - token: $openai-docs
991h url: https://github.com/openai/skills/tree/main/skills/.curated/openai-docs
1010 description: Pull the current model, migration, and API guidance before Codex
1111Related links makes edits to your implementation.
1212 bestFor:
13[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)
14
15## Best for
16
17 - Teams upgrading from older models or API surfaces13 - Teams upgrading from older models or API surfaces
18 - 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.
19 20
20## Skills & Plugins
21
22- [OpenAI Docs](https://github.com/openai/skills/tree/main/skills/.curated/openai-docs)
23 21
2422 Pull the current model, migration, and API guidance before Codex makes edits to your implementation. Specifically, look for the latest model and prompt guidance for this
23 specific model.
25 24
26## Starter prompt
27 25
28Use $openai-docs to upgrade this OpenAI integration to the latest recommended model and API features.
29Specifically, look for the latest model and prompt guidance for this specific model.
30 Requirements:26 Requirements:
3127- Start by inventorying the current models, endpoints, and tool assumptions in the repo.
3228- Identify the smallest migration plan that gets us onto the latest supported path. - Start by inventorying the current models, endpoints, and tool assumptions
29 in the repo.
30
31 - Identify the smallest migration plan that gets us onto the latest
32 supported path.
33
33 - 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.
35
34 - Update prompts using the latest model prompt guidance. 36 - Update prompts using the latest model prompt guidance.
3537- 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---
36 50
37## Introduction51## Introduction
38 52
58Make 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.
59 73
60This [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).
61
62## Related use cases
63
64[
65
66### Add Mac telemetry
67
68Use Codex and the Build macOS Apps plugin to add a few high-signal `Logger` events around...
69
70macOS Code](https://developers.openai.com/codex/use-cases/macos-telemetry-logs)[
71
72### Create a CLI Codex can use
73
74Ask Codex to create a composable CLI it can run from any folder, combine with repo scripts...
75
76Engineering Code](https://developers.openai.com/codex/use-cases/agent-friendly-clis)[
77
78### Create browser-based games
79
80Use Codex to turn a game brief into first a well-defined plan, and then a real browser-based...
81
82Engineering Code](https://developers.openai.com/codex/use-cases/browser-games)