# OpenAI Compatibility
We designed Groq API to be mostly compatible with OpenAI's client libraries, making it easy to 
configure your existing applications to run on Groq and try our inference speed.
<br />
We also have our own [Groq Python and Groq TypeScript libraries](/docs/libraries) that we encourage you to use.

## Configuring OpenAI to Use Groq API
To start using Groq with OpenAI's client libraries, pass your Groq API key to the `api_key` parameter
and change the `base_url` to `https://api.groq.com/openai/v1`:


You can find your API key [here](/keys). 

## Currently Unsupported OpenAI Features

Note that although Groq API is mostly OpenAI compatible, there are a few features we don't support just yet: 

### Text Completions
The following fields are currently not supported and will result in a 400 error (yikes) if they are supplied:
- `logprobs`

- `logit_bias`

- `top_logprobs`

- `messages[].name`

- If `N` is supplied, it must be equal to 1.

### Temperature
If you set a `temperature` value of 0, it will be converted to `1e-8`. If you run into any issues, please try setting the value to a float32 `> 0` and `<= 2`.

### Audio Transcription and Translation
The following values are not supported:
- `vtt`
- `srt`

## Responses API

Groq also supports the [Responses API](/docs/responses-api), which is a more advanced interface for generating model responses that supports both text and image inputs while producing text outputs. You can build stateful conversations by using previous responses as context, and extend your model's capabilities through function calling to connect with external systems and data sources.

### Feedback
If you'd like to see support for such features as the above on Groq API, please reach out to us and let us know by submitting a "Feature Request" via "Chat with us" in the menu after clicking your organization in the top right. We really value your feedback and would love to hear from you! 

## Next Steps

Migrate your prompts to open-source models using our [model migration guide](/docs/prompting/model-migration), or learn more about prompting in our [prompting guide](/docs/prompting).

---

## Prompt Caching: Multi Turn Conversations (js)