Multi-Model AI API Gateway

One API,
Access
All AI Models.

smai.ai 是一个 多模型 AI 接口转发平台,支持 GPT-5、Claude、Gemini、DeepSeek 等数百种模型。提供 OpenAI 兼容 API,无需修改代码即可切换模型。

Trusted API Platform for Developers

Support GPT, Claude, Gemini, DeepSeek and hundreds of models with OpenAI-compatible API.

View Models

统一的 API 接口让我们可以轻松切换不同的模型,而不需要修改业务代码。接入只用了 10 分钟。

avatar

张x

AI 创业公司 CTO

OpenAI 兼容接口太方便了!直接用现有的 SDK 就能调用各种模型。

avatar

李xx

全栈开发者

价格透明,按量计费,非常适合我们这种中小团队。

avatar

王xx

产品经理

支持的模型太全了,GPT、Claude、Gemini 都有,一个平台搞定所有需求。

avatar

陈x

独立开发者

统一的 API 接口让我们可以轻松切换不同的模型,而不需要修改业务代码。接入只用了 10 分钟。

avatar

张x

AI 创业公司 CTO

OpenAI 兼容接口太方便了!直接用现有的 SDK 就能调用各种模型。

avatar

李xx

全栈开发者

价格透明,按量计费,非常适合我们这种中小团队。

avatar

王xx

产品经理

支持的模型太全了,GPT、Claude、Gemini 都有,一个平台搞定所有需求。

avatar

陈x

独立开发者

统一的 API 接口让我们可以轻松切换不同的模型,而不需要修改业务代码。接入只用了 10 分钟。

avatar

张x

AI 创业公司 CTO

OpenAI 兼容接口太方便了!直接用现有的 SDK 就能调用各种模型。

avatar

李xx

全栈开发者

价格透明,按量计费,非常适合我们这种中小团队。

avatar

王xx

产品经理

支持的模型太全了,GPT、Claude、Gemini 都有,一个平台搞定所有需求。

avatar

陈x

独立开发者

统一的 API 接口让我们可以轻松切换不同的模型,而不需要修改业务代码。接入只用了 10 分钟。

avatar

张x

AI 创业公司 CTO

OpenAI 兼容接口太方便了!直接用现有的 SDK 就能调用各种模型。

avatar

李xx

全栈开发者

价格透明,按量计费,非常适合我们这种中小团队。

avatar

王xx

产品经理

支持的模型太全了,GPT、Claude、Gemini 都有,一个平台搞定所有需求。

avatar

陈x

独立开发者

preview

OpenAI Compatible API

Use any OpenAI API compatible app or SDK to connect directly, no code changes needed.

Support Chat Completions, Embeddings, Images and all other endpoints.

curl https://api.smai.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"model": "gpt-4", "messages": [{"role": "user", "content": "Hello!"}]}'

Multiple Languages, Easy Integration

Use your preferred programming language to quickly integrate with smai.ai via OpenAI-compatible SDK, no new API to learn.

from openai import OpenAI

client = OpenAI(
    api_key="your-api-key",
    base_url="https://api.smai.ai/v1"
)

# 对话补全
response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "system", "content": "你是一个有帮助的助手"},
        {"role": "user", "content": "你好!"}
    ]
)

print(response.choices[0].message.content)

Python SDK

Use the official OpenAI Python SDK, just change the base_url to connect to smai.ai.

  • Fully compatible with OpenAI SDK
  • Support sync and async calls
  • Support streaming output
  • Auto retry and error handling
  • Type hints support

Supported Model Providers

Hundreds of AI Models

GPT-4, Claude 3, Gemini Pro, DeepSeek, Grok — one API to access all models.

OpenAIClaudeGemini

Rich Model Selection

Support Chat Image Videoand various AI capabilities to meet different scenario needs.

OpenAI

GPT-5、GPT-4o、o1、DALL-E、Whisper

Anthropic

Claude 3.5 Sonnet、Claude 3 Opus

Google

Gemini Pro、Gemini Flash

DeepSeek

DeepSeek Chat、DeepSeek Reasoner

xAI

Grok 3、Grok 3 Mini

Multiple Integration Methods

Support OpenAI SDK, Claude SDK, REST API and more. Complete integration in 5 minutes.

Python
from openai import OpenAI

client = OpenAI(
    api_key="your-api-key",
    base_url="https://api.smai.ai/v1"
)

response = client.chat.completions.create(
    model="gpt-4",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)

Complete API Documentation

Detailed endpoint descriptions, code examples, and error handling guides.

View Docs
搜索文档...

快速开始

5 分钟完成注册和 API 调用

API 端点

Chat Completions、Images、Audio

模型列表

GPT、Claude、Gemini、DeepSeek

应用配置

ChatBox、Cherry Studio、OpenCat

Why Choose smai.ai

  • Stable & ReliableHigh availability architecture with 99.9% uptime guarantee.
  • Transparent PricingPay-as-you-go, no hidden fees, multiple payment methods.
  • Quick IntegrationComplete registration and API call in 5 minutes.
  • Read Docs