Replace a custom model
Changed onReplace editable fields for a custom model. The model_name path value remains the identifier.
Request
- Base URLhttps://api.respan.ai
- URLhttps://api.respan.ai/api/models/{model_name}/
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
Model name. The route supports names containing slashes, such as openai/gpt-4o-mini.
Request body
Example request
{
"base_model_name": "gpt-4o",
"custom_provider_id": "my-vllm",
"provider_id": "my-vllm",
"input_cost": 2.5,
"output_cost": 10,
"max_context_window": 128000
}Response
Updated model.
Example response
{
"id": "my-custom-gpt-4o",
"model_name": "my-custom-gpt-4o",
"base_model_name": "gpt-4o",
"affiliation_category": "custom",
"input_cost": 2.5,
"output_cost": 10,
"cache_hit_input_cost": 0.5,
"cache_creation_input_cost": 3,
"max_context_window": 128000,
"function_call": 1,
"image_support": 1,
"model_type": "chat",
"provider": {
"id": "my-vllm",
"provider_id": "my-vllm",
"provider_name": "My vLLM Server",
"extra_kwargs": {
"base_url": "https://vllm.example.com/v1"
}
}
}Changes
- breaking
request body became required
- breaking
removed the enum value
0of the request property - breaking
removed the enum value
0of the request property - breaking
removed the enum value
1of the request property - breaking
removed the enum value
1of the request property - breaking
the
request property type changed fromstringtointeger - breaking
the
request property type changed fromstringtointeger - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the
response's property format changed fromdoubleto no format for status - breaking
the
response's property format changed fromdoubleto no format for status - breaking
the
response's property type changed fromstringtointegerfor status - breaking
the
response's property type changed fromstringtointegerfor status - breaking
the
response's property format changed fromdoubleto no format for status - breaking
the
response's property format changed fromdoubleto no format for status - warning
added the new
0.00enum value to theresponse property for the response status - warning
added the new
0.00enum value to theresponse property for the response status - warning
added the new
1.00enum value to theresponse property for the response status - warning
added the new
1.00enum value to theresponse property for the response status - info
api operation id
models_replaceCustomModelremoved and replaced withreplaceCustomModel - info
the endpoint scheme security
DashboardJwtwas added to the API - info
api tag
Modelsadded - info
api tag
modelsremoved - info
added the new
0.00enum value to the request property - info
added the new
0.00enum value to the request property - info
added the new
1.00enum value to the request property - info
added the new
1.00enum value to the request property - info
the
request property format was generalized fromdoubleto no format - info
the
request property format was generalized fromdoubleto no format - info
the
request property format was generalized fromdoubleto no format - info
the
request property format was generalized fromdoubleto no format - info
removed the
0enum value from theresponse property for the response status - info
removed the
0enum value from theresponse property for the response status - info
removed the
1enum value from theresponse property for the response status - info
removed the
1enum value from theresponse property for the response status
- breaking
- warning
removed the request property
- warning
removed the request property
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
added the new
keywordsaienum value to theresponse property for the response status - info
removed the non-success response with the status
- info
the response property
became required for the status - info
removed the
respanenum value from theresponse property for the response status
- warning