--- url: "https://platform.claude.com/docs/en/get-started" titulek: "Get started with Claude - Claude Platform Docs" h1: "Get started with Claude" popis: "Make your first API call to Claude and build a simple web search assistant." jazyk: "en" kanonicka: "https://platform.claude.com/docs/en/get-started" drobecky: ["Messages", "Get started with Claude"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 21:20:09" znaku: 1906 slov: 252 kodovani: "utf-8" sha256: "362b203bcaa750fac305277a452c6a263284e0a88c725a9caaca8476529d372b" --- ## Prerequisites - A [Claude Console account](https://platform.claude.com) - An [API key](/settings/keys) ## Call the API 1. 1 Set your API keyExport your API key as an environment variable. The SDK reads `ANTHROPIC_API_KEY` automatically.`export ANTHROPIC_API_KEY="your-api-key-here"` 2. 2 Create a project and install the SDK`mkdir claude-quickstart && cd claude-quickstart python3 -m venv .venv && source .venv/bin/activate pip install anthropic` 3. 3 Create your codeCreate a file called `quickstart.py`:Python`import anthropic client = anthropic.Anthropic() message = client.messages.create( model="claude-opus-5", max_tokens=1000, messages=[ { "role": "user", "content": "What should I search for to find the latest developments in renewable energy?", } ], ) for block in message.content: if block.type == "text": print(block.text)` 4. 4 Run your code`python quickstart.py`Output`Here are some effective search strategies to find the latest developments in renewable energy: ## General Search Terms - "Renewable energy news 2025" - ...` ## Next steps You made your first API call. Next, learn the Messages API patterns you'll use in every Claude integration.  [Working with the Messages API](/docs/en/build-with-claude/working-with-messages) Learn multi-turn conversations, system prompts, stop reasons, and other core patterns. Once you're comfortable with the basics, explore further:  [Models overview](/docs/en/models/overview) Compare Claude models by capability and cost.  [Features overview](/docs/en/build-with-claude/overview) Browse all Claude capabilities: tools, context management, structured outputs, and more.  [Client SDKs](/docs/en/cli-sdks-libraries/overview) Reference documentation for Python, TypeScript, C#, and other client libraries.  [Authentication](/docs/en/manage-claude/authentication) Compare API keys and Workload Identity Federation, and set key expiration. Was this page helpful?