Requirements
Cursor Account Requirements
An active paid Cursor subscription (such as Pro or Teams) is required for BYOK (Bring Your Own Key). Free / Hobby accounts cannot use the method in this guide to call Step models through Cursor’s built-in Chat or Agent.Install Cursor
Download and install the editor from the Cursor website. Cursor 3.15.20 or later is recommended.Choose a Billing Method
- Standard API (pay-as-you-go): Confirm that your account has available balance or credits and permission to use the model.
- Step Plan (subscription quota): Confirm that your Step Plan subscription is active, has available quota, and provides access to the model.
Obtain an API Key
Create an API key on the StepFun platform API keys page.Configure Cursor
This configuration applies to Chat and Agent. Code completion (Tab) continues to use Cursor’s built-in models.
1
Open Model Settings
Open Cursor Settings and go to Models. You can also search for
Cursor Settings in the command palette.2
Configure the Connection
Enter the following connection settings on the Models page. The table uses the Step Plan base URL as an example:
Set OpenAI API Key to your Step API key for request authentication.
Select the base URL for your billing method:
Standard API (pay-as-you-go): https://api.stepfun.ai/v1
Step Plan (subscription quota): https://api.stepfun.ai/step_plan/v1
/chat/completions in the base URL; Cursor appends this path automatically.3
Add a Custom Model
Add a custom model on the Models page and set Model ID to
step-5-preview, step-3.7-flash, step-3.5-flash-2603, or step-3.5-flash.step-5-preview has a 1M-token model context window.4
Select the Model and Start a New Conversation
Open Chat or Agent, select the Step model you added, and start a new conversation to test the integration.
Verify the Integration
Text Connectivity
In a new conversation, enter:OK without a 401, 403, or protocol error.
Agent Tool Calls
Use a separate test directory on a machine with Python installed. Create aREADME.md file containing Cursor Step Plan test, then open that directory in Cursor. In a new Agent conversation with the Step model selected, enter:
- The conversation shows actual tool calls to read
README.md, createhello.py, and execute a command. hello.pyexists in the working directory, and you can inspect its contents and changes in the editor.- The script outputs
Hello, world!.
Request Routing
In the Step platform usage or request records, confirm that the model ID matches your selection in Cursor and that the billing channel matches the configured standard API or Step Plan base URL.Restart Verification (Optional)
Quit Cursor completely and reopen it. Confirm that the Models settings are retained, then repeat the text connectivity test in a new conversation with the same model.Switch Back to Cursor Models
Changing the model selector alone does not disable the custom base URL.- In Cursor Settings → Models, disable Override OpenAI Base URL.
- Disable Use OpenAI API Key if needed.
- Start a new conversation and select the Cursor model you want to use.
Frequently Asked Questions
Q: Why am I prompted to upgrade or shown a usage limit after adding an API key?
Q: Why am I prompted to upgrade or shown a usage limit after adding an API key?
First, check the subscription for the account currently signed in to Cursor in the Cursor Dashboard:
- Free / Hobby: Free accounts do not support BYOK. Meet the Cursor account requirements first.
- Active paid subscription: Confirm that you are signed in to the subscribed Cursor account and have selected the custom Step model in a new conversation. For team accounts, also confirm that the administrator allows BYOK and check team usage limits. Check your Step account’s model permissions and balance or subscription quota for the selected billing method.
Q: How do I resolve Connection error?
Q: How do I resolve Connection error?
Check the following in order:
- Override OpenAI Base URL is enabled and the base URL matches your billing method:
https://api.stepfun.ai/v1for the standard API orhttps://api.stepfun.ai/step_plan/v1for Step Plan. - The base URL does not include a full API path such as
/chat/completions. - The API key is valid and Use OpenAI API Key is enabled.
- The model ID is spelled correctly and your account has access to the model through the selected channel.
- Your network can reach
https://api.stepfun.ai. If you use a proxy, check its configuration as well.
Q: How do I resolve 401 Incorrect API key?
Q: How do I resolve 401 Incorrect API key?
Check that:
- The key was copied completely, contains no extra spaces or line breaks, and has not been revoked.
- The key belongs to your international (
.ai) account, not another site or provider. - Use OpenAI API Key is
ON.
Q: How do I resolve model not found / BAD_MODEL_NAME?
Q: How do I resolve model not found / BAD_MODEL_NAME?
- Confirm that the model ID is correct, such as
step-5-preview, and that your account has access to it through the selected channel. - Confirm that the override is enabled and the base URL matches the selected billing method.
- Select that custom model in a new Chat or Agent conversation.
Q: Why does Chat work but Agent cannot execute tasks?
Q: Why does Chat work but Agent cannot execute tasks?
- Confirm that you are using Agent mode, not only a text conversation mode.
- Select the custom Step model rather than Auto, then retry the minimal Agent task in a new conversation.
- Check whether Cursor is waiting for permission to edit files or execute terminal commands. The Python example also requires a working local Python interpreter.
- Distinguish model request failures from tool execution failures. A missing Python installation or denied command does not indicate a failed model connection.

