推理提供商文档
Together
开始使用
指南
您的首次 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 社区
并获得增强的文档体验
开始使用
Together
所有支持的 Together 模型都可以在这里找到
Together 分布式云服务旨在赋能各种规模组织的开发人员和研究人员,以训练、微调和部署生成式 AI 模型。
支持的任务
自动语音识别
详细了解自动语音识别 此处。
提供商
对话补全 (LLM)
了解更多关于聊天补全 (LLM) 的信息,请点击这里。
语言
客户端
提供商
import os
from openai import OpenAI
client = OpenAI(
base_url="https://router.huggingface.co/v1",
api_key=os.environ["HF_TOKEN"],
)
completion = client.chat.completions.create(
model="deepseek-ai/DeepSeek-V4-Pro:together",
messages=[
{
"role": "user",
"content": "What is the capital of France?"
}
],
)
print(completion.choices[0].message)对话补全 (VLM)
了解更多关于聊天补全 (VLM) 的信息,请点击这里。
语言
客户端
提供商
import os
from openai import OpenAI
client = OpenAI(
base_url="https://router.huggingface.co/v1",
api_key=os.environ["HF_TOKEN"],
)
completion = client.chat.completions.create(
model="google/gemma-4-31B-it:together",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Describe this image in one sentence."
},
{
"type": "image_url",
"image_url": {
"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
}
}
]
}
],
)
print(completion.choices[0].message)特征提取
详细了解特征提取 此处。
提供商
图像到图像
在此处了解更多关于图像到图像的信息。
提供商
文本到图像
详细了解文本到图像 此处。
语言
提供商
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="together",
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-schnell",
)文本生成视频
在此处了解有关文本生成视频的更多信息 。
提供商
