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

# Async stream

## Code

```python cookbook/models/meta/async_stream.py theme={null}
import asyncio
from agno.agent import Agent
from agno.models.meta import Llama

async def main():
    agent = Agent(
        model=Llama(id="Llama-3.3-70B"),
        markdown=True,
    )
    
    await agent.aprint_response(
        "Share a two-sentence horror story.",
        stream=True
    )

asyncio.run(main())
```

## Usage

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

  <Step title="Set your LLAMA API key">
    ```bash theme={null}
    export LLAMA_API_KEY=YOUR_API_KEY
    ```
  </Step>

  <Step title="Install libraries">
    ```bash theme={null}
    pip install llama-api-client agno
    ```
  </Step>

  <Step title="Run Agent">
    <CodeGroup>
      ```bash Mac theme={null}
      python cookbook/models/meta/async_stream.py
      ```

      ```bash Windows theme={null}
      python cookbook/models/meta/async_stream.py
      ```
    </CodeGroup>
  </Step>
</Steps>
