Skip to content

Commit

Permalink
Restore original fal task page
Browse files Browse the repository at this point in the history
  • Loading branch information
D-K-P committed Jan 3, 2025
1 parent 13e3ec4 commit d50d4f4
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions docs/guides/examples/fal-ai-realtime.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Generate an image from a prompt using Fal.ai and Trigger.dev Realtime"
sidebarTitle: "Fal.ai with Realtime"
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."
description: "This example task generates an image from a prompt using Fal.ai and shows the progress of the task on the frontend using Trigger.dev Realtime."
---

## Walkthrough
Expand All @@ -21,31 +21,15 @@ This video walks through the process of creating this task in a Next.js project.
/>
</div>

## Tech stack
## Prerequisites

- Next.js using the App Router for the frontend
- Trigger tasks from the frontend using our [React hooks](/frontend/react-hooks)
- [Trigger.dev Realtime](/realtime/overview) to stream updates to the frontend
- [Trigger.dev](https://cloud.trigger.dev) for task processing
- [Fal.ai](https://fal.ai/) for AI image generation

<Note>You will need all of these services to run this project.</Note>

## GitHub Repo

Check out and fork the full code in our [nextjs-realtime-fal-demo repo
](https://github.com/triggerdotdev/nextjs-realtime-fal-demo).

<Note>
To run the project and tasks locally, add your API keys to an `.env` file, and update the project
ID in the `trigger.config.ts` file to your project ID. To run the project in production, set the
`TRIGGER_API_KEY` environment variable to your project API key, and update the environment
variables in the Trigger.dev dashboard.
</Note>
- An existing project
- A [Trigger.dev account](https://cloud.trigger.dev) with Trigger.dev [initialized in your project](/quick-start)
- A [Fal.ai](https://fal.ai/) account

## Task code

This task converts an image to a cartoon using fal AI.
This task generates an image from a prompt using Fal.ai.

```ts trigger/fal-ai-image-from-prompt-realtime.ts
import * as fal from "@fal-ai/serverless-client";
Expand Down

0 comments on commit d50d4f4

Please sign in to comment.