Files
CatoandClaude Opus 5 a6906851d5 refactor(content): one markdown pipeline — bip-kit typed blocks replace MDX and two GitHub content repos (#183)
The blog and the Knowledge Center each fetched their markdown from a
SEPARATE GitHub repository at request time (g-but/botsmann-blog-content,
g-but/botsmann-knowledge-content) and rendered it through next-mdx-remote
with a hand-rolled component map per surface. Two maps for one markdown
vocabulary, already drifted: the blog slugged headings with rehype-slug, the
guides with a different inline regex; the guides highlighted code, the blog
did not; each had its own Callout. The content itself lived where nobody
reviewed it, behind a GitHub handle rename that now answers only via a 301.

Both surfaces now read content/*.md from this repo and render through
bip-kit's typed-block parser and reference renderer:

- content/blog/*.md (5 posts) and content/knowledge/**/*.md (10 guides) are
  vendered verbatim from the two content repos — word-level parity verified
  across all 15 files, zero words lost. Post images moved to public/blog/.
- The three app/blog/<slug>/page.mdx files came along as drafts. They were
  never routes: `page.mdx` only serves as a page when pageExtensions includes
  mdx, and this app never configured that, so all three were dead files. They
  are committed with `published: false` rather than deleted.
- lib/longform/ is the one pipeline both routes call: a fence-aware
  normalizer (`# ` → `## `, `*`/`+` bullets → `-`, nested items flattened —
  the guides carry 74 indented items and ~130 shell-comment `#` lines inside
  fences that a naive normalizer would have corrupted), then parse → blocks +
  TOC + reading time.
- setHighlighterLoader(() => import('shiki')) is registered at module scope.
  This app builds `output: standalone`, where bip-kit's zero-config shiki
  import is invisible to Next's file tracer — without the explicit literal,
  production ships unhighlighted while dev looks right.
- The TOC is derived from the same parse that renders the page, so a TOC
  anchor can no longer point at a heading id built by a different slug rule.
  types/knowledge.ts loses TableOfContentsItem accordingly.

Retired: next-mdx-remote, remark-gfm, rehype-slug, rehype-autolink-headings,
gray-matter (deps), components/blog/{Server,Client}MDXContent + MDXComponents,
components/knowledge/{Callout,CodeBlock,TableOfContents}. next.config drops
the raw.githubusercontent image pattern and the GitHub hosts from CSP
connect-src, and points frame-src at the privacy video players bip-kit uses.

Article typography now flows from the token SSOT: lib/longform/longform.css
maps globals.css onto bip-kit's --bp-* contract, replacing ~40 hardcoded
Tailwind greys. The mapping covers every --bp-* colour and pins the article
light, because Botsmann has no dark theme anywhere (zero `dark:` utilities,
no theme provider, light-only chrome) — letting bip-kit's dark defaults
through would put a dark article inside a white page. When the site grows a
dark tier, this file follows it by changing values in globals.css only.

tests/__tests__/lib/longform-content.test.ts walks every content file through
the real pipeline: committed content is bip-kit's trust boundary and a
malformed chart/stats fence throws at parse time, which without a test would
surface as a 500 on the live page.


Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 14:24:40 +00:00

9.1 KiB

title, description, difficulty, readTime, author, publishedAt, tags, prerequisites, category, published
title description difficulty readTime author publishedAt tags prerequisites category published
AI Model Comparison: Complete Provider Guide In-depth comparison of OpenAI, Anthropic, Google, Mistral, and open source models with pricing, benchmarks, and recommendations Intermediate 25 min Botsmann Team 2026-01-12
comparison
openai
anthropic
google
mistral
llama
pricing
Basic understanding of AI/LLMs
infrastructure true

AI Model Comparison

A comprehensive comparison of all major AI model providers to help you make informed infrastructure decisions.

Quick Comparison Table

Provider Top Model Quality Speed Price Self-Host
OpenAI GPT-4o ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ $$$ ❌
Anthropic Claude Opus 4 ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐ ❌
Google Gemini 2.0 Pro ⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ $$ ❌
Mistral Large ⭐⭐⭐⭐ ⭐⭐⭐⭐ $$ Partial
Meta Llama 3.1 405B ⭐⭐⭐⭐ ⭐⭐⭐ Free ✅

OpenAI

Company Profile

  • Headquarters: San Francisco, CA
  • Founded: 2015
  • Key Investors: Microsoft ($13B+)
  • API Endpoint: api.openai.com

Current Models (January 2026)

Model Context Input Output MMLU HumanEval
GPT-4o 128K $2.50/1M $10/1M 88.7% 90.2%
GPT-4o mini 128K $0.15/1M $0.60/1M 82.0% 87.0%
o1 200K $15/1M $60/1M 91.8% 94.8%
o1-mini 128K $3/1M $12/1M 85.2% 92.4%

Strengths

  • Industry Leader: Most mature API, extensive documentation
  • Speed: Fastest inference among frontier models
  • Vision: Native image understanding in GPT-4o
  • Ecosystem: Largest third-party integration ecosystem
  • Fine-tuning: Available for GPT-4o mini

Weaknesses

  • Pricing: Premium pricing for top models
  • Data Policy: Training on API data (opt-out required)
  • Rate Limits: Strict limits on o1 models
  • Transparency: Less open about model details

Best Use Cases

✅ Production applications requiring reliability ✅ Vision and multimodal tasks ✅ General-purpose assistants ✅ Applications needing fastest response

Code Example

import OpenAI from 'openai';

const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });

const response = await openai.chat.completions.create({
  model: 'gpt-4o',
  messages: [
    { role: 'system', content: 'You are a helpful assistant.' },
    { role: 'user', content: 'Hello!' },
  ],
});

