> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.get_config_list

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### get\_config\_list

```python theme={null}
get_config_list(
    api_keys: list[str],
    base_urls: list[str] | None = None,
    api_type: str | None = None,
    api_version: str | None = None
) -> list[dict[str, Any]]
```

Get a list of configs for OpenAI API client.<br />

<b>Parameters:</b>

| Name          | Description                                                                                                                                                            |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `api_keys`    | The api keys for openai api calls.<br /><br />**Type:** list\[str]                                                                                                     |
| `base_urls`   | The api bases for openai api calls.<br /><br />If provided, should match the length of api\_keys.<br /><br />**Type:** list\[str] \| None<br /><br />**Default:** None |
| `api_type`    | The api type for openai api calls.<br /><br />**Type:** str \| None<br /><br />**Default:** None                                                                       |
| `api_version` | The api version for openai api calls.<br /><br />**Type:** str \| None<br /><br />**Default:** None                                                                    |

<b>Returns:</b>

| Type                          | Description                                   |
| ----------------------------- | --------------------------------------------- |
| list\[dict\[str, typing.Any]] | list: A list of configs for OepnAI API calls. |

<br />
