Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fal.ai integration #2767

Open
claudfuen opened this issue Sep 25, 2024 · 1 comment
Open

Add fal.ai integration #2767

claudfuen opened this issue Sep 25, 2024 · 1 comment

Comments

@claudfuen
Copy link
Contributor

Site: https://fal.ai/
Docs: https://fal.ai/docs

Note, you have to create an account in order to view the HTTP endpoint instructions.

Example Request

response=$(curl --request POST \
  --url https://queue.fal.run/fal-ai/fast-turbo-diffusion \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "prompt": "A cinematic shot of a baby racoon wearing an intricate italian priest robe."
   }')
REQUEST_ID=$(echo "$response" | grep -o '"request_id": *"[^"]*"' | sed 's/"request_id": *//; s/"//g')
curl --request GET \
  --url https://queue.fal.run/fal-ai/fast-turbo-diffusion/requests/$REQUEST_ID/status \
  --header "Authorization: Key $FAL_KEY"
Copy link

linear bot commented Sep 25, 2024

bodinsamuel added a commit that referenced this issue Oct 2, 2024
## Describe your changes
- Added fal.ai support.

## Issue ticket number and link
#2767

## Checklist before requesting a review (skip if just adding/editing
APIs & templates)
- [ ] I added tests, otherwise the reason is: 
- [ ] I added observability, otherwise the reason is:
- [ ] I added analytics, otherwise the reason is:

---------

Co-authored-by: Samuel Bodin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant