Now in public beta

One API, All AI Capabilities

Chat, code generation, image creation, text-to-speech, embeddings, web search — all through a single endpoint. Multi-model with auto-fallback.

# Install the SDK
npm install ninerai

# Or use curl
curl -X POST https://api.ninerai.com/v1/chat \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"messages":[{"role":"user","content":"Hello"}]}'
9
AI Capabilities
40+
AI Models
99.9%
Uptime SLA
<50ms
Latency (p95)

Everything You Need

Stop juggling multiple AI providers. One API key, one endpoint, all capabilities.

💬

Chat & Code Generation

Multi-model chat with auto-fallback. Generate code in any language.

FREE
🔍

Code Analysis

Get scores, bugs, suggestions, and security insights for your code.

FREE
🎨

Image Generation

DALL-E 3, Gemini Imagen, FLUX, and more. Create stunning visuals.

STARTER
🔊

Text-to-Speech

Natural voices with OpenAI, ElevenLabs, and 20+ providers.

STARTER
🎙️

Speech-to-Text

Whisper, Groq, Deepgram — transcribe audio with 99% accuracy.

PRO
🧮

Embeddings

Vector embeddings for RAG, semantic search, and AI applications.

PRO
🌐

Web Search

Tavily, Brave, Serper — search the web from your AI apps.

ENTERPRISE
📄

URL → Markdown

Extract content from any URL. Perfect for RAG pipelines.

ENTERPRISE

Auto-Fallback

If one provider goes down, we automatically switch to another.

ALL PLANS

Simple, Transparent Pricing

Start free. Scale as you grow. No hidden fees.

FREE
$0 /mo
Perfect for trying out the API
  • 100 requests/month
  • Chat & code generation
  • Code analysis
  • Community support
Get Started
STARTER
$9 /mo
For solo developers
  • 1,000 requests/month
  • Everything in FREE
  • Image generation
  • Text-to-speech
Choose Starter
ENTERPRISE
$99 /mo
For teams & businesses
  • 100,000 requests/month
  • Everything in PRO
  • Web search
  • URL fetch
  • SLA guarantee
  • Dedicated support
Choose Enterprise

Start Building in Minutes

Works with your favorite languages and frameworks.

JavaScript
Python
cURL
// Install: npm install ninerai
import { NinerAI } from 'ninerai';

const ai = new NinerAI('your-api-key');

// Chat
const chat = await ai.chat.create({
  messages: [{ role: 'user', content: 'Hello!' }],
  model: 'groq/llama-3.3-70b-versatile'
});
console.log(chat.result);

// Generate image
const img = await ai.image.generate({
  prompt: 'a sunset over mountains'
});
console.log(img.url);

// Text-to-speech
const audio = await ai.tts.create({
  text: 'Hello world'
});
# Install: pip install ninerai
from ninerai import NinerAI

ai = NinerAI('your-api-key')

# Chat
chat = ai.chat.create(
    messages=[{'role': 'user', 'content': 'Hello!'}]
)
print(chat.result)

# Generate image
img = ai.image.generate(prompt='a sunset over mountains')
print(img.url)

# Text-to-speech
audio = ai.tts.create(text='Hello world')
# Chat
curl -X POST https://api.ninerai.com/v1/chat \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [{"role": "user", "content": "Hello!"}],
    "model": "groq/llama-3.3-70b-versatile"
  }'

# Generate image
curl -X POST https://api.ninerai.com/v1/image \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "a sunset over mountains"}'

Ready to Build?

Start with 100 free requests. No credit card required.

Get Your API Key →