Skip to content

Codex/ChatGPT

We recommend using CC Switch to manage Codex/ChatGPT provider configuration. Save getapi.one and getapi.pro as separate providers, then switch between services or models without rewriting keys by hand.

TIP

Recommended path: install CC Switch first, prepare the Codex/ChatGPT client you want to use, then add GetAPI as an OpenAI-compatible provider.

This guide uses the name Codex/ChatGPT for the current Codex-related client experience and related ChatGPT desktop workflows.

Download clients

CC Switch

Use the CDN package first. If your system needs a different build, use the CC Switch releases page as the fallback.

ClientSystem / scenarioCDN downloadFallback
CC SwitchmacOSDownloadGitHub Releases
CC SwitchWindowsDownloadGitHub Releases
CC SwitchMore versionsGitHub Releases

Codex/ChatGPT

Use ChatGPT desktop app for the current desktop experience. If you need the standalone Codex client, use the matching package below; Intel Mac users can also download the corresponding build from OpenAI Codex releases.

ClientSystem / scenarioRecommended downloadOfficial / backup
ChatGPT desktop appmacOS / Windows / LinuxOfficial downloadDocs
Codex clientmacOS Apple SiliconDownloadGitHub Releases
Codex clientmacOS IntelDownloadGitHub Releases
Codex clientWindowsDownloadGitHub Releases
Codex IDE extensionVS Code / Cursor / Windsurf / JetBrainsDocsDocs

For terminal usage, read the separate Codex CLI setup guide.

Before you start

  • Install CC Switch.
  • Install ChatGPT desktop app, Codex client, or the IDE extension you plan to use.
  • Complete GetAPI sign-up and login. If you have not done that yet, start from the sign-up and login overview.
  • Apply for a GetAPI API Key. If you have not created one yet, read the API Key overview.
  • Confirm which service you want to use: getapi.one or getapi.pro.
  • Confirm the model name you want to use.

Choose a GetAPI service

Keep the API Key and Base URL from the same service. For Codex and CC Switch, the Base URL must include /v1. Do not mix getapi.one keys with the getapi.pro relay address, or the other way around.

ServiceCodex Base URLAPI Key sourceAPI Key guide
getapi.onehttps://www.getapi.one/v1getapi.one API KeysAPI Key guide
getapi.prohttps://relay-api.getapi.pro/v1getapi.pro API KeysAPI Key guide

Configure with CC Switch

1. Open CC Switch

Launch CC Switch first and prepare to enter the Codex provider configuration area.

2. Open the Codex provider tab

In CC Switch, select the Codex provider tab, then click the plus button to add a new provider.

CC Switch Codex provider list and add button

3. Choose custom configuration

On the add provider page, select custom configuration, then scroll down if you need to find it.

CC Switch add provider page with custom configuration selected

4. Fill in the GetAPI provider

Enter a provider name, paste the matching API Key, and fill in the API request address with /v1, such as https://relay-api.getapi.pro/v1.

CC Switch GetAPI Pro provider configuration with Base URL ending in /v1
Configuration itemgetapi.progetapi.oneNotes
Provider nameGetAPI ProGetAPI OneCustom name for recognition.
Official websitehttps://www.getapi.prohttps://www.getapi.oneProvider website. This field can be left blank if CC Switch does not require it.
API Keygetapi.pro API Keygetapi.one API KeyCopy the key from the matching service. Do not mix keys and addresses across services.
API request addresshttps://relay-api.getapi.pro/v1https://www.getapi.one/v1Must include /v1.
Default modelFor example, gpt-5.6-solFor example, gpt-5.6-solUse a model enabled in the matching GetAPI console.

5. Enable the provider

After saving, return to the provider list and enable the GetAPI provider you just added.

CC Switch provider list with GetAPI Pro enabled

Verify the connection

1. Verify in Codex/ChatGPT

Open Codex/ChatGPT and send a short message. If the model responds normally, the provider is available.

Codex ChatGPT client responding successfully

Common issues

ProblemPossible reason
401 / UnauthorizedThe API Key is incorrect, disabled, or does not match the selected service address.
404 / Not FoundThe Base URL is wrong, missing /v1, or the client appended an incompatible path.
Model not foundThe model name is incorrect, or the selected group does not enable that model.
No response or timeoutBalance, quota, rate limit, network, or service availability issue.

Security tips

Never put API Keys in public screenshots, public repositories, frontend code, or shared documents. Hide keys, account information, and balance before sharing a screenshot for troubleshooting.

References

OpenAI official documentation provides the ChatGPT app, Codex CLI, and Codex IDE extension references. The CDN download links above are project-provided mirrors.