The AI API for your SaaS
Ship AI features in minutes. Point the OpenAI SDK at Animica, swap in a key, and your existing code runs unchanged — then go to production with real streaming, per-key spend caps, usage analytics, and signed webhooks.
Drop-in
Change two lines
Already using OpenAI? Set the base URL and key — that's the whole migration.
Python
from openai import OpenAI
client = OpenAI(
base_url="https://api.animica.org/v1",
api_key="anm_live_…",
)
r = client.chat.completions.create(
model="anm-fast-8b",
messages=[{"role": "user", "content": "Hello!"}],
)Node / TypeScript
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.animica.org/v1",
apiKey: process.env.ANIMICA_API_KEY,
});
const r = await client.chat.completions.create({
model: "anm-fast-8b",
messages: [{ role: "user", content: "Hello!" }],
});Models
A model for every job
anm-fast-8bLow-latency chatanm-code-7bCode generationanm-pro-70bFrontier reasoninganm-bittensor-routerRoutes to Bittensor subnetsanm-embedEmbeddingsBuilt for production
Everything a SaaS needs to run AI
Not just an endpoint — the controls, observability and billing to operate AI safely at scale.
Drop-in compatible
Point the official OpenAI SDK at our base URL and your chat, streaming, and embeddings code runs unchanged. Same request and response shapes, same error envelope.
Real token streaming
Token-by-token SSE on /chat/completions with stream:true — first tokens in milliseconds, straight into your existing chat UI.
Spend controls
Per-key rate limits and monthly spend caps, org budgets with auto-recharge, and idempotency keys so retries never double-bill.
Usage analytics
Break usage down per key, per model, and per day — with CSV export for finance and customer billing.
Signed webhooks
HMAC-signed webhooks for request, balance and payment events. Verify the signature and react inside your own backend.
Pay in credits
Fund your account with ANM or crypto credits. No card required, no surprise overages — usage stops at your limits.
SDKs
Official SDKs, or any OpenAI client
TypeScript — @animica/sdk
npm i @animica/sdk
import { Animica } from "@animica/sdk";
const animica = new Animica({ apiKey: process.env.ANIMICA_API_KEY });
const r = await animica.chat.completions.create({
model: "anm-fast-8b",
messages: [{ role: "user", content: "Hi" }],
});Python — animica-ai
pip install animica-ai
from animica_ai import Animica
animica = Animica(api_key="anm_live_…")
r = animica.chat_completions(
model="anm-fast-8b",
messages=[{"role": "user", "content": "Hi"}],
)Ready to build?
Create an account, mint a key, and make your first call in under a minute.