Inspiration

As an AI and blockchain enthusiast, I was inspired to create "Prompt2Image NFTs" by the potential for these technologies to transform the art world. I saw an opportunity to leverage the power of AI to generate unique art pieces, and to link them securely to NFTs on the blockchain. I was motivated to build a platform that would provide designers, artists, and prompt engineers with a seamless user experience, making it easy for them to monetize their work and connect with art collectors.

What it does

"Prompt2Image NFTs" is an NFT marketplace that offers unique art pieces generated by AI through prompts linked to encrypted NFTs.

"Prompt2Image NFTs" is an NFT marketplace built on the Fantom blockchain that utilizes AI technology to generate unique art pieces that are linked to encrypted NFTs. The platform offers a seamless user experience that allows users to buy and sell NFTs linked to AI-generated images through prompts.

When a user mints an NFT on "Prompt2Image NFTs", the prompt used to generate the image is encrypted via symmetrical encryption using a randomly generated secret. The secret is then encrypted again using the public key of the Metamask wallet of the minter's NFT, using asymmetrical encryption. This ensures that only the owner of the NFT can decrypt the prompt and generate new images linked to the NFT.

When a user purchases an NFT on "Prompt2Image NFTs", the encrypted secret is saved in the NFT smart contract. To ensure secure transfer of ownership, the app decrypts the secret using the private key of the seller's Metamask wallet and re-encrypts it using the public key of the buyer's wallet.

The platform offers a user-friendly dashboard that displays images generated by AI through prompts linked to NFTs. Users can purchase the right to generate a new image based on the prompt linked to the NFT. However, the user can only generate new images once they become the owner of the NFT, as they need to decrypt the prompt using their Metamask wallet's private key. In summary, "Prompt2Image NFTs" is an innovative NFT marketplace that combines AI technology with secure encryption methods to offer unique art pieces linked to NFTs.

How we built it

The application was developed using the latest stack technologies, including Next.js, React.js, and Tailwind. There are deployed smart contracts on the Fantom blockchain and used IPFS as a decentralized storage solution for NFT content. There is using Metamask wallet, which provides crypto functionalities for encrypting and decrypting data, ensuring encrypting the NFT info.

Challenges we ran into

I faced challenges while attempting to integrate an image generation service into our platform, using various AI models for text-to-image conversion from AI models through an API. Although the feature was successfully implemented, allowing users to select an AI model for text-to-image conversion and generate images from prompts without leaving the platform, the resources were frequently updated, causing occasional malfunctions. As a result, I had to remove this feature from the current version of the app. I have a solution in mind, but it requires funding.

Accomplishments that we're proud of

"Prompt2Image NFTs" is a NFT marketplace trades prompts for AI platforms such as Midjourney and Stable Diffusion to convert text to images. These generated images are then linked to encrypted NFTs. Users have the opportunity to purchase the right to create a new image based on the prompt that is linked to the NFT, and can earn money by selling these NFTs on the platform. The platform is secured with encryption techniques to guarantee that only the NFT owner can create new images using AI platforms such as Midjourney with the prompt from the NFT. Overall, "Prompt2Image NFTs" presents an innovative opportunity for artists, designers, and prompt engineers to monetize their work.

What we learned

Building "Prompt2Image NFTs" taught me how to leverage AI technology to create one-of-a-kind art pieces and securely associate them with NFTs on the Fantom blockchain. I also gained knowledge on encrypting NFT data with symmetrical and asymmetrical encryption techniques and using Metamask wallet to provide crypto functionalities. Lastly, I acquired skills in developing a user-friendly marketplace that enables the trading of NFTs connected to AI-generated images through prompts.

What's next for "Prompt2Image NFTs"

The project development roadmap for "Prompt2Image NFTs" includes several key steps to improve the platform. The first step is to refine the functionality for managing royalties and integrate it into the marketplace. Once this is done, the contracts can be deployed to the Fantom main net. In addition, the platform plans to use API services with AI models for the application and integrate new features for generating images via prompts without leaving the app. The current functionality can be expanded to work with other AI models such as text to text, text to video, and image to text, but it requires funding and a usable design for mobile platforms. The economic model of the marketplace needs to be worked out, which will involve using its own EPC-20 token and possibly attracting investors through a token sale. To facilitate this, the team will need to expand to include developers, marketers, and sellers. Finally, the platform plans to integrate with metaverses like Decentraland to expand its reach and provide additional opportunities for users. Overall, these steps will help "Prompt2Image NFTs" become a leading NFT marketplace that combines AI technology and blockchain to revolutionize the art world.

Built With

  • ai
  • fantom
  • ipfs
  • metamask
  • next.js
  • react.js
  • solidity
  • text-to-image
Share this project:

Updates