Cost Query
POST/cost/query
Cost Query
Request
- application/json
Body
required
- MOD1
Array [
]
- Query
- MOD1
Array [
]
- MOD1
- MOD1
project_id Project Id (string)required
fields
object
anyOf
string
query
object
anyOf
$expr objectrequired
sort_by
object
anyOf
field Field (string)required
direction Direction (string)required
Possible values: [asc
, desc
]
limit
object
anyOf
integer
offset
object
anyOf
integer
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
]
results
object[]
required
id
object
anyOf
string
llm_id
object
anyOf
string
prompt_token_cost
object
anyOf
number
completion_token_cost
object
anyOf
number
prompt_token_cost_unit
object
anyOf
string
completion_token_cost_unit
object
anyOf
string
effective_date
object
anyOf
string
provider_id
object
anyOf
string
{
"results": [
{
"id": "string",
"llm_id": "string",
"prompt_token_cost": 0,
"completion_token_cost": 0,
"prompt_token_cost_unit": "string",
"completion_token_cost_unit": "string",
"effective_date": "2024-10-09T19:25:34.399Z",
"provider_id": "string"
}
]
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...