marketplace

Change one model price

Change the rate or the descriptive fields of a model price you have published. Send only the fields you want to change. The fields that identify the price cannot be changed, because they describe a different SKU; delete the price and register a new one instead.

patch/v1/marketplace/models/{id}

Path parameters

idstring required

Price id

Request body

object required

Response

The changed price

context_limitinteger
currencystring
effective_fromstring
effective_tostring
fetched_atstring
hoststring
idstring
modalities_inputstring[]
modalities_outputstring[]
modelstring
model_idstring
open_weightsboolean
output_limitinteger
providerstring
publisherstring
raw_pricing_dataDatatypesJSON
reasoningboolean
regionstring
sku_price_idstring
sourcestring
source_urlstring
structured_outputboolean
tagsDatatypesJSON
token_bucket'input' | 'output' | 'cache_read' | 'cache_write'
tool_callboolean
unit_price_per_mtoknumber

Changes

Changed in 2 of the 30 revisions of this API.41

    • ●

      added the new cache_read enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new cache_write enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new input enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new output enum value to the response property for the response status

      response-property-enum-value-added

    • ○

      endpoint added

      endpoint-added

    This revision also has 24 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog