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
}
})
});
RAW.AI can be accessed through our API, CLI tools, or SDK libraries. Choose the method that best fits your workflow.
No installation required. Use your API key to make HTTP requests to our endpoints.
# Using npm
npm install -g raw-ai-cli
# Using yarn
yarn global add raw-ai-cli
# Using pip
pip install raw-ai-cli
# JavaScript
npm install raw-ai-sdk
# Python
pip install raw-ai
# Go
go get github.com/raw-ai/raw-ai-go
All requests to RAW.AI require authentication using API keys. API keys should be kept secure and never exposed in client-side code.
API keys can be generated in your RAW.AI dashboard after signing up for an account.
// 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');
Get started with RAW.AI in minutes with these basic examples.
// 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);
// 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)
# 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
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.