Official Node.js SDK for DEVUP AI — Algeria's AI inference gateway. OpenAI-compatible, 170+ models, DZD billing.
DEVUP AI — Official Node.js SDK
> Official Node.js SDK for DEVUP AI — Algeria's AI inference gateway.
> OpenAI-compatible API with 170+ models, billed in DZD via Edahabia & CIB.
## Why DEVUP AI?
| Feature | Details |
| ------------------------ | --------------------------------------------------- |
| 🇩🇿 **Local Payments** | Pay in DZD via Edahabia & CIB |
| 💳 **No Visa Required** | No international card needed |
| 🤖 **170+ Models** | Llama, Qwen, DeepSeek, FLUX, Whisper, and more |
| ⚡ **OpenAI-Compatible** | Drop-in replacement — just change the base URL |
| 🌍 **Edge Ready** | Works in Vercel Edge, Cloudflare Workers, Deno, Bun |
| 🔒 **Zero Retention** | Your data is never stored |
## Installation
```bash
npm install devupai
```
## Quick Start
```typescript
import DevupAI from "devupai";
const client = new DevupAI({
apiKey: process.env.DEVUP_API_KEY!,
});
const response = await client.chat.completions.create({
model: "meta-llama/Llama-3.3-70B-Instruct-Turbo",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);
```
## Features
- ✅ Chat completions (streaming + non-streaming)
- ✅ Image generation (FLUX, SDXL, and more)
- ✅ Text embeddings (BGE-M3, multilingual)
- ✅ Text-to-speech & speech-to-text
- ✅ Video generation
- ✅ Reranking
- ✅ Model listing
- ✅ Vercel AI SDK compatible (via `devupai/ai`)
- ✅ Works in Node.js 18+, Browser, Edge Runtime, Deno, Bun
- ✅ Zero runtime dependencies
- ✅ Full TypeScript support
## Available Models
170+ open-source models across all modalities:
| Category | Models |
| ------------------- | ------------------------------------------------ |
| 💬 Chat & Reasoning | Llama 3.3, Qwen 3, DeepSeek V3, Mistral, GPT OSS |
| 🖼️ Image Generation | FLUX.1 (schnell/dev/ …