llm utils

Model Info Lookup

Returns the model cost map entry (token limits, pricing, supports_* capabilities) for any model in the cost map, whether or not it is registered on this proxy. model_info carries every field of the raw cost map entry plus the typed fields litellm.get_model_info derives from it (key, supported_openai_params).

Example curl:

curl -X GET --location 'http://localhost:4000/utils/model_info?model=gpt-4o&custom_llm_provider=openai'         --header "Authorization: Bearer $LITELLM_MASTER_KEY"
get/utils/model_info

Request

  • Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
  • URL: https://docs.litellm.com.cn/utils/model_info
  • Auth: API key in header x-litellm-api-key

Query parameters

modelstring required
custom_llm_providerstring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.