Novita AI
Novita AI is an AI cloud platform that helps developers easily deploy AI models through a simple API, backed by affordable and reliable GPU cloud infrastructure. It provides access to a wide range of models including DeepSeek, Qwen, Llama, and other popular LLMs.
This guide explains how to integrate Opik with Novita AI via LiteLLM. By using the LiteLLM integration provided by Opik, you can easily track and evaluate your Novita AI API calls within your Opik projects as Opik will automatically log the input prompt, model used, token usage, and response generated.
Getting Started
Configuring Opik
To get started, you need to configure Opik to send traces to your Comet project. You can do this by setting the OPIK_PROJECT_NAME
environment variable:
You can also call the opik.configure
method:
Configuring LiteLLM
Install the required packages:
Create a LiteLLM configuration file (e.g., litellm_config.yaml
):
Authentication
Set your Novita AI API key as an environment variable:
You can obtain a Novita AI API key from the Novita AI dashboard.
Usage
Using LiteLLM Proxy Server
Start the LiteLLM proxy server:
Use the proxy server to make requests:
Direct Integration
You can also use LiteLLM directly in your Python code:
Supported Models
Novita AI provides access to a comprehensive catalog of models from leading providers. Some of the popular models available include:
- DeepSeek Models:
deepseek-r1-turbo
,deepseek-v3-turbo
,deepseek-v3-0324
- Qwen Models:
qwen3-235b-a22b-fp8
,qwen3-30b-a3b-fp8
,qwen3-32b-fp8
- Llama Models:
llama-4-maverick-17b-128e-instruct-fp8
,llama-3.3-70b-instruct
,llama-3.1-70b-instruct
- Mistral Models:
mistral-nemo
- Google Models:
gemma-3-27b-it
For the complete list of available models, visit the Novita AI model catalog.
Advanced Features
Tool Calling
Novita AI supports function calling with compatible models:
JSON Mode
For structured outputs, you can enable JSON mode:
Feedback Scores and Evaluation
Once your Novita AI calls are logged with Opik, you can evaluate your LLM application using Opik’s evaluation framework:
Environment Variables
Make sure to set the following environment variables: