Quick Start5 min read

Get up and running with Auno in just a few minutes. This guide will walk you through the installation process and your first API call.

Prerequisites

Before you begin, make sure you have:

  • Node.js 14.0 or higher installed
  • An Auno account and API key
  • Basic knowledge of JavaScript/TypeScript

Installation

Install the Auno SDK using npm or yarn:

npm install @auno/sdk

Configuration

Create a new instance of the Auno client with your API key:

import { AunoClient } from '@auno/sdk';

const client = new AunoClient({
  apiKey: process.env.AUNO_API_KEY,
  environment: 'production' // or 'sandbox' for testing
});

Security Note

Never expose your API key in client-side code. Always use environment variables and keep your keys secure.

Your First API Call

Let's make your first API call to analyze some text:

async function analyzeText() {
  try {
    const result = await client.analyze({
      text: "Auno is an amazing AI platform that helps developers build smarter applications.",
      features: ["sentiment", "entities", "keywords"],
      language: "en"
    });
    
    console.log("Analysis Results:", result);
    
    // Output:
    // {
    //   sentiment: { score: 0.92, label: "positive" },
    //   entities: [
    //     { text: "Auno", type: "PRODUCT", confidence: 0.98 }
    //   ],
    //   keywords: [
    //     { text: "AI platform", relevance: 0.95 },
    //     { text: "developers", relevance: 0.87 }
    //   ]
    // }
  } catch (error) {
    console.error("Error:", error);
  }
}

analyzeText();

Success!

Congratulations! You've successfully made your first API call with Auno. You're now ready to explore more advanced features.

Next Steps

Need Help?

We're here to help you succeed with Auno.