model-price-map

Read Model Price Map

Changed on
get/api/v1/model-price-map

Request

  • Base URL
    https://api.smith.langchain.com
  • URL
    https://api.smith.langchain.com/api/v1/model-price-map
  • Auth
    • API key in header X-API-Key
    • or API key in header X-Tenant-Id
    • or HTTP bearer

Query parameters

offsetinteger
limitinteger
qstring nullable
providerstring[] nullable

Only return price maps for these providers (case-insensitive).

sort_by'start_time' nullable

Field to sort on. Defaults to match priority order.

sort_order'asc' | 'desc'

Sort direction for sort_by. Unset start dates sort last.

Response

Successful Response

idstring uuid
namestring required
start_timestring date-time nullable
tenant_idstring uuid nullable
match_pathstring[]
match_patternstring required
prompt_coststring required
completion_coststring required
prompt_cost_detailsobject nullable
completion_cost_detailsobject nullable
providerstring nullable
prompt_tokens_aboveinteger nullable

Changes

    • info

      added the optional property / to the response with the status

    • breaking

      the response's body type changed from no type to array for status

    • info

      added the new optional query request parameter limit

    • info

      added the new optional query request parameter offset

    • info

      added the new optional query request parameter provider

    • info

      added the new optional query request parameter q

    • info

      added the new optional query request parameter sort_by

    • info

      added the new optional query request parameter sort_order

    • info

      added the non-success response with the status