Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions components/icons/providers/futureinfra.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react'

export default function FutureInfraIcon({ className, ...props }: React.SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" className={className} {...props}>
<path
fill="currentColor"
fillRule="evenodd"
d="M5.625 0h12.75A5.625 5.625 0 0 1 24 5.625v12.75A5.625 5.625 0 0 1 18.375 24H5.625A5.625 5.625 0 0 1 0 18.375V5.625A5.625 5.625 0 0 1 5.625 0ZM6.811 9.314l1.378-1.378L12.254 12l-4.065 4.064-1.378-1.378L9.496 12ZM13.125 15.15h3.75a.975.975 0 0 1 0 1.95h-3.75a.975.975 0 0 1 0-1.95Z"
/>
</svg>
)
}
1 change: 1 addition & 0 deletions components/icons/providers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export { default as DiscordIcon } from './discord'
export { default as FacebookIcon } from './facebook'
export { default as FirebaseIcon } from './firebase'
export { default as FireworksIcon } from './fireworks'
export { default as FutureInfraIcon } from './futureinfra'
export { default as GoogleIcon } from './google'
export { default as GroqIcon } from './groq'
export { default as HeliconeIcon } from './helicone'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
title: FutureInfra
icon: FutureInfra
description: Configure FutureInfra as a custom endpoint in LibreChat.
---

FutureInfra is a Korean cloud provider whose AI router serves 300+ models from OpenAI, Anthropic, and other providers through a single OpenAI-compatible endpoint.

## Get an API key

Create an account at [futureinfra.ai](https://futureinfra.ai/) and generate a key in the console under [AI Router](https://futureinfra.ai/console/?screen=ai-router). The key starts with `pk_live_`. Add it to your `.env` file:

```bash filename=".env"
FUTUREINFRA_API_KEY=pk_live_your-key-here
```

## Configuration

Add the endpoint under `endpoints.custom` in your `librechat.yaml`:

```yaml filename="librechat.yaml"
- name: "FutureInfra"
apiKey: "${FUTUREINFRA_API_KEY}"
baseURL: "https://futureinfra.ai/v1/ai"
models:
default: ["openai/gpt-4o-mini", "anthropic/claude-sonnet-4"]
fetch: true
titleConvo: true
titleModel: "openai/gpt-4o-mini"
modelDisplayLabel: "FutureInfra"
```

To pin a fixed model list instead of fetching the full catalog, set `fetch: false` and list the models yourself.

To let each user supply their own key through the LibreChat UI instead of reading one from `.env`, set `apiKey: "user_provided"`.

## Notes

- With `fetch: true`, LibreChat loads the model list from `https://futureinfra.ai/v1/ai/models`. The `default` array is only the initial selection.
- Model IDs use the `vendor/model` format, for example `openai/gpt-4o-mini`.
- Usage is billed per call from the prepaid wallet in your FutureInfra account. See the [FutureInfra docs](https://futureinfra.ai/docs/) for details.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"databricks",
"deepseek",
"fireworks",
"futureinfra",
"groq",
"helicone",
"huggingface",
Expand Down
2 changes: 2 additions & 0 deletions lib/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
FacebookIcon,
FirebaseIcon,
FireworksIcon,
FutureInfraIcon,
GoogleIcon,
GroqIcon,
HeliconeIcon,
Expand Down Expand Up @@ -252,6 +253,7 @@ const icons: Record<string, ReactElement> = {
Facebook: <FacebookIcon />,
Firebase: <FirebaseIcon />,
Fireworks: <FireworksIcon />,
FutureInfra: <FutureInfraIcon />,
Google: <GoogleIcon />,
Groq: <GroqIcon />,
Helicone: <HeliconeIcon />,
Expand Down