-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate, Deploy and Mint an NFT with AI - Fixes #308 #307
base: master
Are you sure you want to change the base?
Generate, Deploy and Mint an NFT with AI - Fixes #308 #307
Conversation
🟡 Heimdall Review Status
|
This feature demonstrates usage of the dalle_nft.py action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really cool contribution @sethupavan12! I left a couple initial comments. Just a heads up – we're working on releasing v0.1.0 of the Python packages which includes changes to how actions are structured. I'll let you know once v0.1.0 lands so you can rebase this PR and adopt the new action format. Here's an example of migrating an onchain interaction, and here's an example of migrating a web interaction
response = client.images.generate( | ||
model="dall-e-3", | ||
prompt=prompt, | ||
size="1024x1024", | ||
quality="standard", | ||
n=1, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think this can be swapped out for an HTTP call? Just thinking of removing the added dependency on OpenAI here
The NFT will be viewable on OpenSea's testnet. | ||
""" | ||
|
||
def create_dalle_nft_tool(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you consider adding this as a first-class action to agentkit-core?
What changed? Why?
Added a new DALL-E NFT feature that lets users create NFTs from AI-generated images. Users can input a text prompt, and the system will:
Features
closes #308
Key improvements:
Uses IPFS metadata to ensure NFTs display correctly on OpenSea
Added proper error messages and progress updates
Added tests for the new functionality
Qualified Impact
This is a new feature that adds DALL-E NFT minting capability to CDP Agent Kit Core. Since it's a standalone feature, it shouldn't affect existing functionality.
The feature requires:
OpenAI API key for DALL-E -
OPENAI_API_KEY
Pinata JWT for IPFS uploads -
PINATA_JWT
Base Sepolia network for NFT minting
A test run that generated an NFT based on the prompt and actually minted the NFT, which can be found at
Image of NFT on Opensea testnet
![image](https://private-user-images.githubusercontent.com/60856766/411270449-f535c371-2c93-4172-85ab-e955d43f9dd4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NTEzNDEsIm5iZiI6MTczOTQ1MTA0MSwicGF0aCI6Ii82MDg1Njc2Ni80MTEyNzA0NDktZjUzNWMzNzEtMmM5My00MTcyLTg1YWItZTk1NWQ0M2Y5ZGQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDEyNTA0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZmZDA3Y2UyZjdhMjNlZWYxN2VmYmNlM2VkYjgwNGEzODJhYzJmYzUyOTk0OWVmN2Y2ZWRhNzgzMmNlZWRlNWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7I8uYsq_77EH3AQ3pK_zD_9zmDMXrEwkRcviTqAmFrY)
source: https://testnets.opensea.io/assets/base_sepolia/0x337764ed8EC46b7Fb5819Edc61e8F1c700155c21/0
Future Work