File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
src/content/docs/ai-gateway/providers Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments