Skip to content

A distributed cluster for AI art and text generation

License

Notifications You must be signed in to change notification settings

AIPowerGrid/system-core

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,322 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Power Grid - Decentralized GenAI Network - The Grid

Community-powered AI generation backend. Users submit jobs; workers run models; the Grid coordinates. Image (Stable Diffusion, FLUX, etc.) and text (LLM) generation via REST API.

Stack

  • Python 3.9+, Flask, PostgreSQL, Redis
  • Model catalog from Base (Grid Diamond contract); optional on-chain model validation
  • Docker supported

Blockchain & NFTs

  • Model registry: Image/text models are read from the Grid Diamond contract on Base. Optional validation that workers only serve registered models.
  • Job anchoring: Job receipts (worker, model hash, input/output hashes) can be anchored on-chain (JobAnchor contract) for verification and rewards.
  • Recipes & NFTs: ComfyUI workflows stored on-chain (RecipeVault); workflows can be marked NFT-capable. Generation metadata (prompt, seed, params, model) is stored so images can be recreated from chain data + model — no need to store the image itself for proof or minting.

See docs/BLOCKCHAIN_INTEGRATION.md and core-integration-package/README.md.

Quick start

# .env: database, Redis, optional BLOCKCHAIN_ENABLED, MODEL_REGISTRY_ADDRESS, BASE_RPC_URL
pip install -r requirements.txt
# PostgreSQL + Redis running, then:
python server.py

API: http://localhost:5000/api (or see /api for docs).

Links

What Where
API usage / SDK README_integration.md
Image API README_StableHorde.md
Text API README_KoboldAIHorde.md
Docker README_docker.md
FAQ FAQ.md
Blockchain setup docs/BLOCKCHAIN_INTEGRATION.md

Roadmap

License

AGPL-3.0-or-later. See LICENSE and LICENSES/.

About

A distributed cluster for AI art and text generation

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.1%
  • JavaScript 5.5%
  • Solidity 5.3%
  • HTML 4.4%
  • TypeScript 0.7%
  • PLpgSQL 0.6%
  • Other 0.4%