Skip to content

Commit c988b75

Browse files
committed
fix: update Replicate example to use Bearer auth and include version
- Change Authorization header from 'Token' to 'Bearer' prefix - Add version field to request body with anthropic/claude-4.5-haiku example - These changes reflect the actual working implementation
1 parent 6b9e3a7 commit c988b75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/docs/ai-gateway/usage/providers/replicate.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ When making requests to Replicate, ensure you have the following:
3030

3131
```bash title="Request"
3232
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/replicate/predictions \
33-
--header 'Authorization: Token {replicate_api_token}' \
33+
--header 'Authorization: Bearer {replicate_api_token}' \
3434
--header 'Content-Type: application/json' \
3535
--data '{
36+
"version": "anthropic/claude-4.5-haiku",
3637
"input":
3738
{
3839
"prompt": "What is Cloudflare?"

0 commit comments

Comments
 (0)