Skip to main content

Welcome to Lucid

Lucid is a verifiable AI inference protocol. Every AI call gets a cryptographic receipt, anchored on Solana, with full auditability.

Get Started in 2 Minutes

1

Install the SDK

npm install raijin-labs-lucid-ai
2

Run your first inference

import { LucidAI } from "raijin-labs-lucid-ai";

const lucid = new LucidAI({ bearerAuth: "your-api-key" });

const result = await lucid.chat.completions({
  model: "gpt-4o",
  messages: [{ role: "user", content: "Hello from Lucid!" }]
});
3

Verify your receipt

Every inference generates a cryptographic receipt anchored on Solana. Learn more →
65+ API endpoints are auto-documented in the API Reference tab with interactive playground.

Architecture Overview

┌─────────────┐     ┌──────────────┐     ┌─────────────┐
│   Your App  │────▶│  Lucid API   │────▶│  LLM Model  │
│  (SDK/REST) │     │  (Routing)   │     │  (100+)     │
└─────────────┘     └──────┬───────┘     └─────────────┘

                    ┌──────▼───────┐
                    │   Receipt    │──── Cryptographic proof
                    │   (MMR)      │──── Merkle Mountain Range
                    └──────┬───────┘

                    ┌──────▼───────┐
                    │   Solana     │──── On-chain anchor
                    │   (Epoch)    │──── Batch verification
                    └──────────────┘

Why Lucid?

FeatureTraditional APILucid Protocol
AuditabilityLogs (mutable)Cryptographic receipts (immutable)
VerificationTrust the providerVerify on-chain
Multi-modelOne provider100+ models, policy-based routing
Cost trackingApproximateExact, per-receipt
Agent proofsNoneFull execution trace on-chain