Developer Reference

LLM Developer Guide — API Docs & Connection Examples

Complete developer reference for the top 10 LLMs in 2026 — provider profiles, official documentation, and working API connection snippets for every model.

Updated June 18, 2026 · 12 min read
✅ Complete — All 10 model cards are live below with provider profiles, developer docs, and working API connection examples. Each card links back to the LLM rankings and cost comparison pages.
#1 — GPT-5.5 OpenAI

GPT-5.5 — OpenAI's most capable general-purpose model

Platform Provider

OpenAI — Founded 2015, headquartered in San Francisco. The company behind ChatGPT, the GPT model family, DALL·E, and the o-series reasoning models. OpenAI's API serves millions of developers, offering state-of-the-art models for chat, code, reasoning, image generation, text-to-speech, and embeddings. The developer platform (platform.openai.com) includes playgrounds, fine-tuning, Assistants API, and usage monitoring. GPT-5.5 is the latest flagship, released June 2026.

Context Window
1M tokens
Release Date
June 2026
GPT Benchmark
92.7%
MMLU
91.8%

Pricing

$5/$30 per 1M tokens (input/output) — see full cost comparison across all 10 models.

Developer Documentation

platform.openai.com/docs

OpenAI's developer docs cover the Chat Completions API, streaming, function calling, structured outputs, assistants, fine-tuning, and model selection.

API Connection Example

curl https://api.openai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{
    "model": "gpt-5.5",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Explain quantum computing in one paragraph."}
    ],
    "temperature": 0.7,
    "max_tokens": 500,
    "stream": false
  }'

Set stream: true for real-time token streaming. Use temperature: 0 for deterministic responses. Requires an OpenAI API key from platform.openai.com/api-keys.

Models #2–#10

#2 — Claude Opus 4.8 Anthropic

Claude Opus 4.8 — Anthropic's most intelligent model

Platform Provider

Anthropic — Founded 2021 by former OpenAI researchers, headquartered in San Francisco. The company behind the Claude model family, known for safety-focused AI with constitutional alignment and deep reasoning capabilities. Anthropic's API (console.anthropic.com) offers Claude Opus, Sonnet, and Haiku tiers across the Amazon Bedrock and Google Vertex AI marketplaces as well as direct. Claude Opus 4.8 is the top-tier model, excelling at complex analysis, coding, long-form writing, and multi-step reasoning.

Context Window
500K tokens
Release Date
May 2026
GPT Benchmark
91.5%
MMLU
91.1%

Pricing

$15/$75 per 1M tokens (input/output) — see full cost comparison across all 10 models.

Developer Documentation

docs.anthropic.com

Anthropic's developer docs cover the Messages API, streaming, tool use (function calling), prompt caching, extended thinking, and the Workbench playground.

API Connection Example

curl https://api.anthropic.com/v1/messages \
  -H "Content-Type: application/json" \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2026-06-01" \
  -d '{
    "model": "claude-opus-4-8-20260501",
    "max_tokens": 1024,
    "system": "You are a knowledgeable assistant.",
    "messages": [
      {"role": "user", "content": "Explain reinforcement learning from human feedback."}
    ]
  }'

Anthropic uses a system parameter (not a message role). Enable "thinking": {"type": "enabled", "budget_tokens": 2000} for extended reasoning. Get your key at console.anthropic.com.

#3 — Gemini 3.1 Pro Google DeepMind

Gemini 3.1 Pro — Google's flagship multimodal model

Platform Provider

Google DeepMind — Formed in 2023 by merging Google Brain and DeepMind, headquartered in London and Mountain View. The Gemini model family powers Google's AI Studio, Vertex AI, and consumer products. Gemini 3.1 Pro is Google's premier model with native multimodal support (text, images, audio, video), 2M-token context, and Google Search grounding. The developer platform (ai.google.dev) offers a generous free tier, fine-tuning, and seamless Vertex AI integration.

