> ## Documentation Index
> Fetch the complete documentation index at: https://ikun.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Nebius

> 了解如何在 Agno 中使用 Nebius 模型。

Nebius AI Studio 是 Nebius 提供的一个平台，可简化使用 AI 模型构建应用程序的过程。它提供一套工具和服务，供开发人员轻松测试、集成和微调各种 AI 模型，包括文本和图像生成模型。
您可以在[此处](https://studio.nebius.com/)查看可用模型的列表。

我们建议您进行实验，以找到最适合您用例的模型。

## 身份验证

设置您的 `NEBIUS_API_KEY` 环境变量。在此处从 Nebius AI Studio[获取您的密钥](https://studio.nebius.com/?modals=create-api-key)。

<CodeGroup>
  ```bash Mac theme={null}
  export NEBIUS_API_KEY=***
  ```

  ```bash Windows theme={null}
  setx NEBIUS_API_KEY ***
  ```
</CodeGroup>

## 示例

在您的 `Agent` 中使用 `Nebius`：

<CodeGroup>
  ```python agent.py theme={null}
  from agno.agent import Agent, RunResponse
  from agno.models.nebius import Nebius

  agent = Agent(
       model=Nebius(
          id="meta-llama/Llama-3.3-70B-Instruct",
          api_key=os.getenv("NEBIUS_API_KEY")
      ),
      markdown=True
  )

  # 在终端中打印响应
  agent.print_response("写一个两句话的恐怖故事。")
  ```
</CodeGroup>

<Note> 在[此处](../examples/models/nebius)查看更多示例。 </Note>

## 参数

<Snippet file="model-nebius-params.mdx" />
