Authentication
This provider requires authentication.
- api_key: X.AI Grok API Key (required: True, sensitive: True)
In workflows
This provider can be used in workflows.
As "step" to query data, example:
yaml
steps:
- name: Query grok
provider: grok
config: "{{ provider.my_provider_name }}"
with:
prompt: {value}
model: {value}
max_tokens: {value}
structured_output_format: {value}If 你需要 workflow examples with this provider, please raise a GitHub issue.
连接 Provider
要连接到 Grok,您需要获取一个 API 密钥:
- 在 X.AI 平台上订阅 Grok。
- 在您的 X.AI 账户设置中导航到 API 部分。
- 为 Keep 生成一个新的 API 密钥。
在 Grok Provider 配置的 authentication 部分使用生成的 API 密钥。