API reference

Estimate a price

The exact dollar price of a request, before you submit it.

POST /v1/open/estimate

Host https://api.open.sume.com · Auth none needed

Prices a request without running it. Send the model and the same inputs you would send to the router; the answer is what an open.sume.com key would be charged. Free and public.

Request

Body

NameTypeRequiredDescription
modelstringYesAn open model id.
inputobjectYesThe request body you would send to the router, without model.

Example

Estimate a price

POST /v1/open/estimate

Required

Response

200 OK

Errors

StatuscodeWhen
400invalid_requestThe model or an input is not valid.
404not_foundNo open model with that id.
429rate_limitedToo many requests from your address. Send your key to price at a higher rate.

All error codes