Tools

Cursor

AI code editor. Connect ApiMira and use any model from the catalog in one editor.

Cursor accepts a third-party gateway address: its settings have an "Override OpenAI Base URL" field. The key covers chat and agent.

What you need

Base URL
https://apimira.com/v1
API key
am-YOUR_KEYCreated in the dashboard, the API keys section. The full value is shown once.
Model ID
google/gemini-3.7-flashCopy it from the catalogue in full, including the prefix before the slash.

How to connect

  1. 1Open Settings → Models (Ctrl+, or Cmd+,).
  2. 2Enable "Override OpenAI Base URL" and enter the gateway address including /v1.
  3. 3Paste the ApiMira key into "OpenAI API Key": despite the label, it goes to the address you set.
  4. 4Add the Model ID to the model list by hand — Cursor does not load the ApiMira catalogue.
  5. 5Try it in chat, then switch on agent mode: it runs on function calling.
Override OpenAI Base URL: https://apimira.com/v1
OpenAI API Key:           am-YOUR_KEY
Model:                    google/gemini-3.7-flash

Tab and inline suggestions stay on Cursor's own models — that is a limit of the editor itself, your key cannot move them. A fallback for agent work is the Cline or Roo Code extension inside Cursor: it does not touch the editor's own settings.

Function calling is supported, so agentic modes work. Strict JSON mode (response_format) and the retired functions format are rejected with an unsupported_parameter error — the parameter is never silently dropped. Image input is accepted by models marked "Sees images" on the Models page: a content part of type image_url with a data:image/png;base64,… URL (PNG, JPEG or WebP, up to 5 MB each, up to 50 per request). Remote URLs are not fetched, and a model without that mark answers with unsupported_capability — both errors name the reason outright.