You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: "Generate an image from a prompt using Fal.ai and Trigger.dev Realtime"
3
+
sidebarTitle: "Realtime image gen with Fal.ai"
4
+
description: "This example project generates an image from a prompt using Fal.ai and shows the progress of the task on the frontend using Trigger.dev Realtime."
5
+
---
6
+
7
+
## Overview
8
+
9
+
This full stack Next.js project showcases the following:
10
+
11
+
- A Trigger.dev task which [generates an image from a prompt using Fal.ai](https://github.com/triggerdotdev/examples/blob/main/realtime-fal-ai-image-generation/src/trigger/realtime-generate-image.ts)
12
+
- When a [form is submitted](https://github.com/triggerdotdev/examples/blob/main/realtime-fal-ai-image-generation/src/app/page.tsx) in the UI, triggering the task using a [server action](https://github.com/triggerdotdev/examples/blob/main/realtime-fal-ai-image-generation/src/app/actions/process-image.ts)
13
+
- Showing the [progress of the task](https://github.com/triggerdotdev/examples/blob/main/realtime-fal-ai-image-generation/src/app/processing/%5Bid%5D/ProcessingContent.tsx) on the frontend using Trigger.dev Realtime. This also includes error handling and a fallback UI
14
+
- Once the task is completed, showing the generated image on the frontend next to the original image
15
+
16
+
## Walkthrough
17
+
18
+
This video walks through the process of creating this task in a Next.js project.
Copy file name to clipboardExpand all lines: docs/guides/introduction.mdx
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,11 +37,9 @@ Get set up fast using our detailed walk-through guides.
37
37
38
38
Example projects are full projects with example repos you can fork and use. These are a great way of learning how to encorporate Trigger.dev into your project.
|[Vercel AI SDK LLM evaluator with Realtime streaming](/guides/examples/vercel-ai-sdk-llm-evaluator)| A full-stack demo showing off Trigger.dev triggering from the frontend, Batch triggering and Realtime streams. | Next.js |[View the repo](https://github.com/triggerdotdev/batch-llm-evaluator)|
43
-
|[Fal.ai with Realtime](/guides/examples/fal-ai-realtime)| Generate an image from a prompt using Fal.ai and show the progress of the task on the frontend using Realtime. | Next.js |[View the repo](https://github.com/triggerdotdev/nextjs-realtime-fal-demo)|
44
-
|[Fal.ai image to cartoon](/guides/examples/fal-ai-image-to-cartoon)| Convert an image to a cartoon using Fal.ai, and upload the result to Cloudflare R2. | Next.js | Coming soon |
|[Realtime Fal.ai image generation](/guides/example-projects/realtime-fal-ai)| Generate an image from a prompt using Fal.ai and show the progress of the task on the frontend using Realtime. | Next.js |[View the repo](https://github.com/triggerdotdev/examples/tree/main/realtime-fal-ai-image-generation)|
0 commit comments