Skip to main content

Cost Create

POST 

/cost/create

Cost Create

Request

Body

required

    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

Successful Response

Schema

    ids array[]required

    Possible values: >= 2, <= 2

Loading...