ERC-7007 is an Ethereum Request for Comments (ERC) standard that establishes a common framework for representing AI prompts as non-fungible tokens (NFTs). Its primary function is to create a verifiable, on-chain record of the textual or structured input used to generate AI content, such as images, text, or audio. By standardizing the prompt's data structure—including the text, parameters, and the AI model identifier—it enables provenance tracking and allows the prompt itself to become a unique, ownable, and tradable digital asset. This creates a clear link between a generative AI output and its originating instruction.
ERC-7007
What is ERC-7007?
ERC-7007 is a proposed Ethereum standard that defines a smart contract interface for storing, managing, and verifying AI-generated content prompts on-chain.
The standard defines a core smart contract interface with key functions, including mintPrompt to create a new prompt NFT and getPrompt to retrieve its data. A critical technical component is the prompt commitment, a cryptographic hash of the prompt data stored immutably on-chain. This allows for the verification that a given AI output was generated from a specific, registered prompt without needing to store the full, potentially lengthy, text data on the expensive Ethereum blockchain. This design balances transparency with gas efficiency, making on-chain AI provenance practically feasible.
ERC-7007 enables several novel use cases in the intersection of AI and Web3. It allows creators to tokenize their creative prompts, establishing ownership and enabling a marketplace for effective AI instructions. For verifiable AI art, an artwork NFT can reference a prompt NFT to provide an immutable certificate of its generative origin. The standard also supports on-chain AI agents and autonomous systems that require a standardized way to issue and prove execution of commands. Furthermore, it facilitates new models for royalty distribution, where prompt creators can earn fees when their prompts are used to generate subsequent commercial works.
The proposal interacts with and complements other key Ethereum standards. It is designed to work seamlessly with ERC-721 (the base NFT standard), meaning a prompt NFT is fundamentally a non-fungible token. Its data structure can be referenced by ERC-6551 (Token Bound Accounts), allowing a prompt NFT to control assets or interact with contracts. For representing the final AI output, it pairs naturally with media-centric standards like ERC-4906 (Metadata Update Notification) or ERC-1155 (Multi-Token Standard). This interoperability is crucial for building complex, composable applications in the AI x Crypto stack.
As a proposal, ERC-7007 is in the early stages of the Ethereum standardization process, categorized as a Draft EIP (Ethereum Improvement Proposal). Its development highlights the blockchain community's effort to address the growing need for authenticity and attribution in the age of generative AI. By providing a neutral, decentralized protocol for prompt provenance, it aims to solve trust issues around AI-generated content, paving the way for more transparent and equitable economic models for AI creators and users alike.
Origin and Naming
The formal designation and historical context of the standard for AI-powered, verifiable on-chain inference.
ERC-7007 is an Ethereum Request for Comments (ERC) standard, formally designated as EIP-7007, which proposes a standardized interface for AI-powered zero-knowledge machine learning (zkML) inference results to be verified and consumed on-chain. The number '7007' follows the sequential numbering convention of the Ethereum Improvement Proposal (EIP) repository, where it was submitted as a draft standard. Its primary goal is to create a common language for smart contracts to trustlessly request and verify AI model outputs, enabling a new class of verifiable AI applications.
The naming convention itself is significant. The 'ERC' prefix signifies its intended status as an application-level standard for the Ethereum ecosystem, akin to token standards like ERC-20 or ERC-721. The '7007' sequence places it among modern, specialized standards for emerging technologies. The proposal was authored by researchers from Modulus Labs, a leader in zkML infrastructure, and was first introduced to the Ethereum community in 2023. It builds upon foundational cryptographic primitives like zk-SNARKs and prior work in verifiable computation.
The origin of ERC-7007 is directly tied to the growing intersection of blockchain and artificial intelligence. Prior to its proposal, executing and trusting AI model inferences on-chain was impractical due to high computational cost and a lack of verifiability. The standard emerged as a solution to this trust problem, providing a framework where the integrity of an AI's decision—such as content moderation, prediction, or procedural generation—can be cryptographically proven, making the AI's output a verifiable on-chain fact.
Conceptually, ERC-7007 can be seen as an extension of the oracle problem solved by projects like Chainlink. However, instead of providing verifiable data feeds, it provides verifiable computation feeds from complex AI models. The '7007' identifier now serves as a key search term for developers exploring on-chain AI, zkML, and decentralized intelligence, marking a pivotal effort to standardize how blockchains interact with and leverage advanced machine learning in a trust-minimized way.
Key Features
ERC-7007 is an Ethereum standard for creating AI-powered, executable NFTs (xNFTs). It defines a modular architecture where an NFT's token logic, AI model, and execution environment are distinct, verifiable components.
Executable NFT (xNFT) Core
An ERC-7007 token is an executable NFT (xNFT). Unlike a static NFT, it contains or references a verifiable AI agent that can perform on-chain or off-chain tasks. The standard separates the token's identity (ERC-721) from its execution logic, enabling dynamic, AI-driven behavior.
Modular Three-Component Architecture
The standard enforces a clear separation of concerns through three core components:
- Token Contract: The base ERC-721 NFT that holds ownership and provenance.
- Agent Contract: Contains or points to the verifiable AI model (e.g., via a ZKML proof or on-chain hash).
- Execution Environment: A defined runtime (e.g., an EVM, a VM, or an off-chain verifier) where the AI agent's logic is run.
On-Chain Verifiability
A primary goal is trustless verification of AI execution. This is achieved by storing a cryptographic commitment (like a hash or a ZKML proof) of the AI model on-chain. Users can verify that an agent's output was generated by the specific, unaltered model referenced by the xNFT, combating model poisoning and ensuring integrity.
Permissionless Agent Registration
The standard proposes a registry contract where anyone can permissionlessly register a new AI agent. Registration requires staking the agent's model commitment and metadata, creating a decentralized directory of verifiable AI models that can be composed into xNFTs.
Composable AI Agents
ERC-7007 is designed for composability. xNFTs can invoke other registered AI agents, enabling complex, multi-agent workflows. An AI art generator xNFT could call a separate pricing agent xNFT to dynamically set mint costs based on market data, creating a new class of autonomous, interactive digital assets.
Diverse Use Case Foundation
The architecture supports a wide range of applications:
- Dynamic Gaming NPCs: NFTs with AI-driven behavior and dialogue.
- Autonomous DeFi Agents: NFTs that manage portfolios or execute trades based on AI analysis.
- Interactive Art & Music: Generative art that evolves based on viewer interaction or external data.
- Verifiable AI Services: Provably fair oracles, content moderators, and automated customer service agents.
How ERC-7007 Works
ERC-7007 is an Ethereum standard that defines a smart contract interface for AI agents, enabling them to own on-chain assets, execute transactions, and interact autonomously within the Ethereum ecosystem.
The core of ERC-7007 is a set of standardized functions that define an AI Agent as a smart contract wallet with agency. The primary interface includes execute for performing arbitrary calls, predict for returning a deterministic output based on inputs, and validate for verifying the integrity of an agent's prediction. This structure allows an AI model's inference logic to be formally represented and invoked on-chain, creating a verifiable link between an AI's decision-making process and its on-chain actions. The agent contract becomes the sovereign owner of its private keys and any assets it accumulates.
Operationally, an ERC-7007 agent functions by receiving a prompt or input, processing it through its defined AI model (which may be on-chain, off-chain, or a hybrid), and then deciding on an action. For example, an agent could analyze market data via its predict function, determine a profitable trade, and then autonomously execute a swap on a decentralized exchange. The standard ensures deterministic verifiability, meaning that given the same on-chain state and input, any observer can independently verify that the agent's output and subsequent action are correct and authorized.
A key innovation is the separation of the intelligence layer from the execution layer. The AI model providing the 'brain' can be hosted off-chain for efficiency (e.g., on a decentralized AI network) while the agent contract retains secure custody and execution rights. This is facilitated by cryptographic commitments like zk-proofs or optimistic verification schemes, where the off-chain inference result is submitted to the contract with a proof of correct computation. This design balances the computational heaviness of AI with the security and composability of Ethereum smart contracts.
The standard also defines critical ERC-7007 extension interfaces for enhanced functionality. ERC-7008 standardizes Agent Registries for discoverability and reputation, while ERC-7009 introduces Agent Bonds, a staking mechanism where agents lock collateral to guarantee performance and align incentives. These extensions create an ecosystem where agents can be trusted, searched, and held economically accountable for their actions, moving beyond a standalone contract to a network of interoperable, responsible AI entities.
In practice, deploying an ERC-7007 agent involves writing a smart contract that implements the core interface, connecting it to an AI inference source (like an IPFS hash of a model or an oracle feed), and funding it with gas. Once active, the agent can participate in DeFi, manage NFT portfolios, or operate within autonomous organizations (DAOs) as a programmable member. Its actions are fully transparent and auditable on the blockchain, providing a foundational primitive for the emerging field of Autonomous AI Economics.
Core Technical Components
ERC-7007 is an Ethereum Improvement Proposal that defines a standard interface for AI agents, enabling them to own and manage on-chain assets and execute transactions autonomously.
The AI Agent Interface
At its core, ERC-7007 defines a smart contract interface (IAgent) that an AI agent must implement. This interface includes a single, critical function: processRequest. This function is the entry point where the agent receives an on-chain request (like a transaction or query), processes it using its AI logic, and returns an executable action (e.g., to, value, data). This standardizes how AI interacts with the blockchain, separating the AI's decision-making from the execution mechanics.
On-Chain AI Requests (ERC-7008)
For an AI agent to act, it must receive a request. ERC-7007 is intrinsically linked to ERC-7008, the standard for AI Agent Requests. An ERC-7008 request is a structured data packet stored on-chain that contains the prompt, context, and constraints for the AI. The ERC-7007 agent's processRequest function consumes these standardized requests. This decoupling allows for request markets, verifiable AI inputs, and composability between different agents and request issuers.
Agent Registry & Discovery
The proposal includes an optional Agent Registry contract. This registry acts as a public directory where AI agents can be registered, discovered, and queried. Key functions include:
registerAgent: Publishes an agent's address and metadata.getAgent: Retrieves agent details.isRegistered: Verifies an agent's status. This enables ecosystem tools, wallets, and users to find and interact with trusted, auditable AI agents without relying on off-chain lists.
Execution Flow & Security
The standard defines a clear execution flow to ensure security and determinism:
- A Request (ERC-7008) is submitted to the agent's address.
- The agent's
processRequestfunction is invoked, running its AI model (on or off-chain). - The function returns a structured Action (target address, value, calldata).
- This action is executed by the caller (e.g., a relayer). Critical security considerations include gas limits for execution, input validation to prevent prompt injection, and clear audit trails for the agent's decision logic.
Use Cases & Applications
ERC-7007 enables a new class of autonomous on-chain entities:
- DeFi Agents: Autonomous portfolio managers that rebalance based on market conditions.
- Gaming NPCs: Non-player characters that own assets, trade, and interact with players.
- Governance Delegates: AI delegates that analyze proposals and vote based on encoded principles.
- Automated Customer Service: Smart contract interfaces that can resolve disputes or process claims using natural language.
Relationship to ERC-4337 (Account Abstraction)
ERC-7007 agents are designed to be compatible with ERC-4337 Account Abstraction. An AI Agent can be implemented as a smart contract wallet (UserOperation sender). This allows the agent to:
- Pay for its own transaction gas via a paymaster.
- Have its own nonce and sign transactions programmatically.
- Be bundled with other operations for efficiency. This integration is crucial for creating truly autonomous, self-funding AI entities on Ethereum.
Visualizing the Workflow
A practical walkthrough of the AI Agent execution lifecycle defined by the ERC-7007 standard, illustrating how on-chain prompts trigger off-chain AI computation.
The ERC-7007 workflow begins when a user or a smart contract submits an AI Agent NFT to an execution contract via a execute call, providing a text prompt and any required promptId. This transaction creates an on-chain event, PromptRequested, which acts as a verifiable request for AI inference. The request is then picked up by off-chain executors—specialized nodes or services that monitor the blockchain for these events. This decouples the costly computation from the blockchain's consensus mechanism, allowing for complex AI model execution without burdening the network.
Upon detecting a PromptRequested event, the executor processes the prompt using the AI model specified by the Agent NFT's metadata. The standard does not mandate a specific model or provider, offering flexibility. The executor generates a result (e.g., generated text, a classification, or structured data) and a corresponding zk-proof or cryptographic attestation. This proof cryptographically verifies that the result is the correct output of the specified model for the given prompt, ensuring tamper-proof execution integrity without revealing the model's internal weights or the full computation.
The final step involves the executor submitting the result and its proof back to the blockchain in a settle transaction. The execution contract verifies the proof on-chain. If valid, it emits a PromptFulfilled event and often stores the result in a publicly accessible location, like resultURI. The workflow's end-state is a cryptographically verified AI output permanently recorded on-chain, enabling trustless use in downstream applications like dynamic NFTs, autonomous game characters, or decentralized decision-making agents, all anchored by the ERC-7007 standard's request-settle pattern.
Potential Use Cases in DeSci
ERC-7007, the AI Agent NFT Standard, enables the tokenization of AI models as verifiable, on-chain assets. This creates new paradigms for ownership, collaboration, and monetization in decentralized science (DeSci).
Reproducible & Verifiable Research
ERC-7007 NFTs can encapsulate the exact state of a trained machine learning model, its weights, and inference logic. This creates an immutable, timestamped record of a research output, enabling:
- Provenance Tracking: Verifiable lineage of model development.
- Result Replication: Any researcher can run the exact model used in a published paper.
- Audit Trails: Transparent documentation of training data and methodology for peer review.
Decentralized IP & Model Licensing
The standard transforms AI models into ownable, tradable assets with programmable rights. This facilitates:
- Fractional Ownership: Multiple contributors can own shares of a high-value model NFT.
- Automated Royalties: Smart contracts can enforce license fees for commercial use, with payments streaming to token holders.
- Access Control: NFT ownership can grant exclusive rights to use, fine-tune, or query a proprietary model.
Incentivized Training & Data Markets
ERC-7007 enables novel incentive structures for collaborative AI development.
- Bountied Model Creation: Researchers can be rewarded with NFT shares for contributing compute or data to train a model.
- Data DAOs: Communities can pool data, train a model, and distribute ownership via the resulting NFT.
- Continuous Improvement: A model NFT's value can be linked to its performance, incentivizing holders to contribute to its fine-tuning.
On-Chain Inference & Oracles
AI Agent NFTs can be designed to perform on-chain inference, acting as decentralized oracles.
- DeSci Analytics: A model trained on biomedical literature could be queried on-chain to analyze new research proposals.
- Automated Peer Review: Basic plausibility checks or literature comparisons could be automated via model calls.
- Transparent Decision Support: Grant-funding DAOs could use verifiable model outputs to inform allocation decisions.
Composable Research Pipelines
ERC-7007 NFTs become composable units in larger DeSci workflows.
- Pipeline NFTs: A research process (data cleaning → model A → model B) can itself be tokenized, with each step as a sub-NFT.
- Modular Science: Researchers can "plug and play" different pre-verified model NFTs into their experiments.
- Attribution Chains: Royalties and credit automatically flow upstream through a chain of dependent model NFTs.
Security and Trust Considerations
ERC-7007, the ZK-Verifiable Off-Chain AI Agent Execution standard, introduces a novel trust model for AI on Ethereum. These cards detail its core security mechanisms and the trust assumptions they address.
Zero-Knowledge Proofs for Verifiability
The primary security guarantee of ERC-7007 is the use of zero-knowledge proofs (ZKPs) to verify off-chain AI execution. An AI Agent submits a ZK-SNARK or ZK-STARK proof with its result, cryptographically attesting that:
- The inference was performed correctly by the specified model.
- The input data was used as committed.
- The output matches the claimed result. This shifts trust from the agent operator to the mathematical soundness of the proof system and the integrity of the on-chain verifier contract.
On-Chain vs. Off-Chain Trust Model
ERC-7007 redefines the trust boundary for decentralized AI:
- Off-Chain (Execution): Trust is required in the ZK prover to generate a valid proof and the availability of the AI model (e.g., via IPFS, Filecoin). The computational work is opaque but its correctness is verifiable.
- On-Chain (Verification): Trust is minimized to the verifier smart contract, which is a small, deterministic program. The blockchain consensus ensures the verification result is immutable and final. This model is more efficient than on-chain execution while providing stronger guarantees than pure oracle-based systems.
Input & Output Commitment Schemes
To prevent tampering, ERC-7007 mandates cryptographic commitments for AI inputs and outputs.
- Input Commitment: The hash of the prompt and any data is submitted on-chain before execution. The ZKP proves the off-chain computation used this exact input.
- Output Commitment: The result is included in the proof. This creates a cryptographic binding between the specific request and its verified outcome, preventing result substitution or manipulation in transit.
Model Integrity and Provenance
Security depends on knowing which AI model was executed. ERC-7007 addresses this through:
- Model Identifier: A unique content-addressed hash (like a CID) that pinpoints the exact model weights and architecture used.
- Provenance Proofs: The ZKP can be extended to attest that the execution trace corresponds to this specific model identifier.
- Registry Contracts: Optional standard registries can map identifiers to audited model metadata, helping users trust the model's origin and intended behavior.
Economic Security and Slashing
The standard supports cryptoeconomic security mechanisms to disincentivize malicious behavior:
- Staking: AI Agent operators may be required to stake tokens (e.g., ETH) as a bond.
- Slashing Conditions: The verifier contract can be designed to slash this stake if an agent submits an invalid proof or is found to have misbehaved via a fraud proof challenge period.
- Challenge Mechanisms: A secondary verification layer where other participants can dispute a proof's validity, triggering a more thorough check.
Privacy Considerations and Limitations
While ZKPs provide verifiability, they do not automatically guarantee full privacy:
- Input/Output Privacy: The standard supports private inputs/outputs by only committing to their hashes. The actual data remains with the user and prover, but the ZKP must be specifically designed for this (e.g., using zkML frameworks).
- Model Privacy: The model itself is typically public (via its identifier) to allow verification. Keeping a model private while proving execution is a complex, active research area.
- Metadata Leakage: Patterns of interaction with the smart contract may reveal usage metadata.
ERC-7007 vs. Traditional Peer Review
A structural and functional comparison of decentralized AI content attestation versus conventional academic peer review.
| Feature | ERC-7007 (AI Attestation) | Traditional Peer Review |
|---|---|---|
Governance Model | Decentralized, on-chain | Centralized, institutional |
Primary Actors | AI Verifiers, Submitters, Token Holders | Editors, Peer Reviewers, Authors |
Incentive Mechanism | Native protocol token (e.g., $AIT) | Reputation, career advancement |
Review Speed | < 1 hour (automated) | 3-12 months (manual) |
Transparency | Public, immutable attestation record | Private, opaque review process |
Cost per Submission | Variable gas fees + protocol fees | Often $0 (subsidized), sometimes APC* |
Scalability | Theoretically unlimited via parallel verification | Limited by human reviewer capacity |
Focus of Verification | Provenance, fingerprinting, computational integrity | Novelty, significance, methodological soundness |
Frequently Asked Questions (FAQ)
Common questions and technical details about ERC-7007, the standard for AI-powered, executable NFTs.
ERC-7007 is an Ethereum standard that defines AI-powered, executable NFTs, enabling tokens to contain and run on-chain AI models. It works by standardizing a smart contract interface where the token's metadata includes a prompt (a natural language instruction) and a verifier contract address. The core function, executeAI, takes the prompt and input data, sends it to the designated verifier, which runs the AI model (often off-chain with on-chain verification) and returns a result, creating a deterministic, verifiable output tied to the NFT's state.
Further Reading
Explore the technical foundations, related standards, and practical applications of the ERC-7007 standard for AI-powered NFTs.
AI Model Integration
ERC-7007 NFTs are powered by external AI models. Key integration patterns include:
- On-chain Inference: Using verifiable compute or ZK-proofs for trustless execution (e.g., Giza, Ritual).
- Off-chain Oracle: A trusted service (like Chainlink Functions) calls an API and posts the result on-chain.
- Model Provenance: The
modelURIpoints to a decentralized storage solution (like IPFS/Arweave) containing the model's hash, license, and framework.
Use Cases & Applications
This standard enables dynamic, generative digital assets. Primary applications include:
- Generative Art & Music: NFTs that create new outputs based on owner input or on-chain data.
- Interactive Gaming: NPCs or items with AI-driven behavior and dialogue.
- Dynamic Identity: PFPs or avatars that evolve through conversation.
- Autonomous Agents: NFTs that can perform on-chain actions based on AI decision-making.
Technical Implementation Guide
A practical guide for developers building with ERC-7007 would cover:
- Contract Structure: Inheriting from the base interface and implementing the
inferencehook. - Inference Logic: Designing the function to handle prompts, manage gas costs, and return results.
- Security Considerations: Mitigating risks like prompt injection, model poisoning, and ensuring deterministic outputs for verifiability.
- Frontend Integration: Connecting a dApp to listen for
Inferenceevents and display generated content.
Market & Ecosystem Context
ERC-7007 exists within the broader movement of Autonomous Worlds and on-chain AI. It provides a standardized primitive for creating agentic NFTs that can interact with other smart contracts and users. Its adoption depends on the maturity of verifiable compute networks and the emergence of dApps that leverage generative, interactive assets.
Get In Touch
today.
Our experts will offer a free quote and a 30min call to discuss your project.