chore: enhance .gitignore and remove obsolete documentation files - Reorganize .gitignore with categorized sections for better maintainability - Add comprehensive ignore patterns for Python, Node.js, databases, logs, and build artifacts - Add project-specific ignore rules for coordinator, explorer, and deployment files - Remove outdated documentation: BITCOIN-WALLET-SETUP.md, LOCAL_ASSETS_SUMMARY.md, README-CONTAINER-DEPLOYMENT.md, README-DOMAIN-DEPLOYMENT.md ```
472 lines
21 KiB
HTML
472 lines
21 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Client Documentation - AITBC</title>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
|
<link rel="stylesheet" href="css/docs.css">
|
|
</head>
|
|
<body>
|
|
<!-- Header -->
|
|
<header class="shadow-lg" style="background: var(--bg-white); position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 1px 3px rgba(0,0,0,0.1);">
|
|
<div class="container" style="max-width: 1200px; margin: 0 auto; padding: 0 20px;">
|
|
<div style="display: flex; align-items: center; justify-content: space-between; padding: 1rem 0;">
|
|
<div style="display: flex; align-items: center; gap: 0.75rem;">
|
|
<i class="fa fa-cube" style="font-size: 2rem; color: var(--primary-color);"></i>
|
|
<h1 style="font-size: 1.5rem; font-weight: bold; margin: 0; color: var(--text-dark);">AITBC</h1>
|
|
</div>
|
|
<nav style="display: flex; align-items: center; gap: 1.5rem;">
|
|
<a href="/" style="background: transparent !important; color: var(--text-dark) !important; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center;">Home</a>
|
|
<a href="/explorer/" style="background: transparent !important; color: var(--text-dark) !important; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center;">Explorer</a>
|
|
<a href="/Exchange/" style="background: transparent !important; color: var(--text-dark) !important; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center;">Exchange</a>
|
|
<a href="/docs/index.html" style="background: transparent !important; color: var(--text-dark) !important; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center;">Documentation</a>
|
|
<button id="themeToggle" class="theme-toggle" style="background: rgba(59, 130, 246, 0.1) !important; color: var(--primary-color) !important; border: 2px solid var(--primary-color); padding: 0.5rem 1rem; border-radius: 0.5rem; cursor: pointer; font-size: 1rem;">🌞</button>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- Main Content -->
|
|
<main>
|
|
<div class="container">
|
|
<div class="doc-header">
|
|
<span class="audience-badge">For Clients</span>
|
|
<h1>Use AITBC for AI/ML Workloads</h1>
|
|
<p>Access secure, private, and verifiable AI/ML computation on the decentralized network</p>
|
|
<div style="margin-top: 2rem; padding: 1.5rem; background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%); border-radius: 15px; border: 2px solid rgba(16, 185, 129, 0.2);">
|
|
<h3 style="color: var(--success-color); margin-bottom: 0.5rem; font-size: 1.2rem;">✅ Now Available: CLI Wrapper Tool</h3>
|
|
<p style="color: var(--text-light); margin: 0;">Submit jobs, check status, and verify receipts with our new bash CLI wrapper. Supporting 13+ Ollama models with real-time blockchain verification!</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Key Features -->
|
|
<div class="feature-grid">
|
|
<div class="feature-card">
|
|
<div class="feature-icon">
|
|
<i class="fas fa-shield-alt"></i>
|
|
</div>
|
|
<h3>Privacy First</h3>
|
|
<p>Your data and models remain confidential with zero-knowledge proofs and secure enclaves</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<div class="feature-icon">
|
|
<i class="fas fa-check-circle"></i>
|
|
</div>
|
|
<h3>Verifiable Results</h3>
|
|
<p>Every computation is cryptographically verified on the blockchain for trust and transparency</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<div class="feature-icon">
|
|
<i class="fas fa-bolt"></i>
|
|
</div>
|
|
<h3>Fast & Efficient</h3>
|
|
<p>Access thousands of GPUs worldwide with sub-second response times</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Getting Started -->
|
|
<section class="content-section">
|
|
<h2>Getting Started</h2>
|
|
<p>Start using AITBC in minutes with our simple client SDK or web interface.</p>
|
|
|
|
<h3>Quick Start Options</h3>
|
|
<ul>
|
|
<li><strong>CLI Wrapper Tool</strong>: ✅ NEW - Unified bash script for job management</li>
|
|
<li><strong>Web Interface</strong>: No installation required</li>
|
|
<li><strong>Python SDK</strong>: For AI/ML developers</li>
|
|
<li><strong>JavaScript SDK</strong>: For web applications</li>
|
|
<li><strong>REST API</strong>: For any platform</li>
|
|
</ul>
|
|
|
|
<h3>CLI Wrapper Tool (Recommended)</h3>
|
|
<div class="step">
|
|
<div class="step-number">1</div>
|
|
<div class="step-content">
|
|
<h4>Submit an Inference Job</h4>
|
|
<p>Use the bash CLI wrapper for easy job submission</p>
|
|
<div class="code-block">
|
|
# Submit job with CLI wrapper
|
|
./scripts/aitbc-cli.sh submit inference \
|
|
--prompt "What is machine learning?" \
|
|
--model llama3.2:latest
|
|
|
|
# Check job status
|
|
./scripts/aitbc-cli.sh status <job_id>
|
|
|
|
# View receipt with payment details
|
|
./scripts/aitbc-cli.sh receipts --job-id <job_id></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="alert alert-info" style="margin: 1.5rem 0; padding: 1rem; background: rgba(59, 130, 246, 0.1); border-left: 4px solid var(--primary-color); border-radius: 8px;">
|
|
<strong>Available Models:</strong> llama3.2, mistral, deepseek-r1:14b, gemma3, qwen2.5-coder, and 8+ more via Ollama integration. Processing time: 11-25 seconds. Rate: 0.02 AITBC per GPU second.
|
|
</div>
|
|
|
|
<h3>Web Interface (Fastest)</h3>
|
|
<div class="step">
|
|
<div class="step-number">1</div>
|
|
<div class="step-content">
|
|
<h4>Visit the Marketplace</h4>
|
|
<p>Go to <a href="https://gitea.bubuit.net/oib/aitbc">aitbc.bubuit.net/marketplace</a></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="step">
|
|
<div class="step-number">2</div>
|
|
<div class="step-content">
|
|
<h4>Connect Your Wallet</h4>
|
|
<p>Connect MetaMask or create a new AITBC wallet</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="step">
|
|
<div class="step-number">3</div>
|
|
<div class="step-content">
|
|
<h4>Submit Your Job</h4>
|
|
<p>Upload your data or model, select parameters, and submit</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="step">
|
|
<div class="step-number">4</div>
|
|
<div class="step-content">
|
|
<h4>Get Results</h4>
|
|
<p>Receive verified results with cryptographic proof</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Use Cases -->
|
|
<section class="content-section">
|
|
<h2>Popular Use Cases</h2>
|
|
|
|
<div class="use-case-grid">
|
|
<div class="use-case-card">
|
|
<h4><i class="fas fa-brain"></i> AI Inference ✅ LIVE</h4>
|
|
<p>Run inference on pre-trained models including LLama, Mistral, DeepSeek, and custom models via Ollama</p>
|
|
<ul>
|
|
<li>Text generation (13+ models)</li>
|
|
<li>Code generation (DeepSeek, Qwen)</li>
|
|
<li>Translation (Qwen2.5-translator)</li>
|
|
<li>Real-time processing (11-25s)</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="use-case-card">
|
|
<h4><i class="fas fa-graduation-cap"></i> Model Training</h4>
|
|
<p>Train and fine-tune models on your data with privacy guarantees</p>
|
|
<ul>
|
|
<li>Fine-tuning LLMs</li>
|
|
<li>Custom model training</li>
|
|
<li>Federated learning</li>
|
|
<li>Transfer learning</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="use-case-card">
|
|
<h4><i class="fas fa-chart-line"></i> Data Analysis</h4>
|
|
<p>Process large datasets with confidential computing</p>
|
|
<ul>
|
|
<li>Statistical analysis</li>
|
|
<li>Pattern recognition</li>
|
|
<li>Predictive modeling</li>
|
|
<li>Data visualization</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="use-case-card">
|
|
<h4><i class="fas fa-lock"></i> Secure Computation</h4>
|
|
<p>Run sensitive computations with end-to-end encryption</p>
|
|
<ul>
|
|
<li>Financial modeling</li>
|
|
<li>Healthcare analytics</li>
|
|
<li>Legal document processing</li>
|
|
<li>Proprietary algorithms</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- SDK Examples -->
|
|
<section class="content-section">
|
|
<h2>SDK Examples</h2>
|
|
|
|
<h3>Python SDK</h3>
|
|
<div class="code-block">
|
|
# Install the SDK
|
|
pip install aitbc
|
|
|
|
# Initialize client
|
|
from aitbc import AITBCClient
|
|
|
|
client = AITBCClient(api_key="your-api-key")
|
|
|
|
# Run inference
|
|
result = client.inference(
|
|
model="gpt-4",
|
|
prompt="Explain quantum computing",
|
|
max_tokens=500,
|
|
temperature=0.7
|
|
)
|
|
|
|
print(result.text)
|
|
|
|
# Verify the receipt
|
|
is_valid = client.verify_receipt(result.receipt_id)
|
|
print(f"Verified: {is_valid}")</div>
|
|
|
|
<h3>JavaScript SDK</h3>
|
|
<div class="code-block">
|
|
// Install the SDK
|
|
npm install @aitbc/client
|
|
|
|
// Initialize client
|
|
import { AITBCClient } from '@aitbc/client';
|
|
|
|
const client = new AITBCClient({
|
|
apiKey: 'your-api-key',
|
|
network: 'mainnet'
|
|
});
|
|
|
|
// Run inference
|
|
const result = await client.inference({
|
|
model: 'stable-diffusion',
|
|
prompt: 'A futuristic city',
|
|
steps: 50,
|
|
cfg_scale: 7.5
|
|
});
|
|
|
|
// Download the image
|
|
await client.downloadImage(result.imageId, './output.png');
|
|
|
|
// Verify computation
|
|
const verified = await client.verify(result.receiptId);
|
|
console.log('Computation verified:', verified);</div>
|
|
|
|
<h3>REST API</h3>
|
|
<div class="code-block">
|
|
# Submit a job
|
|
curl -X POST https://api.aitbc.io/v1/jobs \
|
|
-H "Authorization: Bearer YOUR_TOKEN" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{
|
|
"type": "inference",
|
|
"model": "gpt-4",
|
|
"input": {
|
|
"prompt": "Hello, AITBC!",
|
|
"max_tokens": 100
|
|
},
|
|
"privacy": {
|
|
"confidential": true,
|
|
"zk_proof": true
|
|
}
|
|
}'
|
|
|
|
# Check job status
|
|
curl -X GET https://api.aitbc.io/v1/jobs/JOB_ID \
|
|
-H "Authorization: Bearer YOUR_TOKEN"</div>
|
|
</section>
|
|
|
|
<!-- Pricing -->
|
|
<section class="content-section">
|
|
<h2>Pricing</h2>
|
|
<p>Flexible pricing options for every use case</p>
|
|
|
|
<div class="pricing-table">
|
|
<div class="pricing-card">
|
|
<h3>Pay-per-use</h3>
|
|
<div class="price">$0.01<span class="price-unit">/1K tokens</span></div>
|
|
<ul>
|
|
<li>No minimum commitment</li>
|
|
<li>Pay only for what you use</li>
|
|
<li>All models available</li>
|
|
<li>Basic support</li>
|
|
</ul>
|
|
<button class="btn btn-outline">Get Started</button>
|
|
</div>
|
|
|
|
<div class="pricing-card featured">
|
|
<h3>Professional</h3>
|
|
<div class="price">$99<span class="price-unit">/month</span></div>
|
|
<ul>
|
|
<li>$500 included credits</li>
|
|
<li>Priority processing</li>
|
|
<li>Advanced models</li>
|
|
<li>Email support</li>
|
|
<li>API access</li>
|
|
</ul>
|
|
<button class="btn">Start Free Trial</button>
|
|
</div>
|
|
|
|
<div class="pricing-card">
|
|
<h3>Enterprise</h3>
|
|
<div class="price">Custom</div>
|
|
<ul>
|
|
<li>Unlimited usage</li>
|
|
<li>Dedicated resources</li>
|
|
<li>Custom models</li>
|
|
<li>24/7 support</li>
|
|
<li>SLA guarantee</li>
|
|
</ul>
|
|
<button class="btn btn-outline">Contact Sales</button>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Privacy & Security -->
|
|
<section class="content-section">
|
|
<h2>Privacy & Security</h2>
|
|
|
|
<div class="alert alert-success">
|
|
<strong>Your data is never stored or exposed</strong> - All computations are performed in secure enclaves with zero-knowledge proof verification.
|
|
</div>
|
|
|
|
<h3>Privacy Features</h3>
|
|
<ul>
|
|
<li><strong>End-to-end encryption</strong> - Your data is encrypted before leaving your device</li>
|
|
<li><strong>Zero-knowledge proofs</strong> - Prove computation without revealing inputs</li>
|
|
<li><strong>Secure enclaves</strong> - Computations run in isolated, verified environments</li>
|
|
<li><strong>No data retention</strong> - Providers cannot access or store your data</li>
|
|
<li><strong>Audit trails</strong> - Full transparency on blockchain</li>
|
|
</ul>
|
|
|
|
<h3>Compliance</h3>
|
|
<ul>
|
|
<li>GDPR compliant</li>
|
|
<li>SOC 2 Type II certified</li>
|
|
<li>HIPAA eligible</li>
|
|
<li>ISO 27001 certified</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<!-- Best Practices -->
|
|
<section class="content-section">
|
|
<h2>Best Practices</h2>
|
|
|
|
<h3>Optimizing Performance</h3>
|
|
<ul>
|
|
<li>Use appropriate model sizes for your task</li>
|
|
<li>Batch requests when possible</li>
|
|
<li>Enable caching for repeated queries</li>
|
|
<li>Choose the right privacy level for your needs</li>
|
|
<li>Monitor your usage and costs</li>
|
|
</ul>
|
|
|
|
<h3>Security Tips</h3>
|
|
<ul>
|
|
<li>Keep your API keys secure</li>
|
|
<li>Use environment variables for credentials</li>
|
|
<li>Enable two-factor authentication</li>
|
|
<li>Regularly rotate your keys</li>
|
|
<li>Use VPN for additional privacy</li>
|
|
</ul>
|
|
|
|
<h3>Cost Optimization</h3>
|
|
<ul>
|
|
<li>Start with smaller models for testing</li>
|
|
<li>Use streaming for long responses</li>
|
|
<li>Set appropriate limits and timeouts</li>
|
|
<li>Monitor token usage</li>
|
|
<li>Consider subscription plans for regular use</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<!-- Support -->
|
|
<section class="content-section">
|
|
<h2>Support & Resources</h2>
|
|
|
|
<h3>Getting Help</h3>
|
|
<ul>
|
|
<li><strong>Documentation</strong>: <a href="full-documentation.html">Full API reference</a></li>
|
|
<li><strong>Community</strong>: <a href="https://discord.gg/aitbc">Join our Discord</a></li>
|
|
<li><strong>Email</strong>: <a href="mailto:aitbc@bubuit.net">aitbc@bubuit.net</a></li>
|
|
<li><strong>Status</strong>: <a href="https://status.aitbc.io">System status</a></li>
|
|
</ul>
|
|
|
|
<h3>Tutorials</h3>
|
|
<ul>
|
|
<li><a href="#">Getting Started with AI Inference</a></li>
|
|
<li><a href="#">Building a Chat Application</a></li>
|
|
<li><a href="#">Image Generation Guide</a></li>
|
|
<li><a href="#">Privacy-Preserving ML</a></li>
|
|
<li><a href="#">API Integration Best Practices</a></li>
|
|
</ul>
|
|
|
|
<h3>Examples</h3>
|
|
<ul>
|
|
<li><a href="#">GitHub Repository</a></li>
|
|
<li><a href="#">Code Examples</a></li>
|
|
<li><a href="#">Sample Applications</a></li>
|
|
<li><a href="#">SDK Documentation</a></li>
|
|
</ul>
|
|
</section>
|
|
|
|
<!-- FAQ -->
|
|
<section class="content-section">
|
|
<h2>Frequently Asked Questions</h2>
|
|
|
|
<div class="alert alert-info">
|
|
<strong>Question not answered?</strong> Contact us at <a href="mailto:aitbc@bubuit.net">aitbc@bubuit.net</a>
|
|
</div>
|
|
|
|
<h3>General</h3>
|
|
<ul>
|
|
<li><strong>How do I get started?</strong> - Sign up for an account, connect your wallet, and submit your first job through the web interface or API.</li>
|
|
<li><strong>What models are available?</strong> - We support GPT-3.5/4, Claude, Llama, Stable Diffusion, and many custom models.</li>
|
|
<li><strong>Can I use my own model?</strong> - Yes, you can upload and run private models with full confidentiality.</li>
|
|
</ul>
|
|
|
|
<h3>Privacy</h3>
|
|
<ul>
|
|
<li><strong>Is my data private?</strong> - Absolutely. Your data is encrypted and never exposed to providers.</li>
|
|
<li><strong>How do ZK proofs work?</strong> - They prove computation was done correctly without revealing inputs.</li>
|
|
<li><strong>Can you see my prompts?</strong> - No, prompts are encrypted and processed in secure enclaves.</li>
|
|
</ul>
|
|
|
|
<h3>Technical</h3>
|
|
<ul>
|
|
<li><strong>What's the response time?</strong> - Most jobs complete in 1-5 seconds depending on complexity.</li>
|
|
<li><strong>Do you support streaming?</strong> - Yes, streaming is available for real-time applications.</li>
|
|
<li><strong>Can I run batch jobs?</strong> - Yes, batch processing is supported for large workloads.</li>
|
|
</ul>
|
|
|
|
<h3>Billing</h3>
|
|
<ul>
|
|
<li><strong>How am I billed?</strong> - Pay-per-use or monthly subscription options available.</li>
|
|
<li><strong>Can I set spending limits?</strong> - Yes, you can set daily/monthly limits in your dashboard.</li>
|
|
<li><strong>Do you offer refunds?</strong> - Yes, we offer refunds for service issues within 30 days.</li>
|
|
</ul>
|
|
</section>
|
|
</div>
|
|
</main>
|
|
|
|
<!-- Footer -->
|
|
<footer>
|
|
<div class="container">
|
|
<p>© 2025 AITBC. All rights reserved.</p>
|
|
</div>
|
|
</footer>
|
|
|
|
<script>
|
|
// Check for saved theme preference or default to dark mode
|
|
const currentTheme = localStorage.getItem('theme') || 'dark';
|
|
if (currentTheme === 'light') {
|
|
document.body.classList.add('light');
|
|
const btn = document.getElementById('themeToggle');
|
|
if (btn) btn.textContent = '🌙';
|
|
}
|
|
|
|
// Theme toggle functionality
|
|
const themeBtn = document.getElementById('themeToggle');
|
|
if (themeBtn) {
|
|
themeBtn.addEventListener('click', function() {
|
|
document.body.classList.toggle('light');
|
|
const isLight = document.body.classList.contains('light');
|
|
localStorage.setItem('theme', isLight ? 'light' : 'dark');
|
|
this.textContent = isLight ? '🌙' : '🌞';
|
|
});
|
|
}
|
|
</script></body>
|
|
</html>
|