messages-api

Solid

Reference for the Anthropic Messages API (/v1/messages) as a third-party compatibility protocol — the 7 inference servers that implement it natively (vLLM, SGLang, llama.cpp, Ollama, mistral.rs, Llama Stack/OGX, Lemonade), gateways that adapt it (LiteLLM, Bifrost, Superagent Gateway), client behavior (Claude Code, opencode anthropic provider), Messages ↔ Chat Completions translation, the thinking-signature seam, stop_reason divergences, and streaming quirks. NOT for official Anthropic API usage (models, pricing, SDK) — that is the claude-api skill.

AI & Automation 3 stars 1 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 79/100

Stars 20%
20
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Messages API Compatibility Reference Sibling protocols in the `inference-apis` plugin: **`chat-completions-api`** is the baseline surface every server implements and the target this one is most often translated to or from; **`responses-api`** is the third, with the thinnest backend coverage of the three. The Anthropic Messages API (`POST /v1/messages`) is now the second open compatibility surface after Chat Completions: **every major local inference server serves it natively** (verified by source examination 2026-07-19 — vLLM, SGLang, llama.cpp, Ollama, mistral.rs, Llama Stack/OGX, Lemonade), and gateways (LiteLLM, Bifrost, Superagent Gateway) adapt it to everything else. Claude Code is the driving client; Ollama, Lemonade, and Superagent all ship Claude Code-specific affordances. **Fleet property: stateless by protocol.** No `previous_response_id` equivalent exists — full history is resent every turn, so load-balanced same-model fleets cannot hit wrong-replica session errors (contrast the Responses API's server-side state; see the responses-api skill). **Last refreshed**: 2026-07-19 (source-examined at commits of 2026-07-16..18; provenance in `references/sources.md`). ## Critical Gotchas - **The thinking-signature seam**: third-party backends fabricate or omit thinking-block signatures. Replaying such thinking to the REAL Anthropic API fails signature validation — keep conversations on one side of the boundary or strip thinking when crossing. Per-implementation...

Details

Author
air-gapped
Repository
air-gapped/skills
Created
3 months ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

chat-completions-api

Reference for the OpenAI Chat Completions API (/v1/chat/completions) and legacy /v1/completions as the lingua-franca compatibility protocol — the official spec incl. deprecation timeline and Responses-only feature delta, how 7 local servers (vLLM, SGLang, llama.cpp, Ollama, mistral.rs, Llama Stack/OGX, Lemonade) actually implement it, gateways (LiteLLM, Bifrost), 10 cloud providers' CC-compat endpoints (Anthropic, Gemini, DeepSeek, xAI, Groq, OpenRouter, Azure...), the reasoning_content/reasoning field schism, finish_reason divergences, and client wire behavior (opencode, Vercel AI SDK). NOT for the Responses API (responses-api skill) or Anthropic Messages protocol (messages-api skill).

3 Updated yesterday
air-gapped
AI & Automation Solid

responses-api

Reference for the OpenAI Responses API (/v1/responses), OpenResponses open standard, and Codex CLI. Covers the request/response schema, previous_response_id, Conversations API, server-side compaction, WebSocket transport, hosted Shell tool, Skills, tool_search, MCP connectors, prompt caching, phase field, 53 typed streaming events, 10-backend support matrix (vLLM, llama.cpp, mistral.rs, Ollama, LiteLLM, SGLang, Llama Stack, TensorRT-LLM, Bifrost, Lemonade), and Chat Completions translation with 17 gotchas.

3 Updated yesterday
air-gapped
AI & Automation Solid

ai-provider-anthropic-sdk

Official Anthropic SDK patterns for TypeScript/Node.js — client setup, Messages API, streaming, tool use, vision, extended thinking, structured outputs, prompt caching, batch API, and production best practices

18 Updated 1 weeks ago
agents-inc