Documentazione
Tutto quello che serve per portare in produzione agenti, modelli e automazioni con AICore. Endpoint REST, SDK tipizzati, esempi runnable e best practice per il deployment.
Quickstart
Installa l'SDK e fai la prima chiamata in meno di 2 minuti.
# npm
npm install @aicore/sdk
# python
pip install aicorebashimport { AICore } from "@aicore/sdk";
const ai = new AICore({ apiKey: process.env.AICORE_KEY });
const res = await ai.chat.completions.create({
model: "atlas-70b",
messages: [{ role: "user", content: "Summarize this email" }],
});
console.log(res.choices[0].message.content);typescriptPlayground
Prova i modelli direttamente dalla documentazione. Seleziona il modello, fai una domanda e ricevi la risposta in streaming.
Prova una di queste domande:
Autenticazione
Tutte le richieste richiedono un Bearer token. Le chiavi si gestiscono dal pannello workspace con scope per ambiente (dev / staging / prod) e rotazione automatica ogni 90 giorni.
curl https://api.aicore.dev/v1/chat/completions \
-H "Authorization: Bearer $AICORE_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"atlas-70b","messages":[{"role":"user","content":"hello"}]}'bashAPI REST
Base URL https://api.aicore.dev/v1. Tutti gli endpoint supportano streaming via SSE, function calling e response_format JSON-schema.
/chat/completionsChat completion (streaming opzionale).
/embeddingsEmbedding semantici 1024d/3072d.
/agents/runsEsegue un agente con tool calling.
/agents/runs/:idStato e trace di un run.
/filesUpload documenti per RAG (PDF, MD, DOCX).
/evalsLancia una suite di eval.
SDK
SDK ufficiali first-class in TypeScript, Python e Go. Retry esponenziale, streaming, typed response.
TypeScript
v2.4.1npm i @aicore/sdkPython
v2.4.0pip install aicoreGo
v1.8.2go get aicore.dev/sdkWebhook
Ricevi eventi in tempo reale per run completati, fallimenti, batch processati. Firma HMAC-SHA256.
{
"id": "evt_01J9Z7...",
"type": "agent.run.completed",
"data": {
"run_id": "run_xyz",
"agent": "sales-qualifier",
"duration_ms": 4318,
"tokens": { "in": 1240, "out": 410 }
},
"created_at": "2026-06-17T14:22:01Z"
}jsonModelli
atlas-70bFrontier reasoning, function calling avanzato.
helix-8bVeloce ed economico per task ad alto volume.
mosaic-visionMultimodale: documenti, screenshot, OCR.
ember-embed-3Embedding 3072d per retrieval semantico.
Agenti
Definisci agenti con tool calling, memoria persistente e guardrail. Esegui sandbox-isolated.
const agent = ai.agents.define({
name: "sales-qualifier",
model: "atlas-70b",
tools: [hubspot.getDeals, gmail.draftReply],
guardrails: ["no-pii-leak", "tone-professional"],
});
const run = await agent.run({ input: "Qualify today's leads" });typescriptCookbook
RAG con citazioni verificabili
Cookbook · ~15 min
Agente di vendita su HubSpot
Cookbook · ~15 min
Document AI: estrazione fatture
Cookbook · ~15 min
Eval con golden dataset
Cookbook · ~15 min
Fine-tuning su Helix 8B
Cookbook · ~15 min
Streaming con SSE in React
Cookbook · ~15 min