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

# Together Image Agent Bytes

> Send local image bytes to a current Together vision model and stream the description.

<Warning>
  Together retired the source's `meta-llama/Llama-Vision-Free` serverless model. Select a current vision model from the [Together serverless catalog](https://docs.together.ai/docs/serverless/models) before running. See [Together vision inputs](https://docs.together.ai/docs/inference/vision/overview).
</Warning>

```python image_agent_bytes.py theme={null}
"""
Together Image Agent Bytes
==========================

Cookbook example for `together/image_agent_bytes.py`.
"""

from pathlib import Path

from agno.agent import Agent
from agno.media import Image
from agno.models.together import Together

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------

agent = Agent(
    model=Together(id="meta-llama/Llama-Vision-Free"),
    markdown=True,
)

image_path = Path(__file__).parent.joinpath("sample.jpg")

# Read the image file content as bytes
image_bytes = image_path.read_bytes()

agent.print_response(
    "Tell me about this image",
    images=[
        Image(content=image_bytes),
    ],
    stream=True,
)

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------

if __name__ == "__main__":
    pass
```

## Run the Example

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Install dependencies">
    ```bash theme={null}
    uv pip install -U agno openai
    ```
  </Step>

  <Step title="Export environment variables">
    <CodeGroup>
      ```bash Mac/Linux theme={null}
      export TOGETHER_API_KEY="your_together_api_key_here"
      export TOGETHER_VISION_MODEL_ID="your_current_together_vision_model_id_here"
      ```

      ```bash Windows theme={null}
      $Env:TOGETHER_API_KEY="your_together_api_key_here"
      $Env:TOGETHER_VISION_MODEL_ID="your_current_together_vision_model_id_here"
      ```
    </CodeGroup>
  </Step>

  <Step title="Use the selected vision model">
    Add `import os`, then replace `Together(id="meta-llama/Llama-Vision-Free")` with `Together(id=os.environ["TOGETHER_VISION_MODEL_ID"])` in the saved file.
  </Step>

  <Step title="Add the sample image">
    Place a JPEG named `sample.jpg` in the same directory as `image_agent_bytes.py`.
  </Step>

  <Step title="Run the example">
    Save the code above as `image_agent_bytes.py`, then run:

    ```bash theme={null}
    python image_agent_bytes.py
    ```
  </Step>
</Steps>

Full source: [cookbook/90\_models/together/image\_agent\_bytes.py](https://github.com/agno-agi/agno/blob/main/cookbook/90_models/together/image_agent_bytes.py)
