Skip to content

About

QuickRouter related repository

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

国内开发者大模型 API 接入指南

解决国内开发者接入 GPT、Claude、Gemini、DeepSeek 等大模型 API 时常见的网络、支付和多模型切换问题。

目录

  • GPT-4o 接入教程
  • Claude 接入教程
  • Gemini 接入教程
  • DeepSeek 接入教程
  • OpenAI 兼容 SDK 示例
  • 常见报错与排查

为什么需要统一接入层

  • 降低不同模型切换成本
  • 统一接口协议
  • 简化账号和计费管理
  • 提高国内访问可用性

OpenAI 兼容接入方式

from openai import OpenAI

client = OpenAI(
    api_key="你的API_KEY",
    base_url="https://api.quickrouter.ai/"
)

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

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

推荐服务

QuickRouter API

  • 一个 Key 接入 300+ 模型
  • 兼容 OpenAI 接口协议
  • 按量付费,无月费
  • 适合国内开发者快速接入

适用人群

  • AI 应用开发者
  • 独立开发者
  • 出海产品团队
  • 需要多模型路由的企业团队

About

QuickRouter related repository

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors