hosted-providers

Add Hosted Model

Changed on

Offer a model on a provider, optionally at a custom price.

post/api/v1/hosted-providers/{provider}/models

Request

  • The document declares no server URL.
  • Auth: one of:
    • API key in header Otari-Key
    • API key in header x-api-key

Path parameters

providerstring required

Request body

cache_read_price_per_millionnumber nullable
cache_write_price_per_millionnumber nullable
input_price_per_millionnumber nullable
modelstring required
output_price_per_millionnumber nullable
unit'tokens' | 'requests' | 'images' nullable

Example request

{
  "input_price_per_million": 2.5,
  "model": "gpt-4o",
  "output_price_per_million": 10
}

Response

Successful Response

cache_read_price_per_millionnumber nullable
cache_write_price_per_millionnumber nullable
created_atstring date-time required
enabledboolean required
idstring uuid required
input_price_per_millionnumber nullable
modelstring required
output_price_per_millionnumber nullable
price_source'organization' | 'deployment' | 'defaults' nullable
providerstring required
unitstring nullable
updated_atstring date-time nullable

Changes