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

# OpenAI Like

> Learn how to use OpenAI-like models in Agno.

Many providers like Together, Groq, Nebius, Sambanova, xAI, etc support the OpenAI API format. Use the `OpenAILike` model to access them by replacing the `base_url`.

## Example

<CodeGroup>
  ```python agent.py theme={null}
  from os import getenv
  from agno.agent import Agent, RunResponse
  from agno.models.openai.like import OpenAILike

  agent = Agent(
      model=OpenAILike(
          id="mistralai/Mixtral-8x7B-Instruct-v0.1",
          api_key=getenv("TOGETHER_API_KEY"),
          base_url="https://api.together.xyz/v1",
      )
  )

  # Print the response in the terminal
  agent.print_response("Share a 2 sentence horror story.")
  ```
</CodeGroup>

## Params

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

`OpenAILike` also support all the params of [OpenAIChat](/reference/models/openai)
