# get_openai_client

> **Function** in `langchain_parallel`

📖 [View in docs](https://reference.langchain.com/python/langchain-parallel/_client/get_openai_client)

Returns a configured sync OpenAI client for the Chat API.

## Signature

```python
get_openai_client(
    api_key: str,
    base_url: str,
) -> openai.OpenAI
```

---

[View source on GitHub](https://github.com/parallel-web/langchain-parallel/blob/7946e2f5339c689b452621744a27f1a019215639/langchain_parallel/_client.py#L38)