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"}]}'
Stop juggling multiple AI providers. One API key, one endpoint, all capabilities.
Multi-model chat with auto-fallback. Generate code in any language.
FREEGet scores, bugs, suggestions, and security insights for your code.
FREEDALL-E 3, Gemini Imagen, FLUX, and more. Create stunning visuals.
STARTERNatural voices with OpenAI, ElevenLabs, and 20+ providers.
STARTERWhisper, Groq, Deepgram — transcribe audio with 99% accuracy.
PROVector embeddings for RAG, semantic search, and AI applications.
PROTavily, Brave, Serper — search the web from your AI apps.
ENTERPRISEExtract content from any URL. Perfect for RAG pipelines.
ENTERPRISEIf one provider goes down, we automatically switch to another.
ALL PLANSStart free. Scale as you grow. No hidden fees.
Works with your favorite languages and frameworks.
// 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"}'