Skip to content

Commit dcf470d

Browse files
authored
Update custom-costs.mdx (#16781)
deleted extra {}s in example
1 parent c2ef9da commit dcf470d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/docs/ai-gateway/configuration/custom-costs.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ Custom costs will appear in the logs with an underline, making it easy to identi
3131
In this example, if you have a negotiated price of $1 per million input tokens and $2 per million output tokens, include the `cf-aig-custom-cost` header as shown below.
3232

3333
```bash title="Request with custom cost"
34-
curl https://gateway.ai.cloudflare.com/v1/{{account_id}}/{{gateway_id}}/openai/chat/completions \
34+
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openai/chat/completions \
3535
--header 'Authorization: Bearer $TOKEN' \
3636
--header 'Content-Type: application/json' \
3737
--header 'cf-aig-custom-cost: {"per_token_in":0.000001,"per_token_out":0.000002}' \
38-
--data ' {{
38+
--data ' {
3939
"model": "gpt-4o-mini",
4040
"messages": [
41-
{{
41+
{
4242
"role": "user",
4343
"content": "When is Cloudflare’s Birthday Week?"
44-
}}
44+
}
4545
]
46-
}}'
46+
}'
4747
```

0 commit comments

Comments
 (0)