Skip to content

Commit eff6026

Browse files
Update src/content/docs/ai-gateway/providers/grok.mdx
Co-authored-by: Pedro Sousa <[email protected]>
1 parent b517dff commit eff6026

File tree

1 file changed

+11
-11
lines changed
  • src/content/docs/ai-gateway/providers

1 file changed

+11
-11
lines changed

src/content/docs/ai-gateway/providers/grok.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ When making requests to [Grok](https://docs.x.ai/docs#getting-started), replace
2121
### cURL
2222

2323
```bash title="Request"
24-
curl -X POST https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/grok/v1/chat/completions \
25-
--header 'content-type: application/json' \
26-
--header 'Authorization: Bearer {grok_api_token}' \
27-
--data '{
28-
"model": "grok-beta",
29-
"messages": [
30-
{
31-
"role": "user",
32-
"content": "What is Cloudflare?"
33-
}
34-
]
24+
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/grok/v1/chat/completions \
25+
--header "content-type: application/json" \
26+
--header "Authorization: Bearer <GROK_API_TOKEN>" \
27+
--data '{
28+
"model": "grok-beta",
29+
"messages": [
30+
{
31+
"role": "user",
32+
"content": "What is Cloudflare?"
33+
}
34+
]
3535
}'
3636
```
3737

0 commit comments

Comments
 (0)