> ## 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.

# Basic Streaming Agent

## Code

```python cookbook/11_models/cometapi/basic_stream.py theme={null}
from agno.agent import Agent
from agno.models.cometapi import CometAPI

agent = Agent(model=CometAPI(id="gpt-5-mini"), markdown=True)

# Print the response in the terminal with streaming enabled
agent.print_response("Explain quantum computing in simple terms", stream=True)

```

## Usage

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

  <Step title="Set your API key">`bash export COMETAPI_KEY=xxx `</Step>

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

  <Step title="Run Agent">
    ```bash theme={null}
    python cookbook/11_models/cometapi/basic_stream.py
    ```
  </Step>
</Steps>
