G
GenAI Hub
โœฆ
๐Ÿค– AI Agents & APIsโ˜… Featured

Anthropic API

by Anthropic

Production access to Claude models via the Anthropic API. Supports the Messages API, streaming, vision, tool use, and a 200K token context window.

Claudetool use200K contextstreamingvision

Quick Start

  1. Get API access โ€” Sign up at console.anthropic.com and create an API key.
  2. Install the SDK โ€” npm install @anthropic-ai/sdk or pip install anthropic
  3. Make a call โ€” const msg = await anthropic.messages.create({ model: "claude-sonnet-4-6", max_tokens: 1024, messages: [{role:"user", content:"Hello!"}] })
  4. Try tool use โ€” Define tools with name, description, and input_schema. Claude decides when to call them.
Full quickstart guide

How-To Guides

2
Define tools as JSON schema objects. Pass in tools array. When Claude uses a tool, it returns tool_use content blocks. Process the tool call, then send a tool_result user message back.

Tool Info

Company
Anthropic
Category
๐Ÿค– AI Agents & APIs
How-to Guides
2

Tags

Claudetool use200K contextstreamingvision