AI Forge Documentation

Decentralized Storage

💾 High-Performance Decentralized Storage

Store AI models, training data, and agent state on 0G Network's distributed storage system. Get enterprise-grade performance with decentralized security and global availability.

< 100ms
Retrieval Time
10GB/s
Throughput
50+
Global Nodes
99.9%
Availability

Key Features

High Performance

Sub-second data retrieval with global CDN-like performance

< 100ms latency
10GB/s throughput
99.9% availability
Auto-scaling

Decentralized Security

Cryptographically secured with redundant storage across nodes

256-bit encryption
Multi-node replication
Erasure coding
Byzantine fault tolerance

Global Distribution

Distributed network of storage nodes across multiple regions

50+ global nodes
Multi-region redundancy
Edge caching
Load balancing

Developer Friendly

Simple APIs and SDKs for seamless integration

REST API
GraphQL
WebSocket
Multiple SDKs

Use Cases

AI Model Storage

Store large language models, neural networks, and training data

  • Version control for models
  • Distributed training data
  • Model sharing marketplace

Agent State Management

Persistent storage for agent memory, decisions, and learning

  • Stateful agent execution
  • Learning persistence
  • Cross-session memory

Media & Content

Store images, videos, and rich media for AI-generated content

  • NFT metadata storage
  • Content delivery network
  • Media processing pipeline

Analytics Data

Historical market data, user interactions, and performance metrics

  • Time-series data
  • Real-time analytics
  • Data lake functionality

Code Examples

Uploading Data

import { ZeroGStorage } from '@aiforge/sdk'

const storage = new ZeroGStorage({
  apiKey: 'your-api-key',
  network: '0g-mainnet'
})

// Upload AI model
const model = await storage.upload({
  file: './my-model.bin',
  metadata: {
    name: 'Trading Bot v2.1',
    type: 'neural-network',
    version: '2.1.0',
    description: 'Advanced DeFi trading model'
  }
})

console.log('Model uploaded:', model.hash)

Retrieving Data

// Retrieve stored data
const modelData = await storage.get(model.hash)

// Stream large files
const stream = await storage.stream(model.hash)
stream.on('data', (chunk) => {
  // Process data chunk
  console.log('Received chunk:', chunk.length)
})

Version Control

// Version control for AI models
const newVersion = await storage.createVersion({
  parentHash: model.hash,
  file: './my-model-v2.2.bin',
  metadata: {
    version: '2.2.0',
    changes: 'Improved accuracy by 15%'
  }
})

// List all versions
const versions = await storage.listVersions(model.hash)
console.log('Available versions:', versions)

Storage Pricing

Storage

$0.02
per GB/month

90% cheaper than centralized cloud storage

Bandwidth

$0.01
per GB transfer

No egress fees for the first 100GB

Operations

$0.0001
per 1K requests

Free tier includes 1M requests/month

Next Steps