Skip to content

Generates artwork with OpenAI GPT image generation, uploads it to IPFS and mints an NFT with an ERC-721 smart contract.

Notifications You must be signed in to change notification settings

akhilvuputuri/nft-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NFT Generator

NFT Generator that generates artwork with OpenAI GPT image generation using chosen visual descriptors, uploads it to IPFS and mints a new NFT with an ERC-721 smart contract.

Category of the collection is fully customisable by simply modifying NFT_COLLECTION_CATEGORY variable in .env file. We can build do generation for pokemon, cars, cats, dogs etc.

Features

  • Generate visual descriptors for NFTs for users to choose.
  • Generate image using chosen visual descriptors
  • Upload metadata and images to IPFS via Pinata.
  • Mint NFTs on the blockchain.
  • View minted NFTs.
  • Wallet balance integration with Metamask.

Technologies Used

  • Frontend: React, Ethers.js
  • Backend: Next.js API routes
  • Blockchain: Hardhat, Smart Contracts
  • Storage: Pinata (IPFS)
  • AI: OpenAI API

Usage

Deploy smart contract and run local Ethereum network

cd web3
npm install

# terminal 1
npx hardhat node

# terminal 2
npx hardhat compile
npx hardhat run scripts/sample-script.js --network localhost

Update the deployed contract address in client/src/app/page.tsx

Run web application

# terminal 3
cd client
npm install
npm run dev

About

Generates artwork with OpenAI GPT image generation, uploads it to IPFS and mints an NFT with an ERC-721 smart contract.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published