https://api.novita.ai/openai), you can capture prompts, responses, latency, token usage, and model metadata in MLflow.

Prerequisites
Before you start, make sure you have:- Novita AI API key: create one in Key Management.
- A running MLflow tracking server. You can use local default
http://localhost:5000. - Python or JavaScript runtime.
Integration Steps
Step 1: Install Dependencies
Step 2: Start MLflow Server
If you have a local Python environment >= 3.10, you can start MLflow with:http://localhost:5000 to confirm the MLflow UI is accessible.
Step 3: Enable Tracing and Call Novita AI
Step 4: View Traces in MLflow UI
Open your MLflow UI (for examplehttp://localhost:5000) and go to your configured experiment to inspect traces.
You should see:
- Prompt and completion content
- Latency and token usage
- Model and request metadata
- Errors/exceptions (if any)
Step 5: Advanced Tracing References
Streaming and Async
MLflow supports tracing for streaming and async Novita AI APIs. See:Combine with frameworks or manual tracing
- MLflow Novita AI integration page: Tracing Novita AI
- MLflow OpenAI tracing docs: OpenAI Tracing
- Novita LLM API guide: LLM API