How FIM One Uses Models
FIM One has three model roles:
Fast and Reasoning fall back to General if not configured. For production deployments, splitting into at least two models (General + Fast) gives the best cost/quality balance.
These roles can be configured via ENV variables or through the admin UI’s Model Groups feature, which allows one-click switching between model sets. See Model Management for the full admin UI guide.
빠른 선택 매트릭스
이 표는 FIM One이 지원하는 전체 제공업체 목록이 아니라 권장하는 조합을 보여 줍니다. xAI(Grok), ByteDance Doubao, Mistral 및 모든 OpenAI 호환 릴레이도 사용할 수 있습니다. 전체 목록과 각 제공업체의 라우팅 방식을 확인하려면 제공업체 기능 매트릭스를 참조하세요.
구조화된 출력 호환성
FIM One의 DAG 플래너는 모델이 유효한 구조화된 JSON을 반환해야 합니다. 내부적으로 다음 세 가지 추출 수준을 순서대로 시도합니다:- Native Function Calling — 도구 호출 API를 통해 스키마와 일치하는 JSON 출력을 강제합니다. 가장 안정적입니다.
- JSON Mode —
response_format: json_object를 요청합니다. 유효한 JSON을 보장하지만 스키마 준수를 강제하지는 않습니다. - Plain Text Extraction — 마지막 수단으로 자유 형식 텍스트에서 JSON을 파싱합니다.
tool_choice를 사용한 네이티브 FC)을 지원하는 모델이 최고의 플래닝 안정성을 제공합니다. 모델이 Level 2에만 도달하면 출력 품질은 프롬프트 지시를 따르는 정도에 따라 달라집니다. 약한 모델은 예상된 구조와 일치하지 않는 유효한 JSON을 생성할 수 있습니다.
이 표는 선택을 돕기 위한 것입니다. 각 제공자가 수용하는
tool_choice 상태와 거부될 때 FIM One이 수행하는 작업을 포함한 권위 있는 코드 기반 버전은 제공자 기능 매트릭스를 참조하세요.
사고 / 추론 호환성
다양한 제공자들은 “사고”(연쇄 추론)를 근본적으로 다른 방식으로 구현합니다. 이는 사고 모드가 도구 호출과 충돌할 수 있고, 제공자에 따라 출력이 다른 위치에 나타나기 때문에 중요합니다. FIM One은 이 모든 것을 투명하게 처리합니다 — 이 표는 내부에서 무엇이 일어나고 있는지 이해하는 데 도움이 됩니다.주요 개념
- 선택적 활성화 — 사고 기능은 기본적으로 비활성화되어 있으며, API 매개변수(예:
reasoning_effort)를 통해 활성화합니다. 호출별로 선택적으로 비활성화할 수 있습니다. - 항상 활성화 — 모델이 항상 사고합니다. 이를 끌 수 있는 API 매개변수가 없습니다. 사고 기능을 피하려면 사고하지 않는 모델 변형으로 전환해야 합니다.
- 모델 수준 — 사고는 매개변수가 아닌 선택한 모델 ID(예:
deepseek-reasonervsdeepseek-chat)에 의해 결정됩니다.
호환성 매트릭스
이 표 뒤의 제공자별 세부 정보(각
effort 수준이 어떻게 변환되는지 및 추론이 이후 턴에서 재생되는지 여부 포함)는 제공자 기능 매트릭스의 표 C에 있습니다.
FIM One이 각 경우를 처리하는 방식
API 수준reasoning_content (Claude, DeepSeek): 추론 필드는 API 응답에서 직접 읽어지며 UI의 Reasoning 패널에 표시됩니다. 후처리가 필요하지 않습니다.
콘텐츠의 <think> 태그 (MiniMax, Qwen, QwQ 및 기타 오픈소스 파생 모델): FIM One은 콘텐츠 필드에서 <think>...</think> 태그를 자동으로 제거하고 사고 텍스트를 Reasoning 패널로 재라우팅합니다. 이는 스트리밍 및 비스트리밍 응답 모두에서 작동합니다.
강제 FC + 사고 충돌은 제공자별로 발생하며, 사고 모델의 일반적인 속성이 아닙니다. Claude는 이 조합을 거부하지만 사고는 선택 사항이므로, FIM One은 reasoning_effort=None을 전달하여 해당 호출에 대해 사고를 끄고 네이티브 함수 호출을 진행합니다. Kimi도 이를 거부하며, 사고는 매개변수가 아닌 모델 ID로 선택되므로, 여기서의 해결책은 사고 모델에 대해 Native Function Calling을 비활성화하는 것입니다. MiniMax는 모든 호출에서 사고하며 강제 함수 호출을 어쨌든 수락하므로, 이에 적용되는 해결책이 없습니다.
폴백 체인: 강제 함수 호출이 어떤 이유로든 실패하면, FIM One은 자동으로 폴백합니다: 네이티브 FC → JSON 모드 → 일반 텍스트 추출. 이 3단계 접근 방식은 도구 호출 지원이 부분적인 제공자에서도 계획이 작동하도록 보장합니다.
항상 사고하는 모델(MiniMax M2.7,
deepseek-reasoner)을 Main LLM으로 사용하는 경우, 사고 출력이 모든 에이전트 반복의 Reasoning 패널에 나타납니다. 이는 정상입니다 — 기능에 영향을 주지 않으며, 모델의 추론 과정을 볼 수 있습니다.제공자 세부 정보
OpenAI
The most battle-tested option. OpenAI models have the best native function calling (tool-calling) support, which directly impacts agent reliability. The GPT-5 family (August 2025+) is a major generational leap over GPT-4. Recommended models:- Main:
gpt-5.4(latest flagship, Mar 2026 — 1M+ context, computer use) oro3(best reasoning accuracy) - Fast:
gpt-5.4-mini($0.75/$4.50 per MTok) orgpt-5.4-nano(cheapest at $0.20/$1.25 per MTok) - Budget Fast:
gpt-5-mini($0.25/$2.00) andgpt-5-nano($0.05/$0.40) remain available at lower prices - Legacy:
gpt-4.1(still in API, 1M context, good for coding)
LLM_REASONING_EFFORT=medium — works natively with o-series and GPT-5.x models. GPT-5.4 supports reasoning_effort with levels none, low, medium, high, xhigh. The o-series requires max_completion_tokens instead of max_tokens, which LiteLLM handles automatically. Note: /v1/chat/completions rejects GPT-5.x requests that combine tools with reasoning, so FIM One talks the Responses API directly for GPT-5.x, where both work together. That path also carries each turn’s encrypted reasoning into the next one, so an agent building a multi-step answer keeps what it already worked out instead of re-deriving it at every tool call. Endpoints without a /v1/responses route fall back to chat completions with an explicit reasoning_effort: "none" during agent tool-use steps, and FIM_GPT5_RESPONSES_MODE can force either fallback by hand. Other model families on OpenAI-compatible endpoints stay on chat completions: they gain nothing from Responses, and proxy shims for it can badly buffer streaming. GPT-5 and later accept only the default temperature; FIM One removes any other value from the request and sends max_completion_tokens instead of max_tokens.
Anthropic (Claude)
Claude excels at nuanced reasoning and complex multi-step tasks. FIM One connects via LiteLLM, which routes Anthropic models through their native API automatically. The current generation is Claude 4.6 (February 2026). Recommended models:- Main:
claude-sonnet-4-6(best balance of capability and cost — $3/$15 per MTok) - Fast:
claude-haiku-4-5(fast and cheap — $1/$5 per MTok) - Premium:
claude-opus-4-6(most capable, 128K max output — $5/$25 per MTok)
https://api.anthropic.com/v1/
Opus 4.6 and Sonnet 4.6 have a 1M context window (GA since March 13, 2026 — no beta header needed). Haiku 4.5 has a 200K context window.
Reasoning: Set LLM_REASONING_EFFORT=medium. LiteLLM routes Anthropic models through the native API, so reasoning_content (extended thinking) is fully returned and visible in the UI “thinking” step. Claude 4.6 and newer use Adaptive Thinking (thinking: {type: "adaptive"} plus output_config.effort) in place of a manual budget_tokens, which FIM One emits directly rather than relying on LiteLLM’s mapping. Anthropic requires temperature=1 while thinking is active, and the system enforces that for you: with thinking on, Claude 4.5 and older are sent temperature=1.0, and adaptive-thinking models (4.6 and newer) have temperature removed from the request; models that reject sampling parameters outright have it removed whether or not thinking is on. Do not set LLM_TEMPERATURE=1 by hand. See Extended Thinking for details.
Google Gemini
Gemini 모델은 Google의 OpenAI 호환 엔드포인트를 통해 경쟁력 있는 가격으로 강력한 성능을 제공합니다. 3.x 세대(2025년 말 이후)는 큰 도약입니다 — Gemini 3 Flash는 2.5 Pro를 능가하면서 3배 더 빠릅니다. 참고:gemini-3-pro-preview는 2026년 3월 9일에 종료되었습니다 — 대신 gemini-3.1-pro-preview를 사용하세요.
권장 모델:
- 안정화(GA):
gemini-2.5-pro(메인) +gemini-2.5-flash(빠름) — 프로덕션 준비 완료 - 최신(미리보기):
gemini-3.1-pro-preview(메인) +gemini-3-flash-preview(빠름) +gemini-3.1-flash-lite-preview(예산 빠름) — 최고 성능, 하지만 미리보기 상태
https://generativelanguage.googleapis.com/v1beta/openai/
추론: reasoning_effort는 호환성 엔드포인트에서 지원됩니다 — LLM_REASONING_EFFORT=medium을 설정하면 기본적으로 작동합니다.
DeepSeek
DeepSeek는 시장에서 최고의 비용/성능 비율을 제공합니다. V3.2(2025년 12월)는 채팅과 추론 라인을 단일 모델로 통합했으며, 매우 저렴한 가격을 제공합니다. 모델 ID (모두 V3.2로 지원됨):deepseek-chat— 범용 (비사고 모드)deepseek-reasoner— 사고의 연쇄 추론 모드,reasoning_content반환
https://api.deepseek.com
가격: MTok당 $0.28/$0.42 (캐시 히트: $0.028) — 지금까지 가장 저렴한 최첨단 API입니다.
출력 제한: deepseek-chat 최대 출력은 8K 토큰입니다(max_tokens를 통해 명시적으로 설정해야 함). deepseek-reasoner 최대 출력은 64K 토큰입니다(사고의 연쇄 포함).
V4 예상 2026년 4월: 1M 컨텍스트 윈도우를 가진 조 단위 매개변수 멀티모달 모델. 출시 시 새로운 모델 ID를 기대하세요.
중국 국내 모델
모든 주요 중국 모델 제공업체는 OpenAI 호환 엔드포인트를 제공합니다. 이들은 중국어 작업에 특히 강력하며 경쟁력 있는 로컬 가격을 제공합니다.Qwen / 通义千问 (Alibaba Cloud)
Qwen 3.5 (2026년 2월)는 최신 세대입니다 — 397B MoE 플래그십은 MMLU-Pro에서 GPT-5.2를 능가합니다. 가장 강력한 중국어 지원과 가장 저렴한 프론티어급 가격(~$0.11/MTok 입력)을 제공합니다.- Base URL (중국):
https://dashscope.aliyuncs.com/compatible-mode/v1 - Base URL (글로벌):
https://dashscope-intl.aliyuncs.com/compatible-mode/v1 - 메인:
qwen3.5-plus(플래그십, 1M 컨텍스트, $0.11/$0.66 per MTok) 또는qwen3-max(256K, 가장 강력) - 빠른 속도:
qwen3.5-flash($0.055/$0.22 per MTok) 또는qwen-turbo($0.04/$0.08 per MTok) - 추론:
enable_thinking: true파라미터가 있는qwen3-max(별도의qwen3-max-thinking모델 ID는 없음)
ChatGLM / 智谱
GLM-4.7 및 GLM-5 (2026)는 최신 모델입니다. GLM-5는 코딩/에이전트 작업에서 Claude Opus 수준에 접근하는 745B MoE 플래그십입니다.- Base URL (국내):
https://open.bigmodel.cn/api/paas/v4 - Base URL (Z.AI 국제):
https://api.z.ai/api/paas/v4 - Main:
glm-4.7(강력한 코딩, Z.AI에서 $0.60/$2.20) - Fast:
glm-4.7-flash(무료 티어!) 또는glm-4.7-flashx($0.07/$0.40, 높은 처리량) - Reasoning:
glm-5(745B MoE 플래그십, $1.00/$3.20)
tool_choice는 지원되지 않습니다 — "auto"만 작동합니다.
MiniMax
MiniMax M2.7 (2026년 3월 18일)는 최신 모델이며, 오픈 가중치이고 SWE-Bench에서 80.2%의 점수를 획득했습니다. M2.5는 빠르고 저렴한 옵션으로 계속 사용 가능합니다. MiniMax는 다양한 지역을 위해 두 개의 별도 API 엔드포인트를 제공합니다:- Base URL (Global/해외판):
https://api.minimax.io/v1— 중국 본토 외 사용자용 - Base URL (China/국내판):
https://api.minimaxi.com/v1— 중국 본토 사용자용 (참고:minimaxi에 추가i포함) - Main:
MiniMax-M2.7 - Fast:
MiniMax-M2.5 - Speed:
MiniMax-M2.7-highspeed(2배 비용, 낮은 지연시간)
Kimi / 월지암면 (Moonshot)
Kimi K2.5 (2026년 1월)는 256K 컨텍스트를 가지고 있으며 강력한 코딩 성능(오픈소스 모델 중 SWE-Bench 76.8%)을 제공합니다.- Base URL (Global):
https://api.moonshot.ai/v1 - Base URL (China):
https://api.moonshot.cn/v1 - Main:
kimi-k2.5 - Fast:
kimi-k2(non-thinking, function calling works) - Reasoning:
kimi-k2-thinking($0.47/$2.00 per MTok)
tool_choice는 thinking 모드가 꺼져 있을 때만 작동합니다. thinking이 활성화되면 "auto"만 지원됩니다.
로컬 모델 (Ollama)
자신의 하드웨어에서 모델을 완전히 실행하세요 — API 키가 필요 없고, 완전히 오프라인입니다. Ollama는 기본적으로 OpenAI 호환 엔드포인트를 제공합니다. 오픈소스 환경이 극적으로 변했습니다 — Qwen 3.5, Llama 4, GPT-OSS (OpenAI의 첫 오픈 가중치 모델)이 모두 사용 가능합니다. 기본 URL:http://localhost:11434/v1
VRAM별 권장 모델:
도구 호출에 최적: Qwen 3/3.5 (32B+), GLM-4.7, GPT-OSS, Mistral — 이들은 명시적 함수 호출 학습을 받았습니다. 14B+ 파라미터를 가진 모델이 안정적인 도구 호출의 최소 요구사항이며, 32B+ 이상이 강력히 권장됩니다.
제3자 릴레이 플랫폼
많은 사용자가 단일 릴레이(프록시) 서비스를 통해 여러 모델 제공자에 액세스합니다. FIM One은 URL 경로 패턴을 기반으로 올바른 API 프로토콜을 자동으로 감지합니다 —LLM_BASE_URL을 입력하기만 하면 작동합니다.
작동 방식
기본 URL이 타사 릴레이를 가리킬 때, FIM One은 URL 경로를 검사하여 사용할 프로토콜을 결정합니다:
해결 순서: 명시적 DB 제공자 필드 > 도메인 일치 (공식 API) > URL 경로 힌트 (릴레이 플랫폼) > OpenAI 호환 폴백.
예제: 하나의 릴레이, 세 가지 프로토콜
단일 릴레이 계정으로 기본 URL 경로를 변경하기만 하면 다양한 공급자에 액세스할 수 있습니다:단계별: 경로 감지 작동 방식
릴레이를 구성할 때 내부적으로 어떤 일이 발생하는지 보여주는 구체적인 예시입니다:- FIM One이 URL 경로에서
/claude를 감지 → Anthropic 네이티브 프로토콜 감지 - 모델이 LiteLLM 라우팅을 위해
anthropic/claude-sonnet-4-6으로 접두사 지정 - 요청이 Anthropic의
/v1/messages형식을x-api-key인증 헤더와 함께 사용 reasoning_effort=medium이 Anthropic의 네이티브thinking파라미터로 변환됨 (OpenAI의reasoning_effort가 아님)
Why This Matters
- Anthropic native endpoint gives you proper
reasoning_contentsupport (extended thinking visible in the UI), correct tool-calling format, andx-api-keyauthentication — features lost when using OpenAI-compatible translation. - Google native endpoint gives you native Gemini parameters and
x-goog-api-keyauthentication. - OpenAI compatible is the universal fallback and works with any relay, but provider-specific features (like extended thinking output) may be unavailable.
If your relay platform uses non-standard path conventions (e.g., no
/claude or /anthropic in the URL), FIM One falls back to OpenAI compatible protocol — which works for most use cases. For full native protocol support, use a base URL whose host or path identifies the protocol (/claude, /anthropic, /gemini); the admin model UI has no protocol selector.Relays are best-effort. FIM One’s documented behaviour is guaranteed for first-party endpoints, meaning OpenAI, Anthropic, Google, and other vendors serving their own models directly. Relays work and are widely used, including for models that are only reachable that way, but what a relay does to a request is outside our control, so they carry no such guarantee. Nothing is blocked by hostname: capability is probed per endpoint, and unsupported behaviour falls back on its own. Before reporting a model-layer bug, reproduce it against the first-party endpoint.
구성 전략
Main vs Fast: When to Split
- Split when your main model is expensive or slow (e.g.,
gpt-5.4+gpt-5.4-nano). Tool-decision iterations, compaction, and the DAG steps the planner marksfastrun on the fast model — using a cheaper one saves significant cost. - Same model when your model is already cheap (e.g.,
deepseek-chatfor both). The overhead of managing two models isn’t worth it.
추론을 활성화하는 시기
- 활성화: 복잡한 분석 작업, 다단계 계획, 신중한 판단이 필요한 작업
- 비활성화 (기본값): 일상적인 작업, 간단한 Q&A, 비용에 민감한 배포
- 추론은 일반적으로 요청당 비용을 2-5배 증가시킵니다 —
medium수준의 노력이 좋은 시작점입니다
컨텍스트 윈도우 크기 조정
LLM_CONTEXT_SIZE를 모델의 실제 윈도우와 일치하도록 설정하세요:
로컬 모델의 경우
LLM_CONTEXT_SIZE와 LLM_MAX_OUTPUT_TOKENS를 명시적으로 설정하세요. 기본값은 로컬 모델이 지원할 수 없는 클라우드 규모의 컨텍스트 윈도우를 가정합니다.