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 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..."🐍v2.4.1
Python
pip install astralearnia
⬡v2.4.1
Node.js
npm install @astralearnia/sdk
◈v2.3.0
Go
go get astralearnia.com/sdk/go
☕v2.4.0
Java
com.astralearnia:sdk:2.4.0
Core Endpoints
POST
/v1/inference~180msGET
/v1/models~40msPOST
/v1/trainasyncPOST
/v1/pipelinesasyncGET
/v1/jobs/{id}~35msPOST
/v1/embed~95msAuthentication
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.