跳至正文

本页面仅提供英文版本。在已翻译的页面上将保留您的中文语言偏好。

一行代码即可迁移,无需重写应用

Grid 原生兼容 OpenAI 协议,因此您现有的客户端无需任何封装即可直接运行。您所获得的是未来随时调整模型策略的自由度。

发布时间

Grid speaks the OpenAI protocol. The client library you already have works against it without a wrapper, an adapter, or a vendor SDK. You change the base URL and keep everything else.

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://api.genai.forlex.cloud/v1",
    api_key=os.environ["FORLEX_API_KEY"],
)

The point is not the saved afternoon#

Being able to move in one line is worth something, but it is not the argument. The argument is what the line buys you afterwards: you can swap models, pin a version, or let Grid pick a route for you, and none of those changes your integration.

That is the difference between a provider you can leave and a provider you have integrated with. The second one has priced its switching cost into your roadmap, whether or not anyone wrote it down.

Check the parameter before you depend on it#

Speaking a protocol is not the same as implementing every corner of it, and claiming otherwise would be the kind of thing you only discover in production. OpenAI compatibility lists what is supported today. Read it before you build on a parameter, not after.

继续阅读

只需修改一行 base_url,即可发起您的首次调用。

申请访问权限

Agent API 与 Grid 访问权限均实行邀请制。具体启用的服务与条款将在入驻引导期间确认。

草稿仅在本次浏览器访问期间保留。刷新页面将清空草稿。

依据我们的 隐私与数据保护声明 (GDPR、LGPD 与 CCPA)进行处理。绝不出售或共享任何个人数据。

联系我们

请告知您的基本信息和需要评估的需求内容。

草稿仅在本次浏览器访问期间保留。刷新页面将清空草稿。

在本次访问期间,每个主题都会保留各自的需求内容。切换主题不会丢失您的联系方式。

依据我们的 隐私与数据保护声明 (GDPR、LGPD 与 CCPA)进行处理。绝不出售或共享任何个人数据。

[隐私与遥测控制]

数据保护与遥测偏好设置

Forward Intelligence (国际业务由 Forlex, LLC 运营,巴西业务由 Forlex Ltda运营) 尊重您在欧盟/英国 GDPR、巴西 LGPD(Lei nº 13.709/2018)以及加利福尼亚州 CCPA/CPRA 下享有的权利。

严格必要的存储始终启用

在您的浏览器本地存储颜色主题 (grid-theme)、文档导航状态以及您的隐私偏好设置 (fwdi_privacy_consent_v1)。不会设置任何第三方 Cookie 或跨站追踪器。

语言选择器仅将您的语言偏好保存在第一方 Cookie (fwdi-language) 中,有效期最长为一年。这不会启用任何可选的分析功能。

脱敏路由与漏斗分析已禁用

收集列入白名单的营销路由上的汇总页面浏览量及粗粒度商业漏斗事件,采集工具为 @vercel/analytics。查询字符串、动态路径和个人数据在发送前均会在客户端进行脱敏处理。

阅读完整的 GDPR / LGPD / CCPA 声明