List model prices
List the model prices LangSmith uses to compute run costs in this workspace.
Returns both the workspace’s custom entries (tenant_id set) and the
LangSmith default entries (tenant_id null). Default entries can be read
but not updated or deleted; to price a model differently, for example
because of a negotiated rate with an inference provider, create a custom
entry with the same match pattern.
The total number of matching entries is returned in the
X-Pagination-Total response header.
Authorizations
Query Parameters
Number of entries to skip before this page.
x >= 0Maximum number of entries to return.
1 <= x <= 100Case-insensitive substring matched against the entry name, match pattern, and provider. Hyphens and spaces are treated as equivalent.
200Only return price maps for these providers (case-insensitive).
201Field to sort on. Defaults to match priority order.
"start_time"Sort direction for sort_by. Unset start dates sort last.
asc, desc Response
Successful Response
Display name for the entry, usually the model name.
Regular expression matched against the run's model name, for example ^gpt-4o-mini$.
Cost in US dollars per input (prompt) token.
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$Cost in US dollars per output (completion) token.
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$ID of the entry.
Only price runs that started at or after this time. Null applies to runs from any time.
Workspace that owns the entry. Null for LangSmith default entries, which cannot be updated or deleted.
Invocation parameter keys checked, in order, for the model name when the run does not report ls_model_name metadata.
Cost in US dollars per input token for specific token types, keyed by the token detail name the run reports, for example cache_read. Input tokens not covered here are priced at prompt_cost.
Cost in US dollars per output token for specific token types, keyed by the token detail name the run reports, for example audio. Output tokens not covered here are priced at completion_cost.
Only price runs from this provider (the ls_provider metadata, case-insensitive), for example openai or anthropic. Null matches any provider.
Only price requests with more input tokens than this, for long-context pricing tiers. Null applies to every request.
0 <= x <= 9007199254740991
