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
| Name | Type | Required | Description |
|---|---|---|---|
model | string | Yes | An open model id. |
input | object | Yes | The request body you would send to the router, without model. |
Example
Estimate a price
POST /v1/open/estimate
Required
Response
200 OK
Errors
| Status | code | When |
|---|---|---|
| 400 | invalid_request | The model or an input is not valid. |
| 404 | not_found | No open model with that id. |
| 429 | rate_limited | Too many requests from your address. Send your key to price at a higher rate. |