API Documentation

Quiet Stack API

Add blockchain verification to your AI requests with just one API call. No SDK required - works with any programming language.

Quick Start

Add blockchain verification to your AI workflow in 3 simple steps

1

Get API Key

Generate your API key from the dashboard

2

Use Any AI Provider

Make your AI request to OpenAI, Anthropic, or any provider you choose

3

Log to Blockchain

Send the context to Quiet Stack for immutable blockchain verification

How It Works:

Your app makes an AI request directly to your provider (OpenAI, Claude, etc.)
You get the AI response immediately - no latency added
Log the context to Quiet Stack at api.quietstack.ai/api/v1/audit/log for blockchain proof

Code Examples

Choose your programming language and start building

// Step 1: Make your AI request to any provider
const aiResponse = await fetch('https://api.openai.com/v1/chat/completions', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_OPENAI_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    model: 'gpt-4',
    messages: [{ role: 'user', content: 'What is blockchain verification?' }]
  })
});
const aiData = await aiResponse.json();

// Step 2: Log the context to Quiet Stack for blockchain verification
const auditResponse = await fetch('https://api.quietstack.ai/api/v1/audit/log', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer qs_live_YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    context: {
      request_id: 'req-' + Date.now(),
      model_provider: 'openai',
      model_name: 'gpt-4',
      prompt: 'What is blockchain verification?',
      response: aiData.choices[0].message.content,
      token_usage: aiData.usage,
      timestamp: new Date().toISOString()
    }
  })
});

const auditData = await auditResponse.json();
console.log('Transaction Hash:', auditData.transaction_hash);
console.log('Context Hash:', auditData.context_hash);

API Reference

Complete endpoint documentation

POST /api/v1/audit/log

Log AI context data to blockchain for immutable verification

https://api.quietstack.ai/api/v1/audit/log

Headers

AuthorizationBearer qs_live_your_api_key
Content-Typeapplication/json

Request Body

request_idstringUnique request identifier
model_providerstringAI provider: "openai", "anthropic", etc.
model_namestringModel used: "gpt-4", "claude-3-opus"
promptstringThe input prompt sent to the AI
responsestringThe AI's response
token_usageobjectToken usage stats from the AI provider
timestampstringISO 8601 timestamp

Response

{
  "audit_id": "f25bdb80-1bb0-4552-a1ba-0fb59d3c1aaf",
  "transaction_hash": "0x070cfd79fcfd7fdd6f934253496e7a0094e4ce...",
  "status": "logged",
  "timestamp": "2025-11-24T03:18:21.877Z",
  "context_hash": "393ec5ad771d97174462f63e632d55c2c272fc..."
}

Note: The transaction is logged to Polygon blockchain. You can verify it on Polygonscan using the transaction_hash.

Works With Any AI Provider

Complete provider flexibility - no lock-in

Quiet Stack is completely model agnostic. We don't make AI requests for you - we log the audit trail to blockchain. This means you can use:

Commercial Providers

• OpenAI (GPT-3.5, GPT-4, GPT-4o)
• Anthropic (Claude 3 family)
• Google (Gemini)
• Mistral AI
• Cohere

Any Other Provider

• Local models (Ollama, LM Studio)
• Open source (Llama, Mistral)
• Self-hosted solutions
• Custom fine-tuned models
• Future AI providers

Advantage: You keep direct relationships with AI providers, get their latest features immediately, and Quiet Stack simply logs the audit trail to blockchain - no provider integration needed.

Ready to get started?

Create your API key and start adding blockchain verification to your AI requests.