Get a custom model
Changed onRetrieve a custom model by model name. Custom models are only visible to the project that owns them.
Request
- Base URLhttps://api.respan.ai
- URLhttps://api.respan.ai/api/models/{model_name}/
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
The model_name that List models returns. Built-in models are provider-prefixed, such as openai/gpt-4o-mini; bare names such as gpt-4o-mini return 404.
Response
Model details.
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
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 - breaking
the
response's property type changed from no type toobjectfor 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_retrieveCustomModelremoved and replaced withretrieveCustomModel - info
the endpoint scheme security
DashboardJwtwas added to the API - info
api tag
Modelsadded - info
api tag
modelsremoved - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - 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 - info
removed
subschema #2from theresponse propertyoneOflist for the response status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- breaking
- breaking
added
subschema #2to theresponse propertyoneOflist for the response status - breaking
the
response's property type changed fromobjectto no type for status - breaking
removed the required property
from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required 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
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
added the non-success response with the status
- info
removed the non-success response with the status
- info
removed the
respanenum value from theresponse property for the response status
- breaking