Swape.AISwape.AI Docs

Introduction

What is Swape.AI and how does it work

What is Swape.AI?

Swape.AI is a unified AI API gateway that provides a single access point to multiple AI model providers. With one API key, you can access models from OpenAI, Anthropic, Google Gemini, DeepSeek, DashScope (Alibaba Cloud), Xiaomi (MiMo), Kimi, MiniMax, Zai, and more.

Key Features

  • Multi-format compatibility — Use OpenAI, Anthropic, or Gemini API formats with the same API key. Bring your existing SDK and just change the base URL.
  • Broad provider support — Access models from 8+ providers through 3 API protocols, including Chinese AI providers.
  • Smart routing — Automatic load balancing, failover, and channel selection across multiple provider accounts.
  • Usage analytics — Real-time monitoring with per-model billing, detailed consumption logs, and spend tracking.
  • Rate limiting — RPM and TPM rate limits at both user and channel levels to manage capacity.

Supported API Protocols

ProtocolEndpointCompatible WithProviders
OpenAI ResponsesPOST /v1/responsesOpenAI SDKOpenAI, DashScope
Anthropic MessagesPOST /v1/messagesAnthropic SDKAnthropic, DeepSeek, DashScope, Xiaomi, Kimi, MiniMax, Zai
GeminiPOST /v1beta/models/{model}:generateContentGoogle GenAI SDKGemini

The Messages protocol serves the most providers — Anthropic, DeepSeek, DashScope, Xiaomi, Kimi, MiniMax, and Zai models are all accessible through the same /v1/messages endpoint using the Anthropic SDK. DashScope uniquely supports both the Messages and Responses protocols. See Available Models for the full provider and model list.

How It Works

  1. Get an API Key — Sign up at the Swape.AI Console and create an API key.
  2. Choose your protocol — Use whichever API format you prefer (OpenAI, Anthropic, or Gemini). Most providers work through the Messages protocol.
  3. Point your SDK — Set your SDK's base URL to https://swape.ai and use your OpenModel API key.
  4. Make requests — OpenModel routes your request to the best available provider channel.

Next Steps

On this page