diff --git a/docs/my-website/docs/completion/token_usage.md b/docs/my-website/docs/completion/token_usage.md index 5a8fb42cf..8b1140bad 100644 --- a/docs/my-website/docs/completion/token_usage.md +++ b/docs/my-website/docs/completion/token_usage.md @@ -145,8 +145,10 @@ print(model_cost) # {'gpt-3.5-turbo': {'max_tokens': 4000, 'input_cost_per_token ### 8. `register_model` +* Input: Provide EITHER a model cost dictionary or a url to a hosted json blob * Output: Returns updated model_cost dictionary + updates litellm.model_cost with model details. +**Dictionary** ```python from litellm import register_model @@ -161,6 +163,14 @@ litellm.register_model({ }) ``` +**URL for json blob** +```python +import litellm + +litellm.register_model(model_cost= +"https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json") +``` + ### 9. `api.litellm.ai` **Example Curl Request**