Skip to content

Commit 7035c76

Browse files
authored
Update custom-costs.mdx (#20492)
clarification on how custom costs interact with cache hit
1 parent d212b9d commit 7035c76

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openai/chat/
4545
]
4646
}'
4747
```
48+
49+
:::note
50+
51+
If a response is served from cache (cache hit), the cost is always `0`, even if you specified a custom cost. Custom costs only apply when the request reaches the model provider.
52+
:::

0 commit comments

Comments
 (0)