MelonsRun
Api referenceCatalog

Estimate model cost before execution

POST
/v2/quote

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v2/quote" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "input": {}  }'
{  "model": "string",  "quote_id": "string",  "catalog_version": "string",  "account_id": "string",  "brand_id": "string",  "input_hash": "string",  "currency": "USD",  "expires_at": "2019-08-24T14:15:22Z",  "provider_quote_hash": "string",  "exact": true,  "estimate": {    "credits": "string",    "max_credits": "string",    "min": "string",    "max": "string",    "currency": "USD",    "basis": "string",    "unit": "string",    "unit_price": "string",    "max_units": 0  }}