Replace a custom model
Replace editable fields for a custom model. The model_name path value remains the identifier.
Path parameters
model_name
Model name. The route supports names containing slashes, such as openai/gpt-4o-mini.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY for API key auth or Bearer <JWT> for dashboard auth.
Request
This endpoint expects an object.
base_model_name
Base model to inherit properties from.
display_name
Human-readable display name.
custom_provider_id
Custom provider string ID or provider identifier to associate.
provider_id
Alternative to custom_provider_id.
input_cost
Cost per 1M input tokens in USD.
output_cost
Cost per 1M output tokens in USD.
cache_hit_input_cost
Cost per 1M cached input tokens in USD.
cache_creation_input_cost
Cost per 1M cache creation input tokens in USD.
max_context_window
Maximum context window size.
streaming_support
Allowed values:
function_call
Allowed values:
image_support
Allowed values:
supported_params_override
Partial override for model parameter support. The response returns computed supported_params.
Response
Updated model.
id
Model string ID. Same value as model_name.
model_name
Model name used in API calls.
display_name
Human-readable model name.
base_model_name
Base model inherited from, when configured.
affiliation_category
Whether the model is built in or organization-specific.
Allowed values:
is_called_by_custom_name
Whether requests are sent upstream using this custom model name.
input_cost
Cost per 1M input tokens in USD.
output_cost
Cost per 1M output tokens in USD.
cache_hit_input_cost
Cost per 1M cached input tokens in USD.
cache_creation_input_cost
Cost per 1M cache creation input tokens in USD.
max_context_window
Maximum context window size.
streaming_support
Streaming support. 0 = no, 1 = yes.
Allowed values:
function_call
Function/tool calling support. 0 = no, 1 = yes.
Allowed values:
image_support
Vision input support. 0 = no, 1 = yes.
Allowed values:
source
Source of the model definition.
Allowed values:
model_type
Model type.
Allowed values:
supported_params
Computed parameter support after applying model-specific overrides.
throughput
provider
created_at
updated_at
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error