ChatAnywhere
api.chatanywhere.tech面向开发者的免费 ChatGPT API 中转服务,提供一定额度的免费 API 配额,国内直连无需翻墙,支持 OpenAI 标准 API 格式,适合个人开发者体验和小规模测试。
计费方式
按量计费
价格区间
—
注册方式
邮箱、GitHub
支持模型
GPT-4oGPT-3.5
最后更新:2026-03-19
如何接入 ChatAnywhere?
ChatAnywhere 接口完全兼容 OpenAI API 格式。只需将 base_url 替换为中转站地址,即可在任何支持自定义 API 端点的客户端或代码中使用。
from openai import OpenAI
client = OpenAI(
api_key="你的 ChatAnywhere API Key",
base_url="https://api.chatanywhere.tech/v1"
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "你好"}]
)
print(response.choices[0].message.content)常见问题
ChatAnywhere 支持哪些模型?
ChatAnywhere 支持 GPT-4o、GPT-3.5 等模型。
ChatAnywhere 价格如何?
采用按量计费模式,具体价格请查看官网价格页面。
国内可以直接访问 ChatAnywhere 吗?
可以。ChatAnywhere 支持国内直连,无需科学上网即可访问和调用 API。