Embed grounded Agent FAI workflows.
One authenticated agent contract for applications, automation, Studio, and VS Code: grounded chat, architecture, citations, safe diagrams, durable threads, Play search, and cost direction.
Base URL:
https://frootai.dev/v1/agentEmbed Agent FAI in your product
Use the same grounded Agent FAI runtime from your application, automation, or Studio workload. Personal fai_live_… keys are verified through your Supabase-backed FrootAI account and never forwarded to the model service.
/chatAuthenticated durable workload endpoint. Continue later by sending the returned threadId — prior turns are restored server-side.
Request
{
"message": "Design a secure RAG platform",
"threadId": null,
"mode": "architecture",
"capabilities": { "diagrams": true, "citations": true }
}Response
{
"reply": "## Architecture\n...",
"usage": { ... },
"agent": {
"requestId": "...",
"threadId": "...",
"version": "4.0.0",
"mode": "architecture",
"client": "api",
"grounding": {
"corpusSize": 1017,
"productRegistry": { "schemaVersion": "1.0.0", "updatedAt": "2026-07-29", "digest": "sha256...", "products": 12 },
"sources": [...]
},
"mcp": { "status": "ok", "toolCalls": [{ "name": "search_knowledge", "status": "ok" }] }
}
}/web/healthBranded FAI Engine availability, capabilities, authoritative catalog coverage, and a content-safe knowledge freshness digest.
Request
N/A
Response
{
"status": "ok",
"service": "fai-engine",
"version": "4.0.0",
"capabilities": ["chat", "streaming", "grounding", "citations", "mermaid", "mcp-router"],
"catalog": { "entries": 1017, "plays": 101, "modules": 25, "mcpTools": 45, "products": 12 },
"knowledge": { "schemaVersion": "1.0.0", "updatedAt": "2026-07-29", "digest": "sha256...", "products": 12 },
"observability": { "structuredLogs": true, "correlationIds": true, "contentLogging": false }
}/web/search-playsSearch the curated core solution-play index.
Request
{ "query": "document processing" }Response
{ "results": [{ "id": "06", "name": "Document Intelligence", "score": 0.92 }] }/web/estimate-costReturn a historical directional planning baseline. Validate current regional provider pricing before production approval.
Request
{ "play": "01", "scale": "dev" }Response
{ "estimateType": "historical-directional", "asOf": "2026-04-06", "currency": "USD", "warning": "Planning baseline only...", "play": { "id": "01", "name": "Enterprise RAG" }, "scale": "dev", "items": [...], "total": 245 }