Context Window
2M tokens
Release Date
June 2026
GPT Benchmark
89.9%
MMLU
90.4%

Pricing

$1.25/$5.00 per 1M tokens (input/output, prompts up to 128K) — see full cost comparison across all 10 models.

Developer Documentation

ai.google.dev/gemini-api/docs

Google AI Studio provides a free playground, API reference for Gemini 3.1 Pro, multimodal examples, system instructions, code execution, and Google Search grounding.

API Connection Example

curl https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-pro:generateContent?key=$GEMINI_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "system_instruction": {
      "parts": [{"text": "You are a helpful data scientist."}]
    },
    "contents": [
      {"role": "user", "parts": [{"text": "Explain the transformer architecture."}]}
    ],
    "generationConfig": {
      "temperature": 0.7,
      "maxOutputTokens": 800
    }
  }'

Gemini uses a RESTful generateContent endpoint. Pass the API key as a query parameter. Multimodal requests add inlineData parts for images. Get a free key at aistudio.google.com.

#4 — Claude Sonnet 4.6 Anthropic

Claude Sonnet 4.6 — Anthropic's speed-intelligence sweet spot

Platform Provider

Anthropic — Claude Sonnet 4.6 balances strong reasoning with faster response times and lower cost than Opus. Ideal for high-throughput production workloads — customer support, content moderation, code review, and RAG pipelines. Uses the same Messages API as Opus with full tool-use and streaming support.

Context Window
500K tokens
Release Date
May 2026
GPT Benchmark
87.6%
MMLU
88.1%

Pricing

$3/$15 per 1M tokens (input/output) — see full cost comparison across all 10 models.

Developer Documentation

docs.anthropic.com

Same Anthropic Messages API and tool-use documentation as Opus. See the model comparison page for rate limits and latency benchmarks.

API Connection Example

curl https://api.anthropic.com/v1/messages \
  -H "Content-Type: application/json" \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2026-06-01" \
  -d '{
    "model": "claude-sonnet-4-6-20260501",
    "max_tokens": 1024,
    "system": "You are a senior software engineer.",
    "messages": [
      {"role": "user", "content": "Review this Python code for security issues."}
    ]
  }'

Same API structure as Opus — swap model to claude-sonnet-4-6-20260501. For production, enable prompt caching on system messages to cut costs.

#5 — GPT-5.4 OpenAI

GPT-5.4 — OpenAI's cost-efficient powerhouse

Platform Provider

OpenAI — GPT-5.4 is the cost-optimized tier below GPT-5.5, offering ~90% of the flagship's intelligence at roughly half the price. Ideal for high-volume chat applications, summarization, content generation, and agent workflows where extreme reasoning depth isn't required. Uses the same OpenAI Chat Completions API with full streaming, function calling, and structured outputs support.

Context Window
256K tokens
Release Date
May 2026
GPT Benchmark
85.9%
MMLU
86.5%

Pricing

$2.50/$10 per 1M tokens (input/output) — see full cost comparison across all 10 models.

Developer Documentation

platform.openai.com/docs

Same OpenAI developer docs as GPT-5.5. GPT-5.4 supports all Chat Completions features — function calling, JSON mode, streaming, and the Assistants API.

API Connection Example

curl https://api.openai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{
    "model": "gpt-5.4",
    "messages": [
      {"role": "system", "content": "You are a content editor."},
      {"role": "user", "content": "Summarize this article in 3 bullet points."}
    ],
    "temperature": 0.5,
    "max_tokens": 400
  }'

Identical API surface to GPT-5.5 — just change the model name. Production tip: use response_format: {"type": "json_object"} for structured extraction.

#6 — DeepSeek V4 Pro DeepSeek

DeepSeek V4 Pro — China's open-source leader

Platform Provider

