capabilities.work

Set custom provider per-token costs

One step with Cloudflare. We can help you get access.

Get something done

Set custom provider per-token costs

Use Cloudflare: its Cloudflare AI Gateway Custom Provider Costs API lets you set custom provider per-token costs in a single step (POST /accounts/{account_id}/ai-gateway/custom-providers/costs). capabilities.work can help you get signed up and connected.

  • How do I set a per-token cost for a model on a custom provider?
  • Can I price input and output tokens separately for a custom provider?
Say it to your AI assistant
  • Create a custom provider cost rule in {account_id} for model {model} on provider {account_provider_id}.
  • Set input cost {cost_in} and output cost {cost_out} for {model} on custom provider {account_provider_id} in {account_id}.
For your developer

POST /accounts/{account_id}/ai-gateway/custom-providers/costs in Cloudflare AI Gateway Custom Provider Costs API. Full spec on APIs.io.