Example tasks
Convert an image to a cartoon using Fal.ai
This example task generates an image from a URL using Fal.ai and uploads it to Cloudflare R2.
Walkthrough
This video walks through the process of creating this task in a Next.js project.
Prerequisites
- An existing project
- A Trigger.dev account with Trigger.dev initialized in your project
- A Fal.ai account
- A Cloudflare account with an R2 bucket setup
Task code
This task converts an image to a cartoon using Fal.ai, and uploads the result to Cloudflare R2.
trigger/fal-ai-image-to-cartoon.ts
Testing your task
You can test your task by triggering it from the Trigger.dev dashboard.
Was this page helpful?