Skip to main content
POST
Create Rule

Authorizations

gateway_session
string
cookie
required

Secure same-origin browser session cookie.

Body

application/json
provider
string
required
model_pattern
string
required
service_tier
string | null
input_usd_per_million
cached_input_usd_per_million
cache_write_usd_per_million
cache_read_billing
enum<string>
default:unknown
Available options:
unknown,
included_in_input,
not_applicable
cache_write_billing
enum<string>
default:unknown
Available options:
unknown,
included_in_input,
not_applicable
output_usd_per_million
request_usd
source
string
default:contract
source_url
string | null
effective_from
string | null

Response

Successful Response

id
string
required
scope
enum<string>
required
Available options:
organization,
platform
provider
string
required
model_pattern
string
required
service_tier
string | null
required
input_usd_per_million
string | null
required
cached_input_usd_per_million
string | null
required
cache_write_usd_per_million
string | null
required
cache_read_billing
enum<string>
required
Available options:
unknown,
included_in_input,
not_applicable
cache_write_billing
enum<string>
required
Available options:
unknown,
included_in_input,
not_applicable
output_usd_per_million
string | null
required
request_usd
string | null
required
currency
string
required
source
string
required
source_url
string | null
required
version
integer
required
effective_from
string
required
effective_to
string | null
required
created_at
string
required
object
string
default:pricing.rule
Allowed value: "pricing.rule"