Skip to content

Quickstart

Get a working AI response in under 5 minutes.

  1. Get your API key

    Sign up at app.neureus.ai, then go to Settings → API Keys → Create API Key.

    Your key starts with nru_.

  2. Install the SDK

    Terminal window
    npm install @neureus/sdk
  3. 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
  4. 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?