Skip to main content

Cost Query

POST 

/cost/query

Cost Query

Request

Body

required

    project_id Project Id (string)required

    fields

    object

    anyOf

  • Array [

  • string

  • ]

  • query

    object

    anyOf

    $expr objectrequired

    sort_by

    object

    anyOf

  • Array [

  • field Field (string)required
    direction Direction (string)required

    Possible values: [asc, desc]

  • ]

  • limit

    object

    anyOf

    integer

    offset

    object

    anyOf

    integer

Responses

Successful Response

Schema

    results

    object[]

    required

  • Array [

  • 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

  • ]

Loading...