API Documentation

QuietStack API

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

Quick Start

Get blockchain verification in 3 simple steps

1

Get API Key

Generate your API key from the dashboard

2

Change Endpoint

Point to api.quietstack.ai instead of OpenAI

3

Get Verification

Every response includes blockchain proof and audit trail

Before (Direct to OpenAI):

https://api.openai.com/v1/chat/completions

After (Through QuietStack):

https://api.quietstack.ai/v1/proxy ✓ Blockchain verified

Code Examples

Choose your programming language and start building

const response = await fetch('https://api.quietstack.ai/v1/proxy', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer qs_live_YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    provider: 'openai',
    model: 'gpt-3.5-turbo',
    messages: [{
      role: 'user',
      content: 'What is blockchain verification?'
    }]
  })
});

const data = await response.json();
console.log(data.response);  // AI response
console.log(data.verification);  // Blockchain proof

API Reference

Complete endpoint documentation

POST /v1/proxy

Forward AI requests through QuietStack with automatic blockchain verification

https://api.quietstack.ai/v1/proxy

Headers

AuthorizationBearer qs_live_your_api_key
Content-Typeapplication/json

Request Body

providerstringAI provider: "openai", "anthropic"
modelstringModel name: "gpt-3.5-turbo", "claude-3-opus"
messagesarrayChat messages in OpenAI format

Response

{
  "response": "Blockchain verification ensures...",
  "usage": {
    "tokens": 145,
    "cost": 0.0003
  },
  "verification": {
    "hash": "0x7d4e3c2f1a8b9e6d5c4a7b8e9f2d1c0a3b6e5d4c7a8b",
    "blockchain_tx": "https://polygonscan.com/tx/0x7d4e3...",
    "timestamp": "2024-01-20T10:30:00Z",
    "verify_url": "https://quietstack.com/verify/0x7d4e3..."
  }
}

Supported AI Providers

Available models and providers

OpenAI

gpt-3.5-turbo
gpt-4
gpt-4-turbo
gpt-4o

Anthropic

claude-3-opus
claude-3-sonnet
claude-3-haiku

Ready to get started?

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