{% include 'common/begin.html' %}

Get started

Python

Endpoint

To use NovaAI in your code, simply set the endpoint of NovaAI. It's compitable with the official OpenAI Python library.

import openai as novaai

novaai.api_base = 'https://api.nova-oss.com/v1'
# you're an enterprise-level donator? use:
# novaai.api_base = 'https://api.nova-oss.com/enterprise/v1' 
Info: The reason we're using as novaai is that we might add our own package soon. That way, you'll only have to delete two words and install our package to migrate. Stay tuned!

API Key

You can currently only obtain your API key using the Discord server. The API key is something like a password. So keep it safe. Don't share it with anyone!

novaai.api_key = 'nv2-...'

curl

curl https://api.nova-oss.com/v1/chat/completions \
        -H "Content-Type: application/json" \
        -H "Authorization: Bearer nv2-..." \
        -d '{
            "model": "gpt-3.5-turbo",
            "messages": [{"role": "user", "content": "1+1="}]
        }'

Unofficial front-ends (Better ChatGPT, ...)

Set the API endpoint to https://api.nova-oss.com/v1 and don't forget to add your NovaAI API key, too.

Warning: Only use front-ends you trust. Malicious websites could steal your API key!

Documentation

Official OpenAI documentation

{% include 'common/end.html' %}