Use ApexApi in Kilo Code

Kilo Code is an autonomous coding agent for VS Code. Point it at ApexApi as an OpenAI compatible provider and run any model from our catalog on one balance.

1. Get your API key

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

2. Select the OpenAI Compatible provider

Click the Kilo Code icon in the VS Code sidebar, open Settings > Providers and set API Provider to OpenAI Compatible.

3. Enter the connection details

Base URL:  https://api.apexapi.dev/v1
API Key:   ak-your-key-here
Model ID:  anthropic/claude-sonnet-4.6

The trailing /v1 matters.

4. Pick your model

The ID must match the catalog exactly, in provider/model format. Browse all IDs on the models page.

Pick a model with strong tool calling; Kilo's agent mode leans on it heavily.

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.
  • Anything else: check the error codes reference; streaming and tool calling are fully supported on /v1/chat/completions.