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

# Pipeshift integrations

> Integrate with Pipeshift using LangChain Python.

> [Pipeshift](https://pipeshift.com) is a fine-tuning and inference platform for open-source LLMs

* You bring your datasets. Fine-tune multiple LLMs. Start inferencing in one-click and watch them scale to millions.

## Installation and setup

* Install the Pipeshift integration package.

  ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
  pip install langchain-pipeshift
  ```

* Get your Pipeshift API key by signing up at [Pipeshift](https://pipeshift.com).

### Authentication

You can perform authentication using your Pipeshift API key in any of the following ways:

1. Adding API key to the environment variable as `PIPESHIFT_API_KEY`.

   ```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
   os.environ["PIPESHIFT_API_KEY"] = "<your_api_key>"
   ```

2. By passing `api_key` to the pipeshift LLM module or chat module

   ```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
   llm = Pipeshift(api_key="<your_api_key>", model="meta-llama/Meta-Llama-3.1-8B-Instruct", max_tokens=512)

                       OR

   chat = ChatPipeshift(api_key="<your_api_key>", model="meta-llama/Meta-Llama-3.1-8B-Instruct", max_tokens=512)
   ```

## Chat models

See an [example](/oss/python/integrations/chat/pipeshift).

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from langchain_pipeshift import ChatPipeshift
```

## LLMs

See an [example](/oss/python/integrations/llms/pipeshift).

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from langchain_pipeshift import Pipeshift
```

***

<div className="source-links">
  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>

  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/providers/pipeshift.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>
</div>
