IFM Documentation
Docs for foundation models from the Institute of Foundation Models (IFM) at MBZUAI — K2 Horizon, Jais 3, and Jais ASR — served through an OpenAI-compatible API at https://api.ifm.ai/v1.
Every page below is plain Markdown. Each page is also served as static HTML at `https://docs.ifm.ai/<slug>/`. The full documentation in one file: [llms-full.txt](https://docs.ifm.ai/llms-full.txt).
Get Started
- Overview: Model portfolio, featured models, and where to start.
- Quickstart: Create an API key, set the base URL, and make your first chat completion.
Models
- Model overview: Every IFM model with context length, languages, and hosted-API availability.
- K2 Horizon: Frontier agentic reasoning series; six open-weight sizes, 375B served on the API.
- Jais 3: Arabic-specialized agentic model on the K2 Horizon architecture; IFM/Jais-3-MoVA-36B-A4B on the API.
- Jais ASR: Arabic speech recognition with dialect ID, code-switching, and diacritization.
- K2 V2: Fully-open 70B research models (deprecated on the API; weights remain).
- Jais 2: Arabic–English chat models, 70B and 8B (weights only).
Capabilities
- Reasoning: reasoning_effort levels, reasoning_content, and per-family support.
- Function calling: OpenAI-schema tools, the tool loop, and tool_choice.
- Streaming: SSE deltas for content, reasoning, and tool calls.
- Structured output: JSON mode and JSON Schema via response_format.
- Multi-turn conversations: Replaying assistant turns and reasoning_content verbatim.
- Session routing: X-Session-ID for KV-cache affinity.
API Reference
- Chat completions API: POST /v1/chat/completions — parameters and response schema.
- Transcriptions API: POST /v1/audio/transcriptions — multipart request, language codes, response, formats.
- Limits: Daily token cap per key and rate-limit headers.
- Errors: Status codes, error types, and retry guidance.
Deploy
- Deploy K2 Horizon: Compare SGLang, vLLM, llama.cpp, and Ollama, with links to each deployment guide.
- Deploy Jais 3: Self-host with vLLM.
Harness
- OpenCode: Configure OpenCode with an IFM provider.
- OpenClaw: Register IFM as an OpenClaw model provider.
- Pi: Configure the Pi coding agent for IFM.
- Hermes: Install and configure Hermes with IFM models.
Lifecycle
- Migration to K2 Horizon: Moving from K2 V2: model name, context, reasoning replay, tool formats.
- Deprecation: Retired models and base URLs with replacements and dates.