Loading...
Nova is fully compatible with the OpenAI SDK. Change one line — your existing code works immediately.
Already using the OpenAI SDK? Change just one line:
base_url="https://api.openai.com/v1"base_url="https://api.nova.ai/v1"pip install openai
from openai import OpenAI
client = OpenAI(
base_url="https://api.nova.ai/v1",
api_key="nova-YOUR_API_KEY",
)response = client.chat.completions.create(
model="deepseek/deepseek-r1",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Explain quantum entanglement simply."},
],
)
print(response.choices[0].message.content)All text models support streaming. Pass stream=True to get tokens as they generate.
stream = client.chat.completions.create(
model="anthropic/claude-sonnet-4-5",
messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
stream=True,
)
for chunk in stream:
delta = chunk.choices[0].delta.content
if delta:
print(delta, end="", flush=True)Get your API key
Sign up free — $1 in credits included, no credit card required.
Any HTTP client or OpenAI-compatible library works with Nova. Here are popular options for other languages.
github.com/openai/openai-goOfficial OpenAI Go SDK — point BaseURL at Nova
gem install ruby-openairuby-openai gem — set uri_base to Nova's endpoint
async-openaiasync-openai crate — configure base_url in ClientConfig
openai-php/clientopenai-php — use withBaseUri() to point at Nova