推理提供商文件
Nebius
加入 Hugging Face 社群
並獲得增強的文件體驗
開始使用
Nebius
所有支援的 Nebius 模型都可以在這裡找到
Nebius AI 是一家專注於以 AI 為中心的雲平臺的技術公司,提供可擴充套件的 GPU 叢集、託管服務和專為密集型 AI 工作負載設計的開發者工具。Nebius 總部位於阿姆斯特丹,提供靈活的架構和高效能基礎設施,以支援任何規模的 AI 模型訓練和推理。
支援的任務
聊天補全 (LLM)
瞭解更多關於聊天補全 (LLM) 的資訊,請點選這裡。
語言
客戶端
提供商
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="nebius",
api_key=os.environ["HF_TOKEN"],
)
completion = client.chat.completions.create(
model="Qwen/Qwen3-235B-A22B-Instruct-2507",
messages=[
{
"role": "user",
"content": "What is the capital of France?"
}
],
)
print(completion.choices[0].message)
聊天補全 (VLM)
瞭解更多關於聊天補全 (VLM) 的資訊,請點選這裡。
語言
客戶端
提供商
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="nebius",
api_key=os.environ["HF_TOKEN"],
)
completion = client.chat.completions.create(
model="google/gemma-3-27b-it",
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="nebius",
api_key=os.environ["HF_TOKEN"],
)
result = client.feature_extraction(
"Today is a sunny day and I will get some ice cream.",
model="Qwen/Qwen3-Embedding-8B",
)
文字生成
瞭解更多關於文字生成的資訊,請點選這裡。
語言
客戶端
提供商
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="nebius",
api_key=os.environ["HF_TOKEN"],
)
completion = client.chat.completions.create(
model="Qwen/Qwen3-235B-A22B-Instruct-2507",
messages="\"Can you please let us know more details about your \"",
)
print(completion.choices[0].message)
文字到影像
瞭解更多關於文字到影像的資訊,請點選這裡。
語言
提供商
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="nebius",
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",
)