Skip to main content
PUT
Record what a closed API behind an external binding charges per token: its list price or your contract, valid until a date

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

name
string
required
Minimum string length: 1
binding
string
required
Minimum string length: 1

Body

application/json
authority
enum<string>
required

list_price is the supplier's published price; contract is your own negotiated price.

Available options:
list_price,
contract
currency
string
required
Allowed value: "USD"
input_microusd_per_million
integer
required
Required range: x >= 0
output_microusd_per_million
integer
required
Required range: x >= 0
valid_until
string<date-time>
required

After this time the rate card prices nothing and cost is unknown.

cached_input_microusd_per_million
integer

Price of input served from the prompt cache; uncached input price when absent.

Required range: x >= 0
source
string
Maximum string length: 512

Response

Created

The response is of type object.