Cloudflare · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Cloudflare AI Gateway Custom Provider Costs API

6 actions 6 updates phrasing extends openapi/cloudflare-ai-gateway-custom-provider-costs-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Cloudflare's API. It is a proposal applied on top of the contract, not a document Cloudflare publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 6

$.info
$.paths['/accounts/{account_id}/ai-gateway/custom-providers/costs'].get
$.paths['/accounts/{account_id}/ai-gateway/custom-providers/costs'].post
$.paths['/accounts/{account_id}/ai-gateway/custom-providers/costs/{id}'].get
$.paths['/accounts/{account_id}/ai-gateway/custom-providers/costs/{id}'].delete
$.paths['/accounts/{account_id}/ai-gateway/custom-providers/costs/{id}'].patch

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Cloudflare AI Gateway Custom Provider Costs API
  version: 1.0.0
extends: openapi/cloudflare-ai-gateway-custom-provider-costs-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-23'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 5
- target: $.paths['/accounts/{account_id}/ai-gateway/custom-providers/costs'].get
  update:
    x-apievangelist-phrasing:
      intent: List custom provider pricing rules
      effect: read
      questions:
      - Which models have custom per-token pricing set for a custom provider?
      - Can I filter custom provider cost rules by cost type or model rule?
      instructions:
      - text: List custom provider pricing rules in account {account_id}.
        slots:
          account_id: path.account_id
      - text: Show custom provider cost rules for {account_id} matching {model_rule}.
        slots:
          account_id: path.account_id
          model_rule: query.model_rule
      method: generated
      generated: '2026-11-23'
- target: $.paths['/accounts/{account_id}/ai-gateway/custom-providers/costs'].post
  update:
    x-apievangelist-phrasing:
      intent: Set custom provider per-token costs
      effect: write
      questions:
      - 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?
      instructions:
      - text: Create a custom provider cost rule in {account_id} for model {model} on provider {account_provider_id}.
        slots:
          account_id: path.account_id
          model: requestBody.model
          account_provider_id: requestBody.account_provider_id
      - text: Set input cost {cost_in} and output cost {cost_out} for {model} on custom provider {account_provider_id} in {account_id}.
        slots:
          cost_in: requestBody.cost_in
          cost_out: requestBody.cost_out
          model: requestBody.model
          account_provider_id: requestBody.account_provider_id
          account_id: path.account_id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/accounts/{account_id}/ai-gateway/custom-providers/costs/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a custom provider pricing rule
      effect: read
      questions:
      - What model rule and token prices does a custom provider cost rule use?
      - Can I look up one custom provider pricing rule by ID?
      instructions:
      - text: Get custom provider cost rule {id} in account {account_id}.
        slots:
          id: path.id
          account_id: path.account_id
      - text: Show the model match rule and token prices of custom provider cost rule {id} for {account_id}.
        slots:
          id: path.id
          account_id: path.account_id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/accounts/{account_id}/ai-gateway/custom-providers/costs/{id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a custom provider pricing rule
      effect: destructive
      questions:
      - What happens to requests for a model when its custom provider cost rule is deleted?
      - Can I remove a custom provider pricing rule?
      instructions:
      - text: Delete custom provider cost rule {id} in account {account_id}.
        slots:
          id: path.id
          account_id: path.account_id
      - text: Remove the custom provider cost rule {id} from {account_id}.
        slots:
          id: path.id
          account_id: path.account_id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/accounts/{account_id}/ai-gateway/custom-providers/costs/{id}'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a custom provider pricing rule
      effect: write
      questions:
      - Can I change the input cost of an existing custom provider pricing rule?
      - How do I disable a custom provider cost rule without deleting it?
      instructions:
      - text: Update custom provider cost rule {id} in {account_id} with input cost {cost_in} and output cost {cost_out}.
        slots:
          id: path.id
          account_id: path.account_id
          cost_in: requestBody.cost_in
          cost_out: requestBody.cost_out
      - text: Disable custom provider cost rule {id} in {account_id} by setting enable to {enable}.
        slots:
          id: path.id
          account_id: path.account_id
          enable: requestBody.enable
      method: generated
      generated: '2026-11-23'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/cloudflare-ai-gateway-custom-provider-costs-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.