Configure Cursor to access 123API through the OpenAI-compatible base URL.
Open Cursor settings and find the model configuration section.
Fill in:
| Field | Value |
|---|---|
| API Key | Your 123API API key |
| Base URL | https://123api.co/v1 |
Cursor works well with OpenAI-compatible APIs, so the main change is the base URL and your model selection.
Recommended examples:
gpt-4o-mini for fast everyday workgpt-4o for higher-quality coding tasksgpt-5 or claude-sonnet for harder reasoning tasksCursor 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.
Confirm the Base URL includes /v1, the API key is valid and your local environment can access https://123api.co.
Try a faster model, reduce prompt size and check your local network latency.
Recheck the model selected for chat, confirm it is supported by your account and verify the API key has sufficient balance.