GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NovaStackAI/novapai-javascript: NovaPAI JavaScript SDK example — OpenAI-compatible API gateway for DeepSeek V4 Pro & 50+ LLMs. One line change to switch models.

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
example.mjs
example.mjs
 
 

Repository files navigation

NovaPAI JavaScript SDK Example 📦

Use NovaPAI in JavaScript — OpenAI-compatible API gateway for DeepSeek V4 Pro & 50+ LLMs. Change one line of code, switch to any model.

License API JavaScript

What is NovaPAI?

NovaPAI is an OpenAI-compatible API gateway that gives you access to top-tier LLMs like DeepSeek V4 Pro, GPT-4, Claude, Gemini (50+ models) through the standard OpenAI SDK. If you know how to use the OpenAI API, you already know how to use NovaPAI — just change the base_url.

Quick Start

1. Get an API Key

Sign up at novapai.ai to get your free API key.

2. Install the SDK

npm install openai

3. Run the Example

git clone https://github.com/NovaStackAI/novapai-javascript.git
cd novapai-javascript
export NOVAPAI_API_KEY="your-api-key"
node example.mjs

Examples Included

All examples are in example.mjs:

# Example Description
1 Basic Chat Single-turn chat completion
2 Streaming Real-time token-by-token output
3 Multi-turn Conversation Context-aware multi-message dialogue
4 Function Calling Define tools, let the model decide which to call
5 JSON Mode Structured JSON output for data extraction
6 List Models Fetch all available models

Core Concept

# Standard OpenAI SDK — just change base_url!
from openai import OpenAI

client = OpenAI(
    api_key="your-novapai-key",
    base_url="https://api.novapai.ai/router/v1"  # ← Only this line changes!
)

response = client.chat.completions.create(
    model="deepseek-v4-pro",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

That's it. The OpenAI SDK you already know works directly with NovaPAI. No new SDK to learn, no new API surface.

Why NovaPAI?

  • ✅ OpenAI-Compatible — Use any OpenAI SDK in any language
  • ✅ 50+ Models — DeepSeek V4 Pro, GPT-4, Claude, Gemini and more
  • ✅ One API Key — All models, one account
  • ✅ No Vendor Lock-in — Switch models with one line change
  • ✅ Free Tier Available — Start building with free credits

All SDK Examples

Browse all our SDK examples:

  • novapai-python
  • novapai-typescript
  • novapai-go
  • novapai-rust
  • novapai-java
  • novapai-csharp
  • novapai-php
  • novapai-ruby
  • novapai-curl

Links

  • 🌐 NovaPAI Website
  • 📖 API Reference
  • 🏠 NovaStackAI GitHub

Made with ❤️ by NovaStackAI

About

NovaPAI JavaScript SDK example — OpenAI-compatible API gateway for DeepSeek V4 Pro & 50+ LLMs. One line change to switch models.

novapai.ai

Topics

api-gatewaydeepseekjavascriptllmnovapaiopenai-compatiblesdk-example

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.