Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

✨ feat: Add new provider Straico (#12219)

sxjerue51234443ae8
diff --git a/docs/self-hosting/environment-variables/model-provider.mdx b/docs/self-hosting/environment-variables/model-provider.mdx
index 3ff932d06e8..1bc9aa10ab1 100644
--- a/docs/self-hosting/environment-variables/model-provider.mdx
+++ b/docs/self-hosting/environment-variables/model-provider.mdx
@@ -1,9 +1,8 @@
---
title: LobeHub Model Service Providers - Environment Variables and Configuration
description: >-
- Learn about the environment variables and configuration settings for various
- model service providers like OpenAI, Google AI, AWS Bedrock, Ollama,
- Perplexity AI, Anthropic AI, Mistral AI, Groq AI, OpenRouter AI, and 01.AI.
+ Learn about the environment variables and configuration settings for various model service providers like OpenAI, Google AI, AWS Bedrock, Ollama, Perplexity AI, Anthropic AI, Mistral AI, Groq AI, OpenRouter AI, and 01.AI.
+
tags:
- Model Service Providers
- Environment Variables
@@ -737,7 +736,10 @@ The above example disables all models first, then enables `fal-ai/flux/schnell`
- Example: `{"X-Auth-Token": "your-token", "X-Custom-Header": "value"}`
<Callout type={'info'}>
- ComfyUI supports multiple authentication methods. Please choose the appropriate authentication type and corresponding authentication parameters according to your ComfyUI service configuration. If your ComfyUI service has no authentication set up, you can skip configuring authentication-related environment variables.
+ ComfyUI supports multiple authentication methods. Please choose the appropriate authentication
+ type and corresponding authentication parameters according to your ComfyUI service configuration.
+ If your ComfyUI service has no authentication set up, you can skip configuring
+ authentication-related environment variables.
</Callout>
## BFL
@@ -824,4 +826,20 @@ NewAPI is a multi-provider model aggregation service that supports automatic mod
- Default: `-`
- Example: `-all,+claude-opus-4-1-20250805,+claude-opus-4-20250514=claude-opus-4`
+## Straico
+
+### `STRAICO_API_KEY`
+
+- Type: Required
+- Description: This is the API key you applied for in the Straico service.
+- Default: -
+- Example: `sk-xxxxxx...xxxxxx`
+
+### `STRAICO_MODEL_LIST`
+
+- Type: Optional
+- Description: Used to control the Straico model list. Use `+` to add a model, `-` to hide a model, and `model_name=display_name` to customize the display name of a model. Separate multiple entries with commas. The definition syntax follows the same rules as other providers' model lists.
+- Default: `-`
+- Example: `-all,+straico-model-1,+straico-model-2=straico-special`
+
[model-list]: /docs/self-hosting/advanced/model-list
diff --git a/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx b/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx
index 5ff4519911d..a463449560a 100644
--- a/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx
+++ b/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx
@@ -251,7 +251,8 @@ LobeHub 在部署时提供了丰富的模型服务商相关的环境变量,你
- 示例:`{"X-Auth-Token": "your-token", "X-Custom-Header": "value"}`
<Callout type={'info'}>
- ComfyUI 支持多种认证方式,请根据您的 ComfyUI 服务配置选择合适的认证类型和相应的认证参数。如果您的 ComfyUI 服务没有设置认证,可以不配置认证相关的环境变量。
+ ComfyUI 支持多种认证方式,请根据您的 ComfyUI 服务配置选择合适的认证类型和相应的认证参数。如果您的
+ ComfyUI 服务没有设置认证,可以不配置认证相关的环境变量。
</Callout>
## DeepSeek AI
@@ -827,4 +828,20 @@ LobeHub 在部署时提供了丰富的模型服务商相关的环境变量,你
- 默认值:`-`
- 示例:`-all,+claude-opus-4-1-20250805,+claude-opus-4-20250514=claude-opus-4`
+## Straico
+
+### `STRAICO_API_KEY`
+
+- 类型:必选
+- 描述:这是你在 Straico 服务中申请的 API 密钥
+- 默认值:-
+- 示例:`sk-xxxxxx...xxxxxx`
+
+### `STRAICO_MODEL_LIST`
+
+- 类型:可选
+- 描述:用来控制 Straico 模型列表,使用 `+` 增加一个模型,使用 `-` 来隐藏一个模型,使用 `模型名=展示名` 来自定义模型的展示名,用英文逗号隔开。模型定义语法规则与其他 provider 保持一致。
+- 默认值:`-`
+- 示例:`-all,+straico-model-1,+straico-model-2=straico-special`
+
[model-list]: /zh/docs/self-hosting/advanced/model-list
diff --git a/locales/en-US/providers.json b/locales/en-US/providers.json
index 81dc722c0f3..83d10ecfd9b 100644
--- a/locales/en-US/providers.json
+++ b/locales/en-US/providers.json
@@ -54,6 +54,7 @@
"siliconcloud.description": "SiliconCloud is a cost-effective GenAI cloud service built on strong open-source base models.",
"spark.description": "iFLYTEK Spark provides powerful multilingual AI across domains, enabling innovations in smart hardware, healthcare, finance, and other verticals.",
"stepfun.description": "Stepfun models offer leading multimodal and complex reasoning capabilities, with long-context understanding and powerful autonomous search orchestration.",
+ "straico.description": "Straico simplifies AI integration by providing a unified workspace that brings together top text, image, and audio generative AI models, empowering marketers, entrepreneurs, and enthusiasts with seamless access to diverse AI tools.",
"taichu.description": "A next-generation multimodal model from CASIA and the Wuhan Institute of AI, supporting multi-turn QA, writing, image generation, 3D understanding, and signal analysis with stronger cognition and creativity.",
"tencentcloud.description": "LLM Knowledge Engine Atomic Power provides end-to-end knowledge QA for enterprises and developers, with modular services like document parsing, chunking, embeddings, and multi-turn rewriting to assemble custom AI solutions.",
"togetherai.description": "Together AI delivers leading performance with innovative models, broad customization, rapid scaling, and straightforward deployment for enterprise needs.",
diff --git a/locales/zh-CN/providers.json b/locales/zh-CN/providers.json
index 407ab7437ae..1c51f2c6e0b 100644
--- a/locales/zh-CN/providers.json
+++ b/locales/zh-CN/providers.json
@@ -54,6 +54,7 @@
"siliconcloud.description": "SiliconCloud 是基于强大开源模型构建的高性价比生成式 AI 云服务。",
"spark.description": "讯飞星火提供强大的多语言 AI 能力,广泛应用于智能硬件、医疗、金融等垂直领域,推动创新发展。",
"stepfun.description": "Stepfun 模型具备领先的多模态与复杂推理能力,支持长文本理解与强大的自主搜索编排。",
+ "straico.description": "Straico 致力于简化 AI 集成,通过提供一个整合了顶尖文本、图像和音频生成式 AI 模型的统一工作空间,赋能营销人员、企业家及爱好者等各类用户,实现对多样化 AI 工具的无缝访问。",
"taichu.description": "太初是中科院自动化所与武汉人工智能研究院联合研发的新一代多模态模型,支持多轮问答、写作、图像生成、3D 理解与信号分析,具备更强的认知与创造力。",
"tencentcloud.description": "腾讯云大模型知识引擎原子能力为企业与开发者提供端到端知识问答服务,支持文档解析、切分、向量化、多轮重写等模块化服务,助力构建定制 AI 方案。",
"togetherai.description": "Together AI 提供领先性能的创新模型,支持广泛定制、快速扩展与简便部署,满足企业需求。",
diff --git a/packages/model-bank/package.json b/packages/model-bank/package.json
index 56fc1bfb5b0..f24393d2202 100644
--- a/packages/model-bank/package.json
+++ b/packages/model-bank/package.json
@@ -61,6 +61,7 @@
"./siliconcloud": "./src/aiModels/siliconcloud.ts",
"./spark": "./src/aiModels/spark.ts",
"./stepfun": "./src/aiModels/stepfun.ts",
+ "./straico": "./src/aiModels/straico.ts",
"./taichu": "./src/aiModels/taichu.ts",
"./tencentcloud": "./src/aiModels/tencentcloud.ts",
"./togetherai": "./src/aiModels/togetherai.ts",
diff --git a/packages/model-bank/src/aiModels/index.ts b/packages/model-bank/src/aiModels/index.ts
index 95762028547..94d58303723 100644
--- a/packages/model-bank/src/aiModels/index.ts
+++ b/packages/model-bank/src/aiModels/index.ts
@@ -56,6 +56,7 @@ import { default as sensenova } from './sensenova';
import { default as siliconcloud } from './siliconcloud';
import { default as spark } from './spark';
import { default as stepfun } from './stepfun';
+import { default as straico } from './straico';
import { default as taichu } from './taichu';
import { default as tencentcloud } from './tencentcloud';
import { default as togetherai } from './togetherai';
@@ -148,6 +149,7 @@ export const LOBE_DEFAULT_MODEL_LIST = buildDefaultModelList({
siliconcloud,
spark,
stepfun,
+ straico,
taichu,
tencentcloud,
togetherai,
@@ -221,6 +223,7 @@ export { default as sensenova } from './sensenova';
export { default as siliconcloud } from './siliconcloud';
export { default as spark } from './spark';
export { default as stepfun } from './stepfun';
+export { default as straico } from './straico';
export { default as taichu } from './taichu';
export { default as tencentcloud } from './tencentcloud';
export { default as togetherai } from './togetherai';
diff --git a/packages/model-bank/src/aiModels/nebius.ts b/packages/model-bank/src/aiModels/nebius.ts
index b3269234bca..3c7fc02d7e3 100644
--- a/packages/model-bank/src/aiModels/nebius.ts
+++ b/packages/model-bank/src/aiModels/nebius.ts
@@ -154,23 +154,6 @@ const nebiusChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 40_960,
- displayName: 'Qwen3-30B-A3B',
- id: 'Qwen/Qwen3-30B-A3B',
- organization: 'Qwen',
- pricing: {
- units: [
- { name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -205,23 +188,6 @@ const nebiusChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 40_960,
- displayName: 'Qwen3-14B',
- id: 'Qwen/Qwen3-14B',
- organization: 'Qwen',
- pricing: {
- units: [
- { name: 'textInput', rate: 0.08, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -271,22 +237,6 @@ const nebiusChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 163_840,
- displayName: 'DeepSeek-V3',
- id: 'deepseek-ai/DeepSeek-V3',
- organization: 'deepseek',
- pricing: {
- units: [
- { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -351,22 +301,6 @@ const nebiusChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 131_072,
- displayName: 'Meta-Llama-3.1-405B-Instruct',
- id: 'meta-llama/Meta-Llama-3.1-405B-Instruct',
- organization: 'meta',
- pricing: {
- units: [
- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -412,39 +346,6 @@ const nebiusChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 131_072,
- displayName: 'Qwen2.5-72B-Instruct',
- id: 'Qwen/Qwen2.5-72B-Instruct',
- organization: 'Qwen',
- pricing: {
- units: [
- { name: 'textInput', rate: 0.13, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 131_072,
- displayName: 'QwQ-32B',
- id: 'Qwen/QwQ-32B',
- organization: 'Qwen',
- pricing: {
- units: [
- { name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.45, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -462,22 +363,6 @@ const nebiusChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 131_072,
- displayName: 'Hermes-3-Llama-3.1-405B',
- id: 'NousResearch/Hermes-3-Llama-405B',
- organization: 'NousResearch',
- pricing: {
- units: [
- { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -510,22 +395,6 @@ const nebiusChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 128_000,
- displayName: 'Devstral-Small-2505',
- id: 'mistralai/Devstral-Small-2505',
- organization: 'mistralai',
- pricing: {
- units: [
- { name: 'textInput', rate: 0.08, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.24, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/aiModels/straico.ts b/packages/model-bank/src/aiModels/straico.ts
new file mode 100644
index 00000000000..956e2a6f786
--- /dev/null
+++ b/packages/model-bank/src/aiModels/straico.ts
@@ -0,0 +1,7 @@
+import { AIChatModelCard } from '../types/aiModel';
+
+const straicoModels: AIChatModelCard[] = [];
+
+export const allModels = [...straicoModels];
+
+export default allModels;
diff --git a/packages/model-bank/src/aiModels/volcengine.ts b/packages/model-bank/src/aiModels/volcengine.ts
index 95d2dcae727..4bf5281f355 100644
--- a/packages/model-bank/src/aiModels/volcengine.ts
+++ b/packages/model-bank/src/aiModels/volcengine.ts
@@ -909,52 +909,6 @@ const doubaoChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- config: {
- deploymentName: 'deepseek-r1-distill-qwen-32b-250120',
- },
- contextWindowTokens: 65_536,
- description:
- 'DeepSeek-R1-Distill models are fine-tuned from open-source models using sample data generated by DeepSeek-R1.',
- displayName: 'DeepSeek R1 Distill Qwen 32B',
- id: 'deepseek-r1-distill-qwen-32b',
- maxOutput: 8192,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- config: {
- deploymentName: 'deepseek-r1-distill-qwen-7b-250120',
- },
- contextWindowTokens: 65_536,
- description:
- 'DeepSeek-R1-Distill models are fine-tuned from open-source models using sample data generated by DeepSeek-R1.',
- displayName: 'DeepSeek R1 Distill Qwen 7B',
- id: 'deepseek-r1-distill-qwen-7b',
- maxOutput: 8192,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 2.4, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -1112,71 +1066,6 @@ const doubaoChatModels: AIChatModelCard[] = [
releasedAt: '2025-03-15',
type: 'chat',
},
- {
- abilities: {
- vision: true,
- },
- config: {
- deploymentName: 'doubao-vision-pro-32k-241028',
- },
- contextWindowTokens: 32_768,
- description:
- 'Doubao-vision is a multimodal model from Doubao with strong image understanding and reasoning plus accurate instruction following. It performs well on image-text extraction and image-based reasoning tasks, enabling more complex and broader visual QA scenarios.',
- displayName: 'Doubao Vision Pro 32k',
- id: 'doubao-vision-pro-32k',
- maxOutput: 4096,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2024-10-28',
- type: 'chat',
- },
- {
- abilities: {
- vision: true,
- },
- config: {
- deploymentName: 'doubao-vision-lite-32k-241015',
- },
- contextWindowTokens: 32_768,
- description:
- 'Doubao-vision is a multimodal model from Doubao with strong image understanding and reasoning plus accurate instruction following. It performs well on image-text extraction and image-based reasoning tasks, enabling more complex and broader visual QA scenarios.',
- displayName: 'Doubao Vision Lite 32k',
- id: 'doubao-vision-lite-32k',
- maxOutput: 4096,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2024-10-15',
- type: 'chat',
- },
- {
- config: {
- deploymentName: 'doubao-lite-4k-character-240828',
- },
- contextWindowTokens: 4096,
- description:
- 'Ultra-fast response with better value, offering more flexible choices across scenarios. Supports reasoning and fine-tuning with a 4k context window.',
- displayName: 'Doubao Lite 4k',
- id: 'doubao-lite-4k',
- maxOutput: 4096,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
config: {
deploymentName: 'doubao-lite-32k-240828',
@@ -1196,25 +1085,6 @@ const doubaoChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- config: {
- deploymentName: 'doubao-lite-128k-240828',
- },
- contextWindowTokens: 128_000,
- description:
- 'Ultra-fast response with better value, offering more flexible choices across scenarios. Supports reasoning and fine-tuning with a 128k context window.',
- displayName: 'Doubao Lite 128k',
- id: 'doubao-lite-128k',
- maxOutput: 4096,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
config: {
deploymentName: 'doubao-pro-32k-241215',
@@ -1234,25 +1104,6 @@ const doubaoChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- config: {
- deploymentName: 'doubao-pro-256k-241115',
- },
- contextWindowTokens: 256_000,
- description:
- 'The best-performing flagship model for complex tasks, with strong results in reference QA, summarization, creation, text classification, and roleplay. Supports reasoning and fine-tuning with a 256k context window.',
- displayName: 'Doubao Pro 256k',
- id: 'doubao-pro-256k',
- maxOutput: 4096,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 9, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
];
const volcengineImageModels: AIImageModelCard[] = [
diff --git a/packages/model-bank/src/const/modelProvider.ts b/packages/model-bank/src/const/modelProvider.ts
index dea2afade19..de7cee976a4 100644
--- a/packages/model-bank/src/const/modelProvider.ts
+++ b/packages/model-bank/src/const/modelProvider.ts
@@ -54,6 +54,7 @@ export enum ModelProvider {
SiliconCloud = 'siliconcloud',
Spark = 'spark',
Stepfun = 'stepfun',
+ Straico = 'straico',
Taichu = 'taichu',
TencentCloud = 'tencentcloud',
TogetherAI = 'togetherai',
diff --git a/packages/model-bank/src/modelProviders/index.ts b/packages/model-bank/src/modelProviders/index.ts
index e5f63d622b4..7c3ef3d4017 100644
--- a/packages/model-bank/src/modelProviders/index.ts
+++ b/packages/model-bank/src/modelProviders/index.ts
@@ -57,6 +57,7 @@ import SenseNovaProvider from './sensenova';
import SiliconCloudProvider from './siliconcloud';
import SparkProvider from './spark';
import StepfunProvider from './stepfun';
+import StraicoProvider from './straico';
import TaichuProvider from './taichu';
import TencentcloudProvider from './tencentcloud';
import TogetherAIProvider from './togetherai';
@@ -201,6 +202,7 @@ export const DEFAULT_MODEL_PROVIDER_LIST = [
VercelAIGatewayProvider,
CerebrasProvider,
ZenMuxProvider,
+ StraicoProvider,
XiaomiMiMoProvider,
];
@@ -268,6 +270,7 @@ export { default as SenseNovaProviderCard } from './sensenova';
export { default as SiliconCloudProviderCard } from './siliconcloud';
export { default as SparkProviderCard } from './spark';
export { default as StepfunProviderCard } from './stepfun';
+export { default as StraicoProviderCard } from './straico';
export { default as TaichuProviderCard } from './taichu';
export { default as TencentCloudProviderCard } from './tencentcloud';
export { default as TogetherAIProviderCard } from './togetherai';
diff --git a/packages/model-bank/src/modelProviders/straico.ts b/packages/model-bank/src/modelProviders/straico.ts
new file mode 100644
index 00000000000..b0de7460067
--- /dev/null
+++ b/packages/model-bank/src/modelProviders/straico.ts
@@ -0,0 +1,18 @@
+import { type ModelProviderCard } from '@/types/llm';
+
+const Straico: ModelProviderCard = {
+ chatModels: [],
+ checkModel: 'microsoft/phi-4',
+ description:
+ 'Straico simplifies AI integration by providing a unified workspace that brings together top text, image, and audio generative AI models, empowering marketers, entrepreneurs, and enthusiasts with seamless access to diverse AI tools.',
+ id: 'straico',
+ modelsUrl: 'https://straico.com/multimodel/',
+ name: 'Straico',
+ settings: {
+ sdkType: 'openai',
+ showModelFetcher: true,
+ },
+ url: 'https://straico.com',
+};
+
+export default Straico;
diff --git a/packages/model-runtime/src/index.ts b/packages/model-runtime/src/index.ts
index 2ca028a8bba..2b545d49838 100644
--- a/packages/model-runtime/src/index.ts
+++ b/packages/model-runtime/src/index.ts
@@ -31,6 +31,7 @@ export { LobeOpenRouterAI } from './providers/openrouter';
export { LobePerplexityAI } from './providers/perplexity';
export { LobeQwenAI } from './providers/qwen';
export { LobeStepfunAI } from './providers/stepfun';
+export { LobeStraicoAI } from './providers/straico';
export { LobeTogetherAI } from './providers/togetherai';
export { LobeVolcengineAI } from './providers/volcengine';
export { LobeXiaomiMiMoAI } from './providers/xiaomimimo';
diff --git a/packages/model-runtime/src/providers/straico/index.ts b/packages/model-runtime/src/providers/straico/index.ts
new file mode 100644
index 00000000000..9ff14166fb1
--- /dev/null
+++ b/packages/model-runtime/src/providers/straico/index.ts
@@ -0,0 +1,96 @@
+import { ModelProvider } from 'model-bank';
+
+import { createOpenAICompatibleRuntime } from '../../core/openaiCompatibleFactory';
+import { processMultiProviderModelList } from '../../utils/modelParse';
+import { StraicoChatModel, StraicoModelsResponse } from './type';
+
+const formatPrice = (pricing?: { coins?: number; words?: number }) => {
+ if (!pricing || typeof pricing.coins !== 'number' || typeof pricing.words !== 'number') {
+ return undefined;
+ }
+ // Convert coins per N words to cost per 1M tokens
+ // Assuming 1 word ≈ 1.33 tokens (standard approximation)
+ // Note: 40000 coin = $20 (coins are not dollars)
+ const tokensPerWord = 1.33;
+ const tokensPerUnit = pricing.words * tokensPerWord;
+ const coinsToUSD = pricing.coins / 2000; // Convert coins (cents) to USD
+ const costPerMillionTokens = (coinsToUSD / tokensPerUnit) * 1_000_000;
+ return Number(costPerMillionTokens.toPrecision(5));
+};
+
+const cleanModelName = (name: string): string => {
+ // Remove provider prefixes like "xAI: ", "OpenAI: ", etc.
+ return name.replace(/^[^:]+:\s*/, '');
+};
+
+export const LobeStraicoAI = createOpenAICompatibleRuntime({
+ baseURL: 'https://api.straico.com/v0',
+ chatCompletion: {
+ handlePayload: (payload) => {
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, unused-imports/no-unused-vars
+ const { model, ...rest } = payload;
+
+ return {
+ ...rest,
+ model,
+ stream: false,
+ } as any;
+ },
+ },
+ debug: {
+ chatCompletion: () => process.env.DEBUG_STRAICO_CHAT_COMPLETION === '1',
+ },
+ models: async ({ client }) => {
+ try {
+ const url = 'https://api.straico.com/v1/models';
+ const response = await fetch(url, {
+ headers: {
+ Authorization: `Bearer ${client.apiKey}`,
+ },
+ method: 'GET',
+ });
+
+ if (!response.ok) {
+ throw new Error(`HTTP ${response.status}: ${response.statusText}`);
+ }
+
+ const json: StraicoModelsResponse = await response.json();
+ const chatModels: StraicoChatModel[] = json?.data?.chat || []; // 另有 audio, image 模型待适配
+
+ // Transform Straico models to standardized format
+ const formattedModels = chatModels.map((model) => {
+ const inputPrice = formatPrice(model.pricing);
+ const outputPrice = inputPrice; // Straico uses same price for input/output
+
+ return {
+ contextWindowTokens: model.word_limit
+ ? Math.floor(model.word_limit * 1.33) // Convert words to tokens
+ : undefined,
+ description: model.metadata?.pros?.join('; ') || '',
+ displayName: cleanModelName(model.name),
+ enabled: model.enabled ?? false,
+ functionCall: false,
+ id: model.model,
+ maxOutput: model.max_output,
+ pricing: inputPrice
+ ? {
+ input: inputPrice,
+ output: outputPrice,
+ }
+ : undefined,
+ reasoning: model.metadata?.applications?.includes('Reasoning') ?? false,
+ vision: model.metadata?.features?.includes('Image input') ?? false,
+ };
+ });
+
+ return await processMultiProviderModelList(formattedModels, 'straico');
+ } catch (error) {
+ console.warn(
+ 'Failed to fetch Straico models. Please ensure your Straico API key is valid:',
+ error,
+ );
+ return [];
+ }
+ },
+ provider: ModelProvider.Straico,
+});
diff --git a/packages/model-runtime/src/providers/straico/type.ts b/packages/model-runtime/src/providers/straico/type.ts
new file mode 100644
index 00000000000..e3afe914cc9
--- /dev/null
+++ b/packages/model-runtime/src/providers/straico/type.ts
@@ -0,0 +1,45 @@
+export interface StraicoModelPricing {
+ base_cost?: number;
+ coins?: number;
+ per_word_cost?: number;
+ words?: number;
+}
+
+export interface StraicoAudioModel {
+ _id: string;
+ enabled: boolean;
+ model: string;
+ name: string;
+ pricing: StraicoModelPricing;
+ provider: string;
+}
+
+export interface StraicoModelMetadata {
+ applications?: string[];
+ capabilities?: string[];
+ cons?: string[];
+ editors_choice_level?: number;
+ editors_link?: string;
+ features?: string[];
+ icon?: string;
+ other?: any[];
+ pros?: string[];
+}
+
+export interface StraicoChatModel {
+ _id?: string;
+ enabled?: boolean;
+ max_output?: number;
+ metadata?: StraicoModelMetadata;
+ model: string;
+ name: string;
+ pricing: StraicoModelPricing;
+ word_limit?: number;
+}
+
+export interface StraicoModelsResponse {
+ data: {
+ audio?: StraicoAudioModel[];
+ chat?: StraicoChatModel[];
+ };
+}
diff --git a/packages/model-runtime/src/runtimeMap.ts b/packages/model-runtime/src/runtimeMap.ts
index 3f068fd319d..3577be1a3c6 100644
--- a/packages/model-runtime/src/runtimeMap.ts
+++ b/packages/model-runtime/src/runtimeMap.ts
@@ -53,6 +53,7 @@ import { LobeSenseNovaAI } from './providers/sensenova';
import { LobeSiliconCloudAI } from './providers/siliconcloud';
import { LobeSparkAI } from './providers/spark';
import { LobeStepfunAI } from './providers/stepfun';
+import { LobeStraicoAI } from './providers/straico';
import { LobeTaichuAI } from './providers/taichu';
import { LobeTencentCloudAI } from './providers/tencentcloud';
import { LobeTogetherAI } from './providers/togetherai';
@@ -126,6 +127,7 @@ export const providerRuntimeMap = {
siliconcloud: LobeSiliconCloudAI,
spark: LobeSparkAI,
stepfun: LobeStepfunAI,
+ straico: LobeStraicoAI,
taichu: LobeTaichuAI,
tencentcloud: LobeTencentCloudAI,
togetherai: LobeTogetherAI,
diff --git a/src/envs/llm.ts b/src/envs/llm.ts
index 452eb7e0325..0d65b031796 100644
--- a/src/envs/llm.ts
+++ b/src/envs/llm.ts
@@ -215,6 +215,9 @@ export const getLLMConfig = () => {
ENABLED_ZENMUX: z.boolean(),
ZENMUX_API_KEY: z.string().optional(),
+ ENABLED_STRAICO: z.boolean(),
+ STRAICO_API_KEY: z.string().optional(),
+
ENABLED_LOBEHUB: z.boolean(),
ENABLED_XIAOMIMIMO: z.boolean(),
@@ -432,6 +435,9 @@ export const getLLMConfig = () => {
ENABLED_ZENMUX: !!process.env.ZENMUX_API_KEY,
ZENMUX_API_KEY: process.env.ZENMUX_API_KEY,
+ ENABLED_STRAICO: !!process.env.STRAICO_API_KEY,
+ STRAICO_API_KEY: process.env.STRAICO_API_KEY,
+
ENABLED_LOBEHUB: !!process.env.ENABLED_LOBEHUB,
ENABLED_XIAOMIMIMO: !!process.env.XIAOMIMIMO_API_KEY,