OpenAPI 3.1.02026-08-226994571.1 MB

1e929292ddd5

model management

Model Info V1

Provides more info about each model in /models, including config.yaml descriptions (except api key and api base)

Parameters: litellm_model_id: Optional[str] = None (this is the value of x-litellm-model-id returned in response headers)

- When litellm_model_id is passed, it will return the info for that specific model
- When litellm_model_id is not passed, it will return the info for all models

Returns: Returns a dictionary containing information about each model.

Example Response:

{
    "data": [
                {
                    "model_name": "fake-openai-endpoint",
                    "litellm_params": {
                        "api_base": "https://exampleopenaiendpoint-production.up.railway.app/",
                        "model": "openai/fake"
                    },
                    "model_info": {
                        "id": "112f74fab24a7a5245d2ced3536dd8f5f9192c57ee6e332af0f0512e08bed5af",
                        "db_model": false
                    }
                }
            ]
}

get/model/info

Query parameters

litellm_model_idstring nullable

Response

Successful Response

{"stackTrail":"paths:/model/info:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}