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

# LiteLLM SDK Reference

> SDK reference for LiteLLM in the Models API, available in Node.js and Python.

## Models

### Import LiteLLM

Bulk-imports a list of LiteLLM model definitions into the workspace model garden.

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY"),
) as orq:

    res = orq.models.import_litellm(request=[
        {
            "litellm_params": {
                "merge_reasoning_content_in_choices": False,
                "model": "openai/gpt-6-astra",
                "use_in_pass_through": False,
                "use_litellm_proxy": False,
            },
            "model_info": {
                "db_model": True,
                "id": "<id>",
                "key": "<key>",
                "litellm_provider": "<value>",
                "mode": "<value>",
            },
            "model_name": "<value>",
        },
    ])

    # Handle response
    print(res)

```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
import { Orq } from "@orq-ai/node";

const orq = new Orq({
  apiKey: process.env["ORQ_API_KEY"] ?? "",
});

async function run() {
  const result = await orq.models.importLitellm([
    {
      litellmParams: {
        mergeReasoningContentInChoices: false,
        model: "openai/gpt-6-astra",
        useInPassThrough: false,
        useLitellmProxy: false,
      },
      modelInfo: {
        dbModel: true,
        id: "<id>",
        key: "<key>",
        litellmProvider: "<value>",
        mode: "<value>",
      },
      modelName: "<value>",
    },
  ]);

  console.log(result);
}

run();
```

**Parameters**

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
    "request": List[LiteLLMModel],  # required
}
```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
// orq.models.importLitellm(request)
```

### List LiteLLM

Fetches the list of models from the LiteLLM instance configured for the workspace. Requires a stored LiteLLM integration.

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY"),
) as orq:

    res = orq.models.list_litellm()

    # Handle response
    print(res)

```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
import { Orq } from "@orq-ai/node";

const orq = new Orq({
  apiKey: process.env["ORQ_API_KEY"] ?? "",
});

async function run() {
  const result = await orq.models.listLitellm();

  console.log(result);
}

run();
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.