In Opik 2.0, datasets and experiments are project-scoped. Make sure to specify a project_name when creating datasets and running experiments so they are associated with the correct project.
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.
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:
Install the required packages:
Create a LiteLLM configuration file (e.g., litellm_config.yaml):
Set your Novita AI API key as an environment variable:
You can obtain a Novita AI API key from the Novita AI dashboard.
Start the LiteLLM proxy server:
Use the proxy server to make requests:
You can also use LiteLLM directly in your Python code:
Novita AI provides access to a comprehensive catalog of models from leading providers. Some of the popular models available include:
deepseek-r1-turbo, deepseek-v3-turbo, deepseek-v3-0324qwen3-235b-a22b-fp8, qwen3-30b-a3b-fp8, qwen3-32b-fp8llama-4-maverick-17b-128e-instruct-fp8, llama-3.3-70b-instruct, llama-3.1-70b-instructmistral-nemogemma-3-27b-itFor the complete list of available models, visit the Novita AI model catalog.
Novita AI supports function calling with compatible models:
For structured outputs, you can enable JSON mode:
Once your Novita AI calls are logged with Opik, you can evaluate your LLM application using Opik’s evaluation framework:
Make sure to set the following environment variables: