craiyon logo

A cyberpunk raccoon with glowing neon glasses, wearing a leather jacket, and eating a slice of pizza. The background is a blurry neon city street.

A cyberpunk raccoon with glowing neon glasses, wearing a leather jacket, and eating a slice of pizza. The background is a blurry neon city street.

import json import random # Traits (your existing lists) headgear = ["VR goggles", "neon sunglasses", "samurai helmet", "crown", "beanie", "snapback cap", "headphones"] eyes = ["glowing cyber eyes", "monocle", "neon shades", "holographic visor", "3D glasses"] mouth = ["smirk", "pizza slice", "bubblegum", "cigar", "lollipop", "gold tooth grin", "energy drink straw"] clothing = ["leather jacket", "neon hoodie", "futuristic armor", "Hawaiian shirt", "tuxedo", "graffiti vest"] accessories = ["gold chain", "katana", "spray paint can", "boombox", "holographic watch", "gaming controller"] backgrounds = ["neon Tokyo street", "glitchy cyberspace grid", "outer space galaxy", "graffiti alley", "vaporwave beach", "underground club"] num_nfts = 10 # number of NFTs in collection collection_name = "Cyberpunk Raccoons" metadata_list = [] for i in range(1, num_nfts + 1): traits = { "Headgear": random.choice(headgear), "Eyes": random.choice(eyes), "Mouth": random.choice(mouth), "Clothing": random.choice(clothing), "Accessories": random.choice(accessories), "Background": random.choice(backgrounds) } metadata = { "name": f"{collection_name} #{i}", "description": "A mischievous cyberpunk raccoon, stylish and perfect for a collectible NFT PFP.", "image": f"{i}.png", # replace with your image filenames after generating "attributes": [{"trait_type": k, "value": v} for k, v in traits.items()] } metadata_list.append(metadata) # Save each NFT metadata as a separate JSON file with See more