Introduction

Welcome to TokenCode — a unified AI API gateway that lets you access all major large language models with a single API Key.

What is TokenCode?

TokenCode is an AI API aggregation gateway that unifies 40+ upstream AI providers — including OpenAI, Claude, Gemini, Azure, and AWS Bedrock — behind a single API interface. You no longer need to register separate accounts or manage multiple API Keys for each provider. Simply use TokenCode to call any model.

Core Features

  • Unified API: Compatible with OpenAI, Anthropic, Google Gemini, and other protocols — access all models through a single endpoint
  • Automatic Protocol Conversion: When you connect via Claude Code using the Anthropic protocol, the platform automatically adapts requests and responses to the target model's native protocol — no manual adaptation required
  • Intelligent Routing: Automatic failover and load balancing to ensure high availability
  • Pay-as-you-go: Only pay for the tokens you actually use, with transparent pricing

Authentication

All API requests require API Key authentication. Two methods are supported:

  • Authorization: Bearer <token> — Standard Bearer Token
  • x-api-key: <your-api-key> — Custom request header

Base URL

The base URL for all API requests is:

https://tokencode.dev/

Next Steps

Check out the Quick Start guide to make your first API call in minutes.