# normalize_api_key

> **Function** in `langchain_ibm`

📖 [View in docs](https://reference.langchain.com/python/langchain-ibm/utils/normalize_api_key)

Normalize deprecated 'apikey' to 'api_key'.

- If only 'apikey' is provided, convert it to 'api_key' with a DeprecationWarning.
- If both are provided, 'api_key' takes precedence with a UserWarning.

## Signature

```python
normalize_api_key(
    data: dict[str, Any],
) -> dict[str, Any]
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-ibm/blob/68e9b09f8cbc8d2310e57a6a7eb51cde0956a3b0/libs/ibm/langchain_ibm/utils.py#L236)