flâneur

Quickstart - Anthropic

docs.anthropic.com · 103 words · saved by 1 readers

Anthropic provides Python and TypeScript SDKs, although you can make direct HTTP requests to the API. Any API call you make–-regardless of the specific task-–sends a well-configured prompt to the Anthropic API. As you’re learning to make the most of Claude, we recommend that you start the development process in the Workbench, a web-based interface to Claude. Log into the Anthropic Console and click Workbench. In the middle section, under User, let’s ask Claude a question. Click Run. On the right side, you’ll see output like This is a good answer, but let’s say we wanted to control the exact type of answer Claude gives. For example, only allowing Claude to respond to questions with poems. We can control the format, tone, and personality of the response by adding a System Prompt. Click Run again. See how Claude’s response has changed? LLMs respond well to clear and direct instructions. You can put the role instructions in either the system prompt or the user message. We recommend testing

Make your first API call to Claude and build a simple web search assistant. Prerequisites A Claude Console account An API key Call the API Next steps You made your first API call. Next, learn the Messages API patterns you'll use in every Claude integration. Learn multi-turn conversations, system prompts, stop reasons, and other core patterns. Once you're comfortable with the basics, explore further: Compare Claude models by capability and cost. Browse all Claude capabilities: tools, context management, structured outputs, and more. Reference documentation for Python, TypeScript,…

saved by

related reading