Skip to main content
POST
Create a custom agent cost item

Authorizations

Authorization
string
header
required

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

Body

application/json

Create custom cost item payload

provider
string
required
Minimum string length: 1
item
string
required
Minimum string length: 1
dimensions
object[]
required
Required array length: 1 - 10 elements

Response

The custom cost item already existed

provider
string
required
model
string
required
aliases
string[]
required
input_per_m_tokens
string
required
output_per_m_tokens
string
required
cached_input_per_m_tokens
string
required
cache_write_per_m_tokens
string
required
dimensions
object[]
required
effective_from
string
required
source
string
required
custom_item_id
string | null
required
override
object | null
required