OhMyGPT
Billing

Get effective prices for a model string

GET
/v1/quotes

Returns what the authenticated caller pays when requesting this model string, route by route, including contract pricing. Prices come from the same implementation that charges requests. A request is charged at the price of the route that serves it.

Authorization

ApiKeyAuth
headerAuthorization<token>

Query Parameters

model*string

Model string exactly as it would be sent in a request (short name, model ID, or provider-qualified ID).

api?string

Inbound API to price, such as openai-completions or openai-responses. Defaults to the model's own API.

Response Body

Effective prices.

application/json
  1. response
api*string

Inbound API that was priced.

model*string

The model string as requested.

model_id*string

Canonical 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.

Example Request
curl -X GET 'https://api.ohmygpt.com/v1/quotes?model=string'
Example Response
{  "api": "string",  "model": "string",  "model_id": "string",  "prices": [    {      "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              }            ],            "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"    }  ]}