> For the complete documentation index, see [llms.txt](https://docs.projectbit.ca/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.projectbit.ca/documentation/models/open-ai-like.md).

# Open AI Like

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

### [​](https://docs.phidata.com/models/openai-like#example)Example <a href="#example" id="example"></a>

agent.py

```python
from os import getenv
from bitca.agent import Agent, RunResponse
from bitca.model.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",
    )
)

# Get the response in a variable
# run: RunResponse = agent.run("Share a 2 sentence horror story.")
# print(run.content)

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

### [​](https://docs.phidata.com/models/openai-like#params)Params <a href="#params" id="params"></a>

`OpenAILike` also support all the params of [OpenAIChat](https://docs.phidata.com/models/openai)
