February 27, 2025 · Anthropic
Messages API adds URL sources for images and PDFs, and an OpenAI-compatible endpoint
- We’ve added URL source blocks for images and PDFs in the Messages API. You can now reference images and PDFs directly through a URL instead of having to base64-encode them. Learn more in Vision and PDF support.
- We’ve added support for a
noneoption to thetool_choiceparameter in the Messages API that prevents Claude from calling any tools. Additionally, you’re no longer required to provide anytoolswhen includingtool_useandtool_resultblocks. - We’ve launched an OpenAI-compatible API endpoint, allowing you to test Claude models by changing just your API key, base URL, and model name in existing OpenAI integrations. This compatibility layer supports core chat completions functionality. Learn more in OpenAI SDK compatibility.