NFT Creation with Generative AI, Lagrange AI, and Chainlink Functions.

Inspiration

We were inspired by the challenges of digital arts ownership and the potential of blockchain technology. Our aim was to create a system that could securely and transparently handle digital arts rights, leveraging the power of Generative AI, Chainlink functions, and our Lagrange APIs.

What We Learned

Our journey taught us the intricacies of blockchain technology, particularly in the context of NFTs (Non-Fungible Tokens). We gained valuable insights into smart contract development, data encryption, and the integration of Generative AI with blockchain.

Building the Project

Our project involves several key components:

  • About Lagrange: Lagrange offers a comprehensive decentralized computing solution, enabling secure code storage and deployment. This platform equips developers with a complete set of Web3 tools to create web3 applications efficiently.

  • About Multichain Storage(MCS): Multichain Storage is an integrated storage gateway that utilizes smart contracts and Oracle technology, coupled with the Filecoin networks. It facilitates widespread adoption of decentralized storage solutions by connecting various blockchain networks. Specifically, by uploading files to MCS, users can simultaneously pin their files to IPFS and store them on the Filecoin network. MCS enhances global accessibility with its fast retrieval services through a dependable edge network. It offers SDKs in JS, Python and Golang SDK for developers.

  • Generative Art NFT Concept: Our focus is now on creating NFTs that represent exclusive rights or licenses for AI-generated art. These NFTs serve as a reliable record of ownership for digital artworks within the blockchain framework.

Problem Addressing

Our system is designed to authenticate the ownership of digital art, enable the secure transfer of rights, and maintain an accurate history of artwork ownership.

Solution Overview

Utilizing Lagrange APIs and Chainlink Functions, we are now creating NFTs specifically for generative arts. These NFTs allow artists to embed usage terms directly into the NFT metadata. We leverage diffusion models in Lagrange space for the efficient generation and MCS for storage of AI-created images.

Design Details

Once the generated image is uploaded to Lagrange and MCS, our program begins to request a NFT. The process involves the smart contract sending a request to the DON. Subsequently, the DON activates the Lagrange API. This action results in the generation of NFT metadata, which is then uploaded to IPFS. Following this, the CID is relayed back to the smart contract, which is then utilized to establish a new NFT contract. Our backend interacts with a erc721 contract (the nft contract) to mint the images. This ensures a seamless and artist-friendly experience for creating and managing NFTs. We use the chainlink functions to upload the NFT metadata onto MCS and allow the functions contract to mint it as an NFT in our NFT contract. The development is conducted on the Sepolia and Mumbai testnets, focusing on art NFTs.

  • Developer Friendly
    We understand the importance of creative freedom and customization in the realm of generative art. That's why we've designed our system to empower developers to craft and modify their own text prompts. For more information on how to design your own generative art NFT using your prompts, see here

Challenges Faced

Some of the major challenges included:

  • Integration Complexity: Integrating multiple technologies like Generative AI, blockchain, and smart contracts required extensive research and testing.

  • Data Security: Ensuring the utmost security for data and user keys throughout the NFT lifecycle was paramount.

  • User Interface: Developing a user-friendly interface that simplifies complex blockchain operations for end-users.

Use Cases and Applications

Users can generate their own NFTs by inputting API keys and selecting a diffusion model from Lagrange. They can customize their dataset name, with our system handling the rest.

What we are proud of

Our project contributes to the blending of blockchain technologies, Generative AI in the field of digital art. It represents a significant advancement in enabling artists to securely and efficiently manage the rights of their digital creations. By facilitating the minting of NFTs for AI-generated art, we believe we are laying the groundwork for a more dynamic, secure, and artistically diverse digital future.

Closing Thoughts and Future Directions

As we conclude the current phase of our project, we are excited about the potential impact of our NFT platform on the digital art world. We're dedicated to enhancing the user experience, ensuring robust data security, and fostering a collaborative community for artists and developers. As the landscape of technology and art continues to evolve, our goal is to stay at the forefront of decentralized digital art management; specifically, we aim to enable the integration with CCIP for crosschain data NFT licensing and mainnet deployment

Built With

Share this project:

Updates