Claude Messages API
Claude API Integration
NexusFlow's /v1/messages supports both Anthropic's native Claude models and compatibility-layer models. When model is claude-*, the request connects directly to the official Anthropic Messages API, preserving the native response and SSE event format.
✓ Protocol Coverage
/v1/messages supports all models available on NexusFlow — including the official Claude series as well as Qwen, GLM, DeepSeek, Kimi, MiniMax, and more.Endpoint
POST
https://nexusflow.hk/v1/messagesSync / StreamingRequest Parameters
Supported Models & Official Pricing
Usage Examples
Prompt Caching (Context Cache)
Prompt Caching is supported when calling via /v1/messages. Add a cache_control annotation to a content block in system or messages; repeated prefixes are cached, and subsequent requests get a 90% discount on the cached portion:
Usage example: add "cache_control": {"type": "ephemeral"} to a system block. Ideal for repeated content like long system prompts and document context. Supported by all models under the /v1/messages protocol.
Related Docs