NangoHQ / nango

A single API for all your integrations.
https://www.nango.dev
Other
4.58k stars 411 forks source link

Add fal.ai integration #2767

Open claudfuen opened 2 hours ago

claudfuen commented 2 hours ago

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"
linear[bot] commented 2 hours ago

NAN-1803 Add fal.ai integration