API v2 · Now GA

Build AI-PoweredProducts Faster

REST & GraphQL APIs. Sub-200ms inference. SDKs for 4 languages. Built for engineers who want to ship — not configure.

< 200ms
P99 inference latency
99.95%
Endpoint uptime SLA
50M+
API calls per month
4
Official SDK languages
API overview

API Integration Walkthrough

5 min · Zero to first API call

▶ QUICKSTART VIDEO

5-Minute Quickstart

quickstart.py
import astralearnia as astra

# Initialize with your API key
client = astra.Client(api_key="al_live_••••••••••••••••")

# Run an inference
result = client.inference.run(
    model="decision-v3",
    inputs={"user_id": "u_123", "context": "churn risk"},
    options={"explain": True}
)

print(result.prediction)   # "HIGH_RISK"
print(result.confidence)   # 0.91
print(result.explanation)  # "Last login 42 days ago..."
🐍
Python
pip install astralearnia
v2.4.1
Node.js
npm install @astralearnia/sdk
v2.4.1
Go
go get astralearnia.com/sdk/go
v2.3.0
Java
com.astralearnia:sdk:2.4.0
v2.4.0

Core Endpoints

POST/v1/inference~180ms
GET/v1/models~40ms
POST/v1/trainasync
POST/v1/pipelinesasync
GET/v1/jobs/{id}~35ms
POST/v1/embed~95ms

Authentication

All API requests require a Bearer token in the Authorization header. API keys are scoped per environment (live/test) and per workspace.

Authorization: Bearer al_live_••••••••••••••••

Ready to Build?

Get your API key and ship in under 48 hours. Enterprise SLAs and dedicated support available.