Skip to main content
LlamaIndex is built for fast, precise indexing and retrieval. Combining Novita AI with LlamaIndex gives you accurate data retrieval, scalability, and cost-effective performance. This guide shows how to use LlamaIndex with Novita AI through the OpenAI API.

How to Integrate Novita AI API with LlamaIndex

1

Visit the Model Library

Visit Model Library on Novita AI and select a model.
images/Step1VisitModelLibraryonNovitaAIandselectamodelofinterest.png
2

Open the demo page and click Code

Go to the demo page of the chosen model and click the Code button on the right.
images/Step2NavigatetothedemopageofthechosenmodelandclicktheCodebuttonontheright.png
3

Copy the model name

Copy the model’s name and make a note of it.
Copy the model name and make a note of it
4

Log in to the Novita platform

Log in to the Novita platform.
images/Step4LogintotheNovitaplatform.png
5

Open the platform settings page

After logging in, go to the platform’s settings page.
Open the platform settings page after logging in
6

Create a new API key

Create a new API key and copy it for service authentication.
images/Step6CreateanewAPIkeyandcopyitforserviceauthentication.png
7

Install llama_index and the Python libraries

Install llama_index and related Python libraries by running:
images/Step7Installllama_indexandrelatedPythonlibrariesbyrunning.png
8

Write the Python code

Write Python code and set the model name and API key as parameters in the NovitaAI class.
images/Step8WritePythoncodeandsetthemodelnameandAPIkeyasparametersintheNovitaAIclass.png
9

Run the code

Run the code to get the output.
images/Step9Runthecodetogettheoutput.png
For more examples, see the documentation: llama_index/llama-index-integrations/llms/llama-index-llms-novita at main · run-llama/llama_index.
Last modified on December 1, 2026