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

# OpenRouter

## Example

<CodeGroup>
  ```python agent.py theme={null}

  from phi.agent import Agent
  from phi.model.openrouter import OpenRouter

  agent = Agent(
  model=OpenRouter(id="gpt-4o"),
  show_tool_calls=True,
  markdown=True,
  )

  agent.print_response("What is the stock price of NVDA and TSLA")
  ```
</CodeGroup>

## OpenRouter Params

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

`OpenRouter` is a subclass of the [OpenAILike](/reference/model/openai-like) class and has access to the same params.
