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

# Nebius

> NebiusTools provides access to Nebius Token Factory's text-to-image generation capabilities with advanced AI models.

## Example

The following agent can generate images using Nebius Token Factory:

```python theme={null}
from agno.agent import Agent
from agno.tools.models.nebius import NebiusTools

agent = Agent(
    instructions=[
        "You are an AI image generation assistant using Nebius Token Factory",
        "Create high-quality images based on user descriptions",
        "Provide detailed information about the generated images",
        "Help users refine their prompts for better results",
    ],
    tools=[NebiusTools()],
)

agent.print_response("Generate an image of a futuristic city with flying cars at sunset", stream=True)
```

## Toolkit Params

| Parameter               | Type            | Default                                    | Description                                       |
| ----------------------- | --------------- | ------------------------------------------ | ------------------------------------------------- |
| `api_key`               | `Optional[str]` | `None`                                     | Nebius API key. Uses NEBIUS\_API\_KEY if not set. |
| `base_url`              | `str`           | `"https://api.tokenfactory.nebius.com/v1"` | Nebius API base URL.                              |
| `image_model`           | `str`           | `"black-forest-labs/flux-schnell"`         | Default image generation model.                   |
| `image_quality`         | `Optional[str]` | `"standard"`                               | Image quality setting.                            |
| `image_size`            | `Optional[str]` | `"1024x1024"`                              | Default image dimensions.                         |
| `image_style`           | `Optional[str]` | `None`                                     | Image style preference.                           |
| `enable_generate_image` | `bool`          | `True`                                     | Enable image generation functionality.            |

## Toolkit Functions

| Function         | Description                                                                  |
| ---------------- | ---------------------------------------------------------------------------- |
| `generate_image` | Generate images from text descriptions using Nebius Token Factory AI models. |

## Developer Resources

* View [Tools Source](https://github.com/agno-agi/agno/blob/main/libs/agno/agno/tools/models/nebius.py)
* [Nebius Token Factory Documentation](https://docs.tokenfactory.nebius.com/)
* [Nebius API Reference](https://api.tokenfactory.nebius.com/docs)
