HOME ABOUT PRODUCTS DOCS BLOG FAQ's CONTACT

INTRODUCTION

RAW.AI provides unfiltered access to neural networks and computational resources. This documentation covers the technical details of our API, CLI tools, and integration methods.

Unlike conventional AI platforms, RAW.AI does not impose artificial limitations or filters on inputs or outputs. This provides maximum flexibility but requires responsible usage.

// Example: Basic API call
const response = await fetch('https://api.raw.ai/v1/generate', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_API_KEY'
  },
  body: JSON.stringify({
    prompt: 'Analyze the following data:',
    data: [/* your data here */],
    parameters: {
      filter_level: 'none',
      max_tokens: 1000
    }
  })
});
WARNING
RAW.AI provides unfiltered outputs. You are responsible for how you use and deploy our technology.

INSTALLATION

RAW.AI can be accessed through our API, CLI tools, or SDK libraries. Choose the method that best fits your workflow.

API ACCESS

No installation required. Use your API key to make HTTP requests to our endpoints.

CLI INSTALLATION

# Using npm
npm install -g raw-ai-cli

# Using yarn
yarn global add raw-ai-cli

# Using pip
pip install raw-ai-cli

SDK LIBRARIES

# JavaScript
npm install raw-ai-sdk

# Python
pip install raw-ai

# Go
go get github.com/raw-ai/raw-ai-go

AUTHENTICATION

All requests to RAW.AI require authentication using API keys. API keys should be kept secure and never exposed in client-side code.

OBTAINING AN API KEY

API keys can be generated in your RAW.AI dashboard after signing up for an account.

USING YOUR API KEY

// REST API
fetch('https://api.raw.ai/v1/generate', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
});

// CLI
raw-ai configure --api-key=YOUR_API_KEY

// JavaScript SDK
const rawAI = new RawAI('YOUR_API_KEY');
SECURITY NOTICE
Never expose your API key in client-side code or public repositories. Use environment variables or secure vaults to store your keys.

QUICKSTART

Get started with RAW.AI in minutes with these basic examples.

TEXT GENERATION

// JavaScript
const rawAI = new RawAI('YOUR_API_KEY');
const result = await rawAI.generate({
  prompt: 'Analyze the market trends for AI in 2025',
  max_tokens: 500
});

console.log(result.text);

DATA ANALYSIS

// Python
from raw_ai import RawAI

client = RawAI("YOUR_API_KEY")
result = client.analyze(
    data=[{"sales": 100}, {"sales": 150}, {"sales": 200}],
    analysis_type="trend"
)

print(result.analysis)

CLI USAGE

# Generate text
raw-ai generate "Analyze the market trends for AI in 2025" --max-tokens 500

# Analyze data
raw-ai analyze data.json --type trend --output analysis.json

ENDPOINTS

RAW.AI provides the following core API endpoints:

ENDPOINT METHOD DESCRIPTION
/v1/generate POST Generate text from a prompt
/v1/analyze POST Analyze data and return insights
/v1/embed POST Generate embeddings for text
/v1/models GET List available models
/v1/finetune POST Create a fine-tuning job

For a complete list of endpoints and their parameters, see the API Reference.