Getting started

Base URL

Which address to use for each protocol and tool, and when to include /v1.

The gateway root URL is shown below. Each protocol and tool appends its own paths. An extra or missing /v1 is a common cause of 404 errors.

Root URL
https://api.keyvia.cc

Without /v1. Use this directly for Claude Code, Anthropic SDK, Cherry Studio, and Gemini CLI.

By protocol

For official SDKs or direct HTTP requests, choose the URL for your protocol:

ProtocolBase URL for the SDKFull endpoint
OpenAI compatiblehttps://api.keyvia.cc/v1

base_url / baseURL in the OpenAI SDK

https://api.keyvia.cc/v1/chat/completions
Anthropic compatiblehttps://api.keyvia.cc

The Anthropic SDK appends /v1/messages

https://api.keyvia.cc/v1/messages
Gemini compatiblehttps://api.keyvia.cc

The Google GenAI SDK appends /v1beta

https://api.keyvia.cc/v1beta/models/{model}:generateContent

By tool

Many tools automatically append /v1 or the endpoint path and need only the root URL. Others require the full prefix. These are the values used in the tool guides:

ToolURL to enterNotes
Claude Codehttps://api.keyvia.ccANTHROPIC_BASE_URL: root URL
Codex CLIhttps://api.keyvia.cc/v1base_url in config.toml, including /v1
Gemini CLIhttps://api.keyvia.ccGOOGLE_GEMINI_BASE_URL: root URL
Cursorhttps://api.keyvia.cc/v1Override OpenAI Base URL, including /v1
Cline / Roo Codehttps://api.keyvia.cc/v1 or https://api.keyvia.ccInclude /v1 for OpenAI Compatible; use the root URL for Anthropic
Cherry Studiohttps://api.keyvia.ccUse the root URL for all three protocols
OpenCodehttps://api.keyvia.cc/v1The provider’s baseURL, including /v1
CC Switchhttps://api.keyvia.ccConsole import fills this in automatically

Troubleshooting

SymptomCommon causes
404 Not FoundAn extra or missing /v1, or an unknown model name.
401 UnauthorizedAn incorrect or incomplete key, or a missing Bearer prefix in the header.
Gemini request failsGemini uses /v1beta rather than /v1. Enter the root URL in the SDK.

For more status codes, see Error codes.

KeyVia Logo
KeyVia

One API for full-power Claude, GPT, Gemini and other leading AI models at ultra-low prices.

© 2026 KeyVia. All rights reserved.