跳转到主要内容

API 端点

WisGate 提供两个 API 端点,请根据您的需求选择合适的端点。
端点网络说明
https://wisdom-gate.juheapi.com直连US 服务器集群,网络优化
https://api.wisgate.aiCloudflareUS 服务器集群,性能优化

端点详情

wisdom-gate.juheapi.com

直连 US 服务器集群,网络优化。推荐需要直连、低延迟连接的用户使用。
  • URL: https://wisdom-gate.juheapi.com
  • 网络: 直连
  • 区域: US 服务器集群
  • 优化: 网络优化

api.wisgate.ai

基于 Cloudflare 全球网络,US 服务器集群,性能优化。推荐需要更强稳定性和全球加速的用户使用。
  • URL: https://api.wisgate.ai
  • 网络: Cloudflare
  • 区域: US 服务器集群
  • 优化: 性能优化

使用示例

将应用程序中的 Base URL 替换为任一端点即可。

使用 wisdom-gate.juheapi.com

import openai

client = openai.OpenAI(
    api_key="your-api-key",
    base_url="https://wisdom-gate.juheapi.com/v1"
)

使用 api.wisgate.ai

import openai

client = openai.OpenAI(
    api_key="your-api-key",
    base_url="https://api.wisgate.ai/v1"
)
两个端点支持相同的 API 功能和模型。您可以随时通过更改 Base URL 在两者之间切换。