Skip to Content

Using 123API in Cursor

Configure Cursor to access 123API through the OpenAI-compatible base URL.

Prerequisites

  1. Install Cursor
  2. Obtain a 123API API key
  3. Confirm the model IDs you want to use

Step 1: Open Cursor Settings

Open Cursor settings and find the model configuration section.

Step 2: Configure API Information

Fill in:

FieldValue
API KeyYour 123API API key
Base URLhttps://123api.co/v1

Cursor works well with OpenAI-compatible APIs, so the main change is the base URL and your model selection.

Step 3: Choose Models

Recommended examples:

Step 4: Map Models to Cursor Features

Cursor lets you use different models for different workflows:

If your plan allows it, use a faster model for autocomplete and a stronger model for chat or complex edits.

Common Issues

Cursor cannot connect+

Confirm the Base URL includes /v1, the API key is valid and your local environment can access https://123api.co.

Responses are slow+

Try a faster model, reduce prompt size and check your local network latency.

Autocomplete works but chat fails+

Recheck the model selected for chat, confirm it is supported by your account and verify the API key has sufficient balance.