Anthropic

Company Profile

  • Headquarters: San Francisco, CA
  • Founded: 2021 (by ex-OpenAI researchers)
  • Key Investors: Google ($2B+), Amazon ($4B)
  • API Endpoint: api.anthropic.com

Current Models (January 2026)

Model Context Input Output MMLU HumanEval
Claude Opus 4 200K $15/1M $75/1M 89.4% 93.1%
Claude Sonnet 4 200K $3/1M $15/1M 87.2% 91.8%
Claude Haiku 3.5 200K $0.25/1M $1.25/1M 78.3% 82.6%

Strengths

  • Context Window: 200K tokens standard (largest among top models)
  • Coding: Best-in-class code generation and analysis
  • Reasoning: Excellent at complex multi-step problems
  • Safety: Strong alignment and honest uncertainty
  • Long Documents: Processes entire codebases/books

Weaknesses

  • No Image Generation: Text-only outputs
  • Can Be Cautious: May refuse edge cases
  • Smaller Ecosystem: Fewer integrations than OpenAI
  • No Fine-tuning: Public fine-tuning not available

Best Use Cases

✅ Coding assistants and code review ✅ Long document analysis (books, legal docs) ✅ Research and analysis tasks ✅ Applications requiring nuanced responses

Code Example

import Anthropic from '@anthropic-ai/sdk';

const anthropic = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY });

const response = await anthropic.messages.create({
  model: 'claude-sonnet-4-20250514',
  max_tokens: 1024,
  messages: [{ role: 'user', content: 'Hello!' }],
});

Google (Gemini)

Company Profile

  • Parent: Alphabet / Google DeepMind
  • API Endpoint: generativelanguage.googleapis.com

Current Models (January 2026)

Model Context Input Output MMLU Notes
Gemini 2.0 Pro 1M $1.25/1M $5/1M 86.5% Balanced
Gemini 2.0 Flash 1M $0.075/1M $0.30/1M 82.1% Fast
Gemini 1.5 Pro 2M $1.25/1M $5/1M 85.9% Massive context

Strengths

  • Context Window: Up to 2M tokens (10x larger than competitors)
  • Multimodal Native: Text, image, video, audio in one model
  • Price/Performance: Competitive pricing
  • Google Integration: Works with Workspace, Cloud

Weaknesses

  • API Complexity: Less intuitive than OpenAI
  • Regional Availability: Limited in some countries
  • Consistency: Can be less reliable for edge cases

Best Use Cases

✅ Analyzing massive documents (entire books, codebases) ✅ Video and audio understanding ✅ Google Cloud integrated applications ✅ Cost-sensitive production workloads


Mistral AI

Company Profile

  • Headquarters: Paris, France
  • Founded: 2023
  • Key Advantage: European, GDPR-compliant
  • API Endpoint: api.mistral.ai

Current Models (January 2026)

Model Context Input Output Open Weights
Mistral Large 128K $2/1M $6/1M ❌
Mistral Small 32K $0.2/1M $0.6/1M ❌
Codestral 32K $0.2/1M $0.6/1M ❌
Mistral 7B 32K Free Free ✅ Apache 2.0
Mixtral 8x7B 32K Free Free ✅ Apache 2.0

Strengths

  • European: GDPR-friendly, data stays in EU
  • Open Source Options: Apache 2.0 licensed models
  • Multilingual: Excellent non-English performance
  • Efficient: Good performance per parameter

Weaknesses

  • Smaller Ecosystem: Less documentation/integrations
  • Newer Company: Less proven track record
  • Context Limits: Smaller windows than competitors

Best Use Cases

✅ European compliance requirements ✅ Multilingual applications ✅ Self-hosting with open weights ✅ Cost-optimized deployments


Open Source Models

Meta Llama 3.1

Variant Parameters Context License
Llama 3.1 405B 405B 128K Llama 3.1 Community
Llama 3.1 70B 70B 128K Llama 3.1 Community
Llama 3.1 8B 8B 128K Llama 3.1 Community

Quality: Near GPT-4 level at 405B, competitive at 70B License: Commercial use allowed, some restrictions Best For: Self-hosting, fine-tuning, privacy

DeepSeek V3

Variant Parameters Context License
DeepSeek V3 671B (active: 37B) 128K MIT

Quality: Competitive with GPT-4 on benchmarks Architecture: Mixture of Experts (very efficient) Best For: High-performance self-hosting

Qwen 2.5

Variant Parameters Context License
Qwen 2.5 72B 72B 128K Apache 2.0
Qwen 2.5 32B 32B 128K Apache 2.0
Qwen 2.5 7B 7B 128K Apache 2.0

Quality: Excellent, especially for Chinese License: Fully open Apache 2.0 Best For: Multilingual, especially Asian languages


Pricing Calculator

Example: 1M Messages/Month

Assuming average message = 500 input tokens + 200 output tokens

Provider Model Monthly Cost
OpenAI GPT-4o $3,250
OpenAI GPT-4o mini $195
Anthropic Claude Sonnet 4 $4,500
Anthropic Claude Haiku $375
Google Gemini 2.0 Flash $97
Self-hosted Llama 3.1 70B ~$500 (compute)

Recommendation Summary

Need Recommendation
Best overall quality Claude Opus 4 or GPT-4o
Best for coding Claude Sonnet 4
Best value Gemini 2.0 Flash or GPT-4o mini
Privacy/self-host Llama 3.1 70B
Massive documents Gemini 1.5 Pro (2M context)
European compliance Mistral Large
Startup budget GPT-4o mini + Claude Haiku mix