Skip to content

Some examples of how to use Zeabur AI Hub with different Node.js and Python AI SDKs.

Notifications You must be signed in to change notification settings

zeabur/ai-hub-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Zeabur AI Hub Examples

Minimal Python and JavaScript scripts that stream responses from Zeabur AI Hub models.

What is Zeabur AI Hub?

Zeabur AI Hub is the AI models Hub service in Zeabur, allowing you to access and integrate state-of-the-art AI models from multiple providers (like OpenAI, Anthropic, Google, and more) through a unified API and key. You can easily connect your applications to high-performance LLMs and deploy AI features globally with minimal setup.

Learn more in the official docs: https://zeabur.com/docs/ai-hub

Prerequisites

Python

cd python
python3.13 -m venv venv
pip install -r requirements.txt
ZEABUR_AI_HUB_API_KEY=sk-xxxxxxxx python openai-stream-chat.py

Node.js

cd js
pnpm i
ZEABUR_AI_HUB_API_KEY=sk-xxxxxxxx node openai-stream-chat.js

All scripts stream responses to stdout; tweak the model, base_url or prompts as needed.

About

Some examples of how to use Zeabur AI Hub with different Node.js and Python AI SDKs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published