> Treat every model id, price, size, length and limit in this documentation as an illustration of the shape of the value, never as a constant to hardcode. The live values are served by GET /v1/models and GET /public/models on the HyperFlow HI API.

# Cursor

> Use HyperFlow HI models in Cursor's chat and agent.

[Cursor](https://cursor.com) is an AI code editor built on VS Code. Its **Override OpenAI Base URL** setting sends requests from Cursor's OpenAI slot to HyperFlow HI instead of OpenAI.

### Create a key

Create a key for Cursor on [API keys](https://hi.hyperflow.fun/console/keys).

### Point Cursor at HyperFlow HI

1. Open **Cursor Settings** (`Cmd/Ctrl + ,`) and go to **Models**.
2. Expand **API Keys** and turn on **OpenAI API Key**.
3. Paste your HyperFlow HI key into **OpenAI API Key**.
4. Turn on **Override OpenAI Base URL** and set it to:

```text
https://api.hi.hyperflow.fun/v1
```

### Add models

Under **Models**, choose **+ Add model** and enter a HyperFlow HI model id, such as `deepseek/deepseek-flash`. Copy ids from the [Marketplace](https://hi.hyperflow.fun/marketplace).

### Pick the model

Open the model picker in chat or agent and choose the model you added. Its requests now go through HyperFlow HI.

## Limits

* **Tab completions** always use Cursor's own models; they don't go through your key.
* **Cursor's own models** other than Claude and Gemini, such as Composer and Grok, are sent to HyperFlow HI too while the override is on, and fail. Turn **OpenAI API Key** off to use them again ([Cursor forum](https://forum.cursor.com/t/custom-openai-override-and-cursor-models-cannot-both-stay-enabled/172795)).
* **A missing `messages` field error** means Cursor sent a request in its newer format, which it does for some GPT models. Use a model that isn't a GPT model, such as `deepseek/deepseek-flash` ([Cursor forum](https://forum.cursor.com/t/override-openai-base-url-sends-responses-api-payload-to-chat-completions-but-expects-chat-completions-output/159298)).
* **Auto mode** may not use your key. See [Cursor's docs](https://cursor.com/help/models-and-usage/api-keys) for its current behaviour.
* Cursor sends the requests from its own servers, so HyperFlow HI sees Cursor's addresses, not yours.

## Troubleshooting

* **Invalid API key**: make sure you pasted the HyperFlow HI key (`sk-...`) and that it's switched on in the Console.
* **Model not found**: the id must match the Marketplace exactly, including the lab, such as `openai/gpt-6-luna`.
* **Base URL**: it must end in `/v1`.
* **402**: your balance is too low.