> For the complete documentation index, see [llms.txt](https://docs.imerit.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imerit.net/sdk/sdk-documentation/organization-level-sdk-functions/get_llms.md).

# get\_llms

`imerit_ango.sdk.SDK.`

## get\_llms(llm\_id)

Retrieve the LLM integrations configured for your organization.

### Parameters

* **llm\_id:** string, *Optional, Default None*
  * The unique identifier of an LLM integration. If provided, the function returns the matching integration instead of the full response.

Returns:

* **output:** dict
  * Without `llm_id`, a dictionary containing a `status` field and the integrations in `data.llms`.
  * With `llm_id`, the matching LLM integration object.

{% hint style="info" %}
Provider API keys are returned as `••••••••` in `configuration.apiKey`. The stored key cannot be retrieved through this function. Keep your original provider key separately if you need it for another integration.
{% endhint %}

### Example

Retrieve all LLM integrations in the organization:

{% tabs %}
{% tab title="python" %}

```python
import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK

load_dotenv('variables.env')
api_key = os.getenv('API_KEY')

ango_sdk = SDK(api_key)

sdk_response = ango_sdk.get_llms()
llm_list = sdk_response['data']['llms']
```

{% endtab %}

{% tab title="curl" %}

```bash
curl -X GET "https://imeritapi.ango.ai/v2/llms" \
  -H "Content-Type: application/json" \
  -H "apikey: $ANGO_API_KEY"
```

{% endtab %}
{% endtabs %}

Retrieve a specific LLM integration:

{% tabs %}
{% tab title="python" %}

```python
llm_id = "<LLM ID>"
llm = ango_sdk.get_llms(llm_id=llm_id)
```

{% endtab %}

{% tab title="curl" %}

```bash
curl -X GET "https://imeritapi.ango.ai/v2/llms?_id=<LLM ID>" \
  -H "Content-Type: application/json" \
  -H "apikey: $ANGO_API_KEY"
```

{% endtab %}
{% endtabs %}

<details>

<summary>Sample Output</summary>

```json
{
  "status": "success",
  "data": {
    "llms": [
      {
        "name": "My OpenAI Account",
        "provider": "openai",
        "model": "gpt-4.1-mini",
        "isStreamable": true,
        "configuration": {
          "apiKey": "••••••••"
        },
        "organization": {
          "id": "ORGANIZATION_ID"
        },
        "deleted": false,
        "_id": "LLM_ID"
      }
    ],
    "total": 1
  }
}
```

</details>

{% hint style="info" %}
**See also**

[create\_llm](/sdk/sdk-documentation/organization-level-sdk-functions/create_llm.md), [delete\_llm](/sdk/sdk-documentation/organization-level-sdk-functions/delete_llm.md)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.imerit.net/sdk/sdk-documentation/organization-level-sdk-functions/get_llms.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
