Use ApexApi in Cline

Cline is an autonomous coding agent for VS Code. Point it at ApexApi as an OpenAI compatible provider and every model in our catalog becomes available in the editor, billed to one balance. Setup takes about a minute.

1. Get your API key

Create a key in your dashboard. It starts with ak-.

2. Select the OpenAI Compatible provider

Open Cline's settings (the gear icon in the Cline panel) and under API Provider choose OpenAI Compatible.

3. Enter the base URL and key

Fill in the two connection fields:

Base URL:  https://api.apexapi.dev/v1
API Key:   ak-your-key-here

The trailing /v1 matters.

4. Set the model ID

In the Model field enter an ApexApi model ID in provider/model format, for example:

anthropic/claude-sonnet-4.6
openai/gpt-5.6-sol
deepseek/deepseek-v4-pro

The ID must match the catalog exactly. Browse all IDs on the models page. Pick a model with strong tool calling for agent work; Cline leans on it heavily.

5. Optional: tune the model configuration

Cline's Model Configuration section lets you set the context window, max output tokens, image support and per-token prices for cost tracking inside the editor. Copy the real numbers for your model from the models page; each model lists its context length and USD pricing there. Enable Image Support only for vision models.

Troubleshooting

  • 401 Unauthorized: the key wasn't pasted correctly or has been revoked.
  • Model not found: the model ID doesn't match a catalog ID. Copy it verbatim from the models page.
  • Connection fails: make sure the base URL is exactly https://api.apexapi.dev/v1 (no trailing slash after v1) and your balance is positive.
  • Tool calls misbehave: some small or older models are weak at function calling. Switch to a current frontier model and check the error codes reference; streaming and Cline's request format are fully supported.