RemoteAIDocumentation
โšก

RemoteAI Documentation

Complete guide โ€” from getting your API key to tracking costs, choosing providers, and understanding pricing.

โœ“ Get Free Key in 30 secโœ“ No Credit Card Requiredโœ“ 100 req/mo Freeโœ“ 8 Providers

๐Ÿš€ Get Started in 3 Steps

From zero to your first AI response in under 5 minutes.

1

Get Your API Key

Go to the RemoteAI playground โ†’ click Get API Key โ†’ fill name + email โ†’ your key is issued instantly.

javascript
// Register for a free key via API
const res = await fetch("https://pulsedataengineer.com/functions/remoteAIGateway", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    action: "register",
    name:   "Your Name",
    email:  "you@example.com",
    plan:   "free",   // free | starter | pro
  })
});

const { apiKey, plan, monthlyLimit } = await res.json();
console.log(apiKey);  // "rai_xxxxxxxxxxxxxxxxxxxx"
โœ…
Your key looks like: rai_xxxxxxxxxxxxxxxxxxxx โ€” save it, it won't be shown again.
2

Install the SDK

Install via npm (JavaScript/Node.js) or call the REST API directly (Python, cURL, any language).

terminal
npm install remoteai
๐ŸŽฏ
Don't use Node.js? Skip install โ€” just use the REST API directly with requests in Python or fetch in any language.
3

Make Your First Call

Choose your language โ€” same result, different syntax.

javascript
import RemoteAI from "remoteai";

const ai = new RemoteAI({
  apiKey: "rai_your_key_here",  // โ† key YOU got from remoteai.io
});

// Simple ask โ€” RemoteAI picks best provider automatically
const res = await ai.ask("Explain supervised learning in 2 sentences.");

console.log(res.text);
// โ†’ "Supervised learning is a type of machine learning where..."

console.log(res.meta);
// โ†’ { provider: "groq", model: "llama3-70b", cost: "$0.0002", latency: "118ms" }
โœ…
That's it! RemoteAI automatically picked the best available provider, optimized your tokens, and returned a clean response with cost metadata.
๐Ÿš€

Ready to build?

Get your free API key and make your first call in under 5 minutes.

A PulseDataEngineer ยท TechPulse initiative