Quickstart Guide
Get up and running with Quiet Stack in under 5 minutes. This guide will walk you through logging your first AI interaction to the blockchain.
Prerequisites
What you'll need before getting started
- A Quiet Stack account (sign up for free)
- Access to any AI provider (OpenAI, Anthropic, local models, etc.)
- Ability to make HTTP requests (any programming language works)
No SDK Installation Required
Quiet Stack is a REST API - use any HTTP client in any language
Why no SDK?
Quiet Stack is provider-agnostic. You use your own AI provider directly, then log the audit trail to our API. This means you can use any language, any framework, and any AI provider without being locked into our tooling.
Works with:
Get Your API Key
Create an account and generate your first API key
- 1Sign up for a free account at Quiet Stack
- 2Navigate to your dashboard and go to the API Keys section
- 3Click "Create API Key" and give it a descriptive name
- 4Copy the API key and store it securely
Log Your First AI Interaction
Make an AI request, then log it to blockchain
A. Make your AI request (example with OpenAI)
// JavaScript example
const aiResponse = await fetch('https://api.openai.com/v1/chat/completions', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_OPENAI_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model: 'gpt-4',
messages: [{
role: 'user',
content: 'What is the capital of France?'
}]
})
});
const aiData = await aiResponse.json();
console.log('AI Response:', aiData.choices[0].message.content);B. Log to Quiet Stack blockchain
const auditResponse = await fetch('https://api.quietstack.ai/api/v1/audit/log', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_QUIETSTACK_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 the capital of France?',
response: aiData.choices[0].message.content,
token_usage: aiData.usage,
timestamp: new Date().toISOString()
}
})
});
const audit = await auditResponse.json();
console.log('Blockchain Transaction:', audit.transaction_hash);Expected Output
AI Response: The capital of France is Paris. Blockchain Transaction: 0x070cfd79fcfd7fdd6f934253496e7a...
Verify on Blockchain
Check your transaction on Polygonscan or in your dashboard
Option 1: View on Polygonscan
Copy your transaction hash and view it on the Polygon blockchain explorer:
https://polygonscan.com/tx/YOUR_TRANSACTION_HASHOption 2: View in Dashboard
All your logged contexts appear in your Quiet Stack dashboard with full transaction details.
💡 Understanding Blockchain Verification
Once logged to Polygon, your AI interaction is immutably recorded. The transaction hash is proof that the context existed at that specific time with that exact content. This creates an auditable trail for compliance, accountability, and verification.
🎉 Congratulations!
You've successfully logged your first AI interaction to the blockchain. Here's what to explore next.
Need Help?
Having trouble with the quickstart? We're here to help.