LLM
Test which pricing definition matches a model name and calculate cost
Simulates the pricing lookup for a given model name and optional usage data, returning the matched definition, selected tier, and cost breakdown. With match_pattern, also lists the known models that pattern would price if saved as a rule in this organization.
post/api/{org_id}/llm/models/test
Request
- Base URLhttps://api.openobserve.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
org_idstring required
Organization name
Request body
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.