DeepSeek — Founded 2023 in Hangzhou, China. DeepSeek has rapidly become the leading open-source LLM provider, known for Mixture-of-Experts architectures that deliver frontier performance at dramatically lower cost. DeepSeek V4 Pro features a 750B total parameter MoE design (roughly 30B active per token), 1M-token context, and a transparent research culture — model weights, technical papers, and training recipes are publicly released. The API (platform.deepseek.com) offers OpenAI-compatible endpoints.

Context Window
1M tokens
Release Date
April 2026
GPT Benchmark
83.8%
MMLU
84.7%

Pricing

$0.27/$1.10 per 1M tokens (input/output) — see full cost comparison across all 10 models.

Developer Documentation

platform.deepseek.com/api-docs

DeepSeek's API is OpenAI-compatible. Docs cover the chat endpoint, FIM (fill-in-the-middle) for code completion, and model download for self-hosting.

API Connection Example

curl https://api.deepseek.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $DEEPSEEK_API_KEY" \
  -d '{
    "model": "deepseek-chat",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Write a Python function to merge two sorted lists."}
    ],
    "temperature": 0.0,
    "max_tokens": 800,
    "stream": false
  }'

Drop-in OpenAI replacement — swap the base URL and model name. DeepSeek's deep reasoning mode is available with "model": "deepseek-reasoner".

#7 — Gemini 3.5 Flash Google DeepMind

Gemini 3.5 Flash — Google's speed-optimized workhorse

Platform Provider

Google DeepMind — Gemini 3.5 Flash is Google's fastest and most cost-efficient model, optimized for high-throughput, low-latency applications. Despite its speed, it handles 1M-token context and multimodal inputs. Perfect for real-time chat, content classification, data extraction, and mobile/edge deployments. Uses the same Gemini API as Pro with identical request structure.

Context Window
1M tokens
Release Date
June 2026
GPT Benchmark
81.2%
MMLU
82.5%

Pricing

$0.075/$0.30 per 1M tokens (input/output, prompts up to 128K) — see full cost comparison across all 10 models.

Developer Documentation

ai.google.dev/gemini-api/docs

Same Gemini API docs as Pro. Gemini 3.5 Flash supports all generation config options, system instructions, and multimodal inputs at much lower latency.

API Connection Example

curl https://generativelanguage.googleapis.com/v1beta/models/gemini-3.5-flash:generateContent?key=$GEMINI_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "system_instruction": {
      "parts": [{"text": "You classify support tickets by urgency."}]
    },
    "contents": [
      {"role": "user", "parts": [{"text": "My website is completely down — customers can\\'t check out!"}]}
    ],
    "generationConfig": {
      "temperature": 0.0,
      "maxOutputTokens": 100,
      "responseMimeType": "application/json",
      "responseSchema": {
        "type": "object",
        "properties": {
          "category": {"type": "string", "enum": ["urgent","high","medium","low"]},
          "summary": {"type": "string"}
        }
      }
    }
  }'

With sub-200ms median latency, Flash is ideal for real-time classification. Use responseSchema for structured JSON output — no parsing hacks needed.

#8 — Kimi K2.6 Moonshot AI

Kimi K2.6 — Moonshot AI's long-context specialist

Platform Provider

Moonshot AI — Founded 2023 in Beijing, backed by Alibaba and Sequoia. Moonshot specializes in ultra-long-context models — Kimi K2.6 handles up to 1M tokens in a single prompt, making it the go-to choice for document analysis, legal contract review, academic paper summarization, and codebase-wide reasoning. The API is OpenAI-compatible for easy integration. Moonshot also offers the Kimi consumer chatbot, which has over 30 million monthly active users in China.

Context Window
1M tokens
Release Date
May 2026
GPT Benchmark
78.7%
MMLU
79.5%

Pricing

$0.08/$0.32 per 1M tokens (input/output) — see full cost comparison across all 10 models.

Developer Documentation

platform.moonshot.cn/docs

OpenAI-compatible API with the same chat completions endpoint. Docs cover tokenization, file upload for long-context processing, and rate limits.

API Connection Example

curl https://api.moonshot.cn/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $MOONSHOT_API_KEY" \
  -d '{
    "model": "moonshot-v1-128k",
    "messages": [
      {"role": "system", "content": "You are a legal document analyst."},
      {"role": "user", "content": "Review this 200-page contract and identify all indemnification clauses."}
    ],
    "temperature": 0.3,
    "max_tokens": 2000
  }'

Drop-in OpenAI replacement. For files >1MB, use the file upload endpoint first, then pass file_ids in the request. Get a key at platform.moonshot.cn.

#9 — GLM 5.1 Z.ai (Zhipu AI)

GLM 5.1 — Zhipu AI's bilingual powerhouse

Platform Provider

Zhipu AI (Z.ai) — Founded 2019 as a Tsinghua University spin-off in Beijing. Zhipu AI develops the GLM (General Language Model) family, designed from the ground up for strong bilingual Chinese-English performance. GLM 5.1 uses a unique bidirectional-encoder-plus-autoregressive-decoder architecture. The API platform (open.bigmodel.cn) offers OpenAI-compatible endpoints, fine-tuning, knowledge base RAG, and an agent framework. Zhipu is a recognized national AI team in China with strong enterprise adoption.

Context Window
256K tokens
Release Date
May 2026
GPT Benchmark
72.4%
MMLU
74.1%

Pricing

$0.07/$0.28 per 1M tokens (input/output) — see full cost comparison across all 10 models.

Developer Documentation

open.bigmodel.cn/dev/api

OpenAI-compatible chat completions endpoint. The platform docs cover GLM-specific parameters, tool calling, web search, knowledge base integration, and fine-tuning APIs. Chinese and English documentation available.

API Connection Example

curl https://open.bigmodel.cn/api/paas/v4/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $ZHIPU_API_KEY" \
  -d '{
    "model": "glm-5.1",
    "messages": [
      {"role": "system", "content": "You are a bilingual translator and cultural consultant."},
      {"role": "user", "content": "Translate this marketing copy into Chinese, preserving the brand tone."}
    ],
    "temperature": 0.6,
    "max_tokens": 1000
  }'

OpenAI-compatible endpoint. Add "tools" for web search and "tool_choice" to force function calls. API key from open.bigmodel.cn.

#10 — Gemma 4 Google

Gemma 4 — Google's open model, no API key needed

Platform Provider

Google — Gemma 4 is Google's open-source model family, built from the same research as Gemini but released under a permissive license for self-hosting. Available in multiple sizes (2B, 9B, 27B parameters), Gemma 4 can run on a single GPU, a laptop, or even a phone via quantized formats. No API key or vendor lock-in — download weights from Hugging Face or Kaggle and deploy anywhere: Google Cloud Run, Ollama, vLLM, or your own server. Ideal for privacy-sensitive applications, offline use, and cost-free inference.

Context Window
128K tokens
Release Date
June 2026
GPT Benchmark
69.8%
MMLU
71.3%

Pricing

FREE — open model, no API costs. You pay only for compute if hosting yourself. See full cost comparison across all 10 models.

Developer Documentation

ai.google.dev/gemma/docs

Gemma docs cover model downloading, Hugging Face integration, quantization (GGUF, AWQ), fine-tuning with LoRA/QLoRA, and deployment recipes for Ollama, vLLM, and Google Cloud.

API Connection Example (Ollama — Self-Hosted)

# 1. Download and run Gemma 4 locally (no API key needed)
ollama pull gemma4:27b

# 2. Chat Completions endpoint (OpenAI-compatible, localhost)
curl http://localhost:11434/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma4:27b",
    "messages": [
      {"role": "system", "content": "You are an offline privacy-first assistant."},
      {"role": "user", "content": "Summarize this document locally — no data leaves this machine."}
    ],
    "temperature": 0.3,
    "max_tokens": 600,
    "stream": false
  }'

No API key. No internet required. Runs entirely on your hardware. For production, wrap Ollama in a Docker container on Google Cloud Run or any VPS with a GPU.