Create a model price
Create a custom model price for this workspace.
The entry prices LLM runs whose model name matches match_pattern. It
applies to runs ingested after it takes effect, which can take a few
minutes; costs already recorded on existing runs are not recomputed.
Costs are in US dollars per token.
Returns 409 if the workspace already has an entry with the same name, match pattern, match path, provider, start time, and prompt token threshold.
Authorizations
Body
A custom model price entry for the workspace.
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.
Cost in US dollars per output (completion) token.
Only price runs that started at or after this time. Null applies to runs from any time.
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 <= 9007199254740991Response
Successful Response

