LiteLLM + Nebius Token Factory documentation
Prerequisites
- Create an API key to authorize requests to Nebius Token Factory.
-
Save the API key into a
NEBIUS_API_KEYenvironment variable: -
Install the
litellmpackage:
Create a chat completion
Paste the following code into your script:Checkout an example notebook in our cookbook repository.