Quickstart
Get a working AI response in under 5 minutes.
-
Get your API key
Sign up at app.neureus.ai, then go to Settings → API Keys → Create API Key.
Your key starts with
nru_. -
Install the SDK
Terminal window npm install @neureus/sdk -
Send your first message
Create
hello.ts:import { Neureus } from '@neureus/sdk';const client = new Neureus({apiKey: process.env.NEUREUS_API_KEY!,});const response = await client.ai.chat({messages: [{ role: 'user', content: 'Hello from Neureus!' }],model: 'meta/llama-3.1-8b', // free, edge-deployed, no key required});console.log(response.content);// → "Hello! I'm running on Neureus, an edge-deployed AI platform..."Run it:
Terminal window NEUREUS_API_KEY=nru_your_key npx tsx hello.ts -
Or use cURL directly
Terminal window curl https://app.neureus.ai/ai/chat \-H "Authorization: Bearer nru_your_key" \-H "Content-Type: application/json" \-d '{"messages": [{"role": "user", "content": "Hello from Neureus!"}],"model": "meta/llama-3.1-8b"}'
What’s next?
- Get your first AI response — streaming, model selection, BYOK
- Add knowledge to your app — RAG in 3 API calls
- Build an agent — stateful agents with tool use