Skip to main content
LiteLLM supports calling 100+ LLMs using the OpenAI Input/Output Format. LiteLLM documentation
LiteLLM + Nebius Token Factory documentation

Prerequisites

  1. Create an API key to authorize requests to Nebius Token Factory.
  2. Save the API key into a NEBIUS_API_KEY environment variable:
  3. Install the litellm package:

Create a chat completion

Paste the following code into your script:
Checkout an example notebook in our cookbook repository.