推理提供商文档
WaveSpeed
开始使用
指南
您的首次 API 调用构建您的第一个 AI 应用使用 LLM 实现结构化输出函数调用Responses API (beta)如何使用 OpenAI gpt-oss构建图像编辑器使用 GitHub Actions 自动化代码审查使用 OpenEnv 构建智能体编程环境使用 Inspect 评估模型
集成
概览PiOpenCodeCodexClaude CodeHermes AgentNeMo Data DesignerMacWhisper视觉智能体 (Vision Agents)搭配 GitHub Copilot 的 VS Code添加您的集成
推理任务
提供商
CerebrasCohereDeepInfraFal AIFeatherless AIFireworksGroqHyperbolicHF 推理NovitaNscaleOVHcloud AI 端点Public AIReplicateSambaNovaScalewayTogetherWaveSpeedAIZ.ai
Hub API注册为推理提供商加入 Hugging Face 社区
并获得增强的文档体验
开始使用
WaveSpeed
所有支持的 WaveSpeed 模型均可在此处找到
WaveSpeedAI 是一个专注于图像和视频生成的高性能 AI 推理平台。依托前沿的基础设施和优化技术,WaveSpeedAI 为创意 AI 应用提供快速、可扩展且极具成本效益的模型服务。
支持的任务
图像到图像
在此处了解更多关于图像到图像的信息。
语言
客户端
提供商
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="wavespeed",
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.2-dev",
)文本到图像
详细了解文本到图像 此处。
语言
提供商
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="wavespeed",
api_key=os.environ["HF_TOKEN"],
)
# output is a PIL.Image object
image = client.text_to_image(
"Astronaut riding a horse",
model="black-forest-labs/FLUX.1-dev",
)文本生成视频
在此处了解有关文本生成视频的更多信息 。
语言
提供商
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="wavespeed",
api_key=os.environ["HF_TOKEN"],
)
video = client.text_to_video(
"A young man walking on the street",
model="Wan-AI/Wan2.2-TI2V-5B",
)
