推理提供商文档
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",
)