Billing
Get effective prices for a model string
GET
Returns what the authenticated caller pays when requesting this model string, provider by provider, at the prices your account pays. Prices come from the same implementation that charges requests. A request is charged at the price of the provider that serves it.
ApiKeyAuthheader
Authorization<token>model*stringModel string exactly as it would be sent in a request (short name, model ID, or provider-qualified ID).
api?stringInbound API to price, such as openai-completions or openai-responses. Defaults to the model's own API.
Effective prices.
application/json- response
api*stringInbound API that was priced.
model*stringThe model string as requested.
model_id*stringCanonical model ID the string resolves to.
prices*array<>Routes that can serve the request; each request is charged at the price of the one that serves it.
curl -X GET 'https://api.ohmygpt.com/v1/quotes?model=string'示例响应
{ "api": "string", "model": "string", "model_id": "string", "prices": [ { "blended_price": { "list_price_credits": 0, "price_credits": 0 }, "display_name": "string", "pricing": { "flat": [ { "kind": "string", "list_price_credits": 0, "params": { "property1": "string", "property2": "string" }, "price_credits": 0 } ], "mode": "string", "rules": [ { "condition": { "exclude_ranges": [ { "end": "2019-08-24T14:15:22Z", "start": "2019-08-24T14:15:22Z" } ], "max_input": 0, "min_input": 0, "params": { "property1": "string", "property2": "string" }, "service_tier": "string", "time_windows": [ { "end": "string", "start": "string" } ], "usage_kind": "llm", "valid_from": "2019-08-24T14:15:22Z", "valid_until": "2019-08-24T14:15:22Z", "weekdays": [ "monday" ] }, "kind": "string", "list_price_credits": 0, "price_credits": 0 } ], "tiered": [ { "items": [ { "kind": "string", "list_price_credits": 0, "params": { "property1": "string", "property2": "string" }, "price_credits": 0 } ], "output_up_to": 0, "up_to": 0 } ], "variants": [ { "items": [ { "kind": "string", "list_price_credits": 0, "params": { "property1": "string", "property2": "string" }, "price_credits": 0 } ], "name": "string" } ] }, "provider": "string", "route_id": "string" } ]}