Tech: From Request to Result: How Users & Nodes Interact in Cortensor

Cortensor Network
4 min readFeb 19, 2025

--

Mining is just one part of Cortensor β€” but what happens when users send AI requests?

Let’s break down how sessions, task execution, and real-time AI inference work, all while supporting both Web2 & Web3 environments.

πŸ”„ Node Reputation & Ephemeral Nodes

Once nodes complete Cognitive tasks, they build Node Reputation over time.

πŸ’‘ High-reputation nodes become Ephemeral Nodes, meaning they’re eligible to serve real-time user requests dynamically whenever a task is submitted.

πŸ“‘ Session Creation: The AI Subscription Model

Before a user submits AI tasks, they create a session β€” similar to subscribing to an AI service. Sessions define:

βœ… Task configuration (accuracy, validation, cost)
βœ… Deposit of $COR Tokens
βœ… Task execution lifecycle

βš™οΈ Session Configuration

Users can customize their session:

βœ” Higher validation levels = More miners & accuracy (but higher cost)
βœ” Lower validation levels = Faster & cheaper inference

This functions like Service Level Agreements (SLAs) in cloud computing β€” providing flexibility for different AI needs.

πŸ’° $COR Token Deposits

Users deposit $COR tokens in advance. These tokens are deducted as tasks are processed β€” just like a pay-as-you-go model for AI inference.

βœ” Ensures miners get paid fairly
βœ” Keeps the network economically sustainable

πŸ”— Router Node Assignment

After creating a session, a Router Node is assigned to handle all interactions between the user and the network.

πŸ“Œ The Router Node:
βœ… Routes requests to miners
βœ… Ensures tasks are assigned efficiently
βœ… Bridges Web2 & Web3 AI task execution

πŸ“ Submitting an AI Task

Once a session is active, users submit an AI request. Example: β€œSummarize this article.”

Here’s how Cortensor processes it:
βœ” Task metadata is stored on IPFS
βœ” CID (content ID) is recorded on-chain
βœ” Miners fetch the job and start processing

βš™οΈ Task Processing by Miner Nodes

The Router Node queues the request and assigns Ephemeral Nodes to process it.

βœ” Miners run AI inference based on user configuration
βœ” Results are validated via Proof of Inference (PoI)
βœ” Only the best-quality AI responses are accepted

πŸ”’ Precommit & Commit Stages

To prevent manipulation, miners submit results in two phases:

πŸ“Œ Precommit: Submit a cryptographic hash of their result
πŸ“Œ Commit: Reveal the final output & validate against Precommit

This ensures transparency & result integrity.

🎯 Finalizing AI Task Results

Once the task is completed:

βœ” Results are stored on IPFS
βœ” The Router Node retrieves the CID and forwards it to the user
βœ” The session updates dynamically for future requests

🌐 Web2 Users: Real-Time AI Results

For Web2 users, Cortensor provides:

βœ” REST API & WebSocket support for real-time responses
βœ” AI results delivered instantly via standard Web2 services

This ensures fast, seamless AI execution for traditional apps.

πŸ”— Web3 Users: Decentralized AI Access

For Web3 users, Cortensor provides:

βœ” Smart contract-based result retrieval
βœ” Fully trustless & decentralized execution
βœ” No reliance on centralized APIs

Bridging AI inference into on-chain ecosystems.

πŸ”’ Security & Data Privacy

Cortensor ensures AI task security with:

βœ” Encrypted data flow between nodes
βœ” Session-based ephemeral states
βœ” On-chain transparency via smart contracts

AI execution remains secure, private, and trustless.

⚑ Router Node Scalability

The Router Node is designed for scalability, handling:

βœ” Web2 & Web3 API requests
βœ” AI task scheduling & routing
βœ” Load balancing between miner nodes

This ensures efficient AI inference across different use cases.

🀝 Optimized AI Task Execution

With Node Reputation, Ephemeral Nodes, and Router Nodes, Cortensor ensures:

βœ” AI tasks are processed quickly & efficiently
βœ” Users get low-latency AI inference
βœ” The network remains decentralized & scalable

πŸ“– Learn More: AI Task Execution Flow

Dive deeper into User Interaction & Node Communication in Cortensor by checking out our full technical documentation:

πŸ”— docs.cortensor.network/technical-architecture/user-serving-and-node-communication

πŸ” Like, Share & Join the discussion! πŸš€

#AI #DePIN #Cortensor #UserInteraction

--

--

Cortensor Network
Cortensor Network

Written by Cortensor Network

Pioneering Decentralized AI Inference, Democratizing Universal Access. #AI #DePIN πŸ”— https://www.cortensor.network πŸ”— https://linktr.ee/cortensor

No responses yet