Inspiration
Generative AI is booming and marketplaces emerge that sell prompts to create rich visual content. But often, the prompts sold aren't immediately usable - they require extra subscriptions and can come with a hefty price tag. And after all that, you're not even guaranteed a result you'll love.
Adhoc-AI stemmed from a simple yet powerful thought: can we do better than just selling expensive prompts and making users figure out how to use them? What if, instead of choosing one prompt based on its appealing cover, you could take a bite of ten different prompts without leaving the website? With this in mind, we've created Adhoc-AI, a place where you don't buy obscure AI commands, but enjoy a user-friendly and affordable creative experience.
What it does
Adhoc-AI is a one-stop, affordable, and user-friendly prompt marketplace on Theta Network. Our platforms allow anyone to:
Enjoy easy prompting. Each prompt clearly defines what should or shouldn't be changed. Just enter a couple of words in plain English, and we'll do the rest. Forget about setting cryptic parameters and making errors in prompt syntax.
Generate on the spot. No need to go anywhere else: Adhoc-AI offers the top quality prompts which you can use immediately.
Pay as you go. Instead of paying a steep price for a single prompt that might leave you feeling unsatisfied, you can pay a fraction of the prompt's price, tweak it to your liking and instantly generate an image.
Buy with TFUEL. Thanks to the low-gas costs of transactions in the Theta network, you can avoid covering acquiring card fees.
Use your ThetaPass. As a proud member of the Theta ecosystem, we are excited to offer 1 free generation per day for ThetaZilla holders.
How we built it
Smart contract development
We developed a decentralized image generation via Theta Edge Network according to RewardPoolWithOffChainVerification contract specification from the official white paper (https://s3.us-east-2.amazonaws.com/assets.thetatoken.org/Theta-Decentralized-Edge-Computing-Platform.pdf).
All smart contracts were written in Solidity, using Foundry toolkit. We used Openzeppilin libraries and the best practices of secure smart contract programming:
- privileged functions can only be called by the contract owner
- contracts are pausable
- all essential functions have reentrancy protection
- contracts are tested with automated unit tests
Backend development
We used Python and the Django framework to develop a Task Initiator and Edge Node. We used the Web3 Python library to interact with the blockchain: fetch events and execute transactions.
Our backend tracks sessions and generation history, so that users can return and find the images they generated. We implemented several optimizations to streamline the delivery of large images, e.g. our backend automatically resizes and adjusts the quality of generated images for the display (users can still download original, high-quality images).
Frontend development
On the front end, we used Vue.js, and Nuxt.js and implemented Server-Side Rendering (SSR) to improve website loading time.
Product development
We designed a simple, yet effective user experience for our platform
- a user needs only Metamask to login
- they can explore prompts and buy generation credits for the prompts they like
- they tweak and adjust a prompt, and save it when they are happy with the result
Challenges we ran into
We couldn't mint our own NFTs on the ThetaDrop platform because this requires special permission. This prevented us from thoroughly testing ThetaPass-related functionality.
Accomplishments that we're proud of
Built an innovative prompt marketplace on Theta network from scratch.
Developed one of the first working examples of distributed generative AI on Theta Edge Network in compliance with the specifications from the official white paper.
Integrated two Theta-native payment options in a secure manner: TFUEL payments and ThetaPass access are verified both on-chain and off-chain.
Designed the best in class, intuitive user experience and a slick, modern UI
Deployed live demo on the testnet
What we learned
We learned a great deal about Theta network, its ecosystem, and its technologies.
What's next for Adhoc-AI
We hope that this would be the start of the journey in building a premier generative AI project on Theta. We are excited to continue building and our next goals would be:
- Supporting high-quality generative video and animation
- Using zkSNARKs to verify model execution in a trustless manner. Our team includes recent winners of the recent ZK hackathon organized by Berkley RDI and we are looking forward to bringing zero-knowledge machine learning to Theta (ZkML).
- Allowing minting NFT with generated content and selling it on ThetaDrop

Log in or sign up for Devpost to join the conversation.