cURL to Anthropic SDK
Paste an Anthropic Claude cURL example, get equivalent code using the official anthropic Python SDK or @anthropic-ai/sdk for Node. Handles Messages API, system prompts, tool use, streaming, prompt caching.
How to use the cURL to Anthropic SDK
Paste an Anthropic Claude cURL example. The tool extracts model, system prompt, messages, max_tokens, and any tool definitions. The generated SDK code reads ANTHROPIC_API_KEY from the environment. Stream option uses the SDK's MessageStream iterator.