Cost Create
POST/cost/create
Cost Create
Request
- application/json
Body
required
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
project_id Project Id (string)required
costs
object
required
property name*
CostCreateInput
prompt_token_cost Prompt Token Cost (number)required
completion_token_cost Completion Token Cost (number)required
prompt_token_cost_unit
object
The unit of the cost for the prompt tokens
anyOf
string
completion_token_cost_unit
object
The unit of the cost for the completion tokens
anyOf
string
effective_date
object
The date after which the cost is effective for, will default to the current date if not provided
anyOf
string
provider_id
object
The provider of the LLM, e.g. 'openai' or 'mistral'. If not provided, the provider_id will be set to 'default'
anyOf
string
wb_user_id
object
Do not set directly. Server will automatically populate this field.
anyOf
string
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
ids array[]required
Possible values: >= 2
, <= 2
{
"ids": [
[
null
]
]
}
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...