v3

latestOpenAPI 3.1.02026-07-311,4541,5202.3 MB
models

Api Models Partial Update

PATCH handler with superadmin lock and field protection.

Checks:

  1. Object lock (is_managed=True -> non-superadmins can't modify)
  2. Field protection (non-superadmins can't modify specific fields)
patch/api/models/

Headers

Authorizationstring required

JWT access token or Respan API key

Request body

projectstring nullable
affiliation_category'custom' | 'keywordsai'
  • custom - Custom
  • keywordsai - Keywordsai
is_managedboolean
is_called_by_custom_nameboolean
model_namestring
base_model_namestring
display_namestring
max_context_windowinteger
input_costnumber double
output_costnumber double
cache_hit_input_costnumber double
cache_creation_input_costnumber double
respan_discount_ratenumber double nullable
streaming_supportinteger
function_callinteger
image_supportinteger
overridden_fieldsstring[]
{"stackTrail":"components:schemas:PatchedPublicModelListRequest:properties:load_balance_backups","oasType":"schema","type":"unknown","description":"Any type"}
status'active' | 'deprecated'
  • active - Active
  • deprecated - Deprecated
is_verifiedboolean

Whether the model's pricing has been human-verified. Unverified auto-discovered models are kept out of the live model dictionary.

source'hardcoded' | 'db'
  • hardcoded - Synced from Code
  • db - Database Only
model_type'chat' | 'embedding' | 'audio'
  • chat - Chat
  • embedding - Embedding
  • audio - Audio
organizationinteger nullable

Response

projectstring nullable
supported_paramsstring required
affiliation_category'custom' | 'keywordsai'
  • custom - Custom
  • keywordsai - Keywordsai
is_managedboolean
is_called_by_custom_nameboolean
model_namestring required
base_model_namestring
display_namestring
max_context_windowinteger
input_costnumber double
output_costnumber double
cache_hit_input_costnumber double
cache_creation_input_costnumber double
respan_discount_ratenumber double nullable
streaming_supportinteger
function_callinteger
image_supportinteger
overridden_fieldsstring[]
{"stackTrail":"components:schemas:PublicModelList:properties:load_balance_backups","oasType":"schema","type":"unknown","description":"Any type"}
status'active' | 'deprecated'
  • active - Active
  • deprecated - Deprecated
is_verifiedboolean

Whether the model's pricing has been human-verified. Unverified auto-discovered models are kept out of the live model dictionary.

source'hardcoded' | 'db'
  • hardcoded - Synced from Code
  • db - Database Only
model_type'chat' | 'embedding' | 'audio'
  • chat - Chat
  • embedding - Embedding
  • audio - Audio
idstring required
is_byokboolean required
effective_discount_ratenumber double required