Elffuss BraidHub

kikocis/continue public

4b606125a269 · 1.2 KiBRawPermalink
1---
2title: "DeepInfra"
3description: "Configure DeepInfra with Continue to access low-cost inference for open-source models like Mixtral-8x7B-Instruct, including API setup instructions"
4---
5
6[DeepInfra](https://deepinfra.com) provides inference for open-source models at very low cost. To get started with DeepInfra, obtain your API key [here](https://deepinfra.com/dash). Then, find the model you want to use [here](https://deepinfra.com/models?type=text-generation) and copy the name of the model. Continue can then be configured to use the `DeepInfra` LLM class, like the example here:
7
8<Tabs>
9 <Tab title="YAML">
10 ```yaml title="config.yaml"
11 models:
12 - name: DeepInfra
13 provider: deepinfra
14 model: mistralai/Mixtral-8x7B-Instruct-v0.1
15 apiKey: <YOUR_DEEP_INFRA_API_KEY>
16 ```
17 </Tab>
18 <Tab title="JSON">
19 ```json title="config.json"
20 {
21 "models": [
22 {
23 "provider": "deepinfra",
24 "title": "DeepInfra",
25 "model": "mistralai/Mixtral-8x7B-Instruct-v0.1",
26 "apiKey": "<YOUR_DEEP_INFRA_API_KEY>"
27 }
28 ]
29 }
30 ```
31 </Tab>
32</Tabs>
33
34[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/DeepInfra.ts)