推理提供商文件
Fal
加入 Hugging Face 社群
並獲得增強的文件體驗
開始使用
Fal
所有支援的 Fal 模型都可以在這裡找到
fal.ai 由Burkay Gur和Gorkem Yurtseven於 2021 年創立,源於對人工智慧的共同熱情,以及在 Coinbase 和亞馬遜任職期間觀察到的人工智慧基礎設施挑戰。
支援的任務
自動語音識別
瞭解有關自動語音識別的更多資訊,請點選此處。
語言
客戶端
提供商
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="fal-ai",
api_key=os.environ["HF_TOKEN"],
)
output = client.automatic_speech_recognition("sample1.flac", model="openai/whisper-large-v3")
影像到影像
瞭解有關影像到影像的更多資訊,請點選此處。
語言
客戶端
提供商
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="fal-ai",
api_key=os.environ["HF_TOKEN"],
)
with open("cat.png", "rb") as image_file:
input_image = image_file.read()
# output is a PIL.Image object
image = client.image_to_image(
input_image,
prompt="Turn the cat into a tiger.",
model="black-forest-labs/FLUX.1-Kontext-dev",
)
文字到影像
瞭解更多關於文字到影像的資訊,請點選這裡。
語言
客戶端
提供商
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="fal-ai",
api_key=os.environ["HF_TOKEN"],
)
# output is a PIL.Image object
image = client.text_to_image(
"Astronaut riding a horse",
model="Qwen/Qwen-Image",
)
文字到影片
瞭解更多關於文字到影片的資訊,請點選此處。
語言
提供商
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="fal-ai",
api_key=os.environ["HF_TOKEN"],
)
video = client.text_to_video(
"A young man walking on the street",
model="Wan-AI/Wan2.2-T2V-A14B",
)