Replace your-webhook with api/pfp-complete and create a function in the application apps/api/pfp-complete/route.ts that updates the user account with the new images and toggles the isComplete status for profile picture generation.
💰 Bounty Reward
The bounty reward is undetermined. Comments and feedback are welcome.
TurboETH is the recipient of 18,271.88 OP Tokens from Optimism Retroactive Public Goods Funding. The OP tokens earned from the PGF program are the primary funding source for TurboETH bounties.
Create an API endpoint for generating unique profile pictures using Dreambooth API service on Replicate.
https://replicate.com/replicate/dreambooth
How It Could Work
Model Request
The API will zip the images uploaded by the user (https://github.com/turbo-eth/template-ai-pfp-app/issues/4) and send a q request to the replicate API to generate a new model.
The prompts will be pre-generated and available in the backend as hardcoded values.
Complete Webhook
Once the model and images have been generated the replicate API will call an application webhook.
Example of Webhook Configration
Replace
your-webhook
withapi/pfp-complete
and create a function in the applicationapps/api/pfp-complete/route.ts
that updates the user account with the new images and toggles theisComplete
status for profile picture generation.💰 Bounty Reward
The bounty reward is undetermined. Comments and feedback are welcome.
TurboETH is the recipient of 18,271.88 OP Tokens from Optimism Retroactive Public Goods Funding. The OP tokens earned from the PGF program are the primary funding source for TurboETH bounties.
Resources