claude-api

Build LLM-powered applications with the Claude API and Anthropic SDKs across eight languages.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/NT-boop-star/BRMV-tract --skill claude-api-nt-boop-star
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-api
Source: https://github.com/NT-boop-star/BRMV-tract/tree/main/antigravity/skills/claude-api
Command: npx skills add https://github.com/NT-boop-star/BRMV-tract --skill claude-api-nt-boop-star

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Developers integrating the Claude API often struggle with choosing the right SDK surface, correct model IDs, thinking configuration, streaming, tool use loops, and prompt caching across different programming languages. This Skill provides language-specific, up-to-date guidance so Claude API code is written correctly the first time. ## Core Features & Use Cases - Multi-language SDK guidance: Language detection routes to dedicated references for Python, TypeScript, Java, Go, Ruby, C#, PHP, and cURL, covering installation, streaming, tool use, structured outputs, and error handling. - Surface selection: Decision trees help choose between single Claude API calls, tool-use workflows, and the Agent SDK based on task complexity. - Current model and feature defaults: Enforces correct model IDs (e.g., claude-opus-4-6), adaptive thinking, effort parameters, prompt caching, compaction, and Files API usage. - Use Case: A developer asks to add a streaming chat endpoint with tool use to their Go service; the Skill detects Go, loads the Go reference, and produces correct SDK code with the tool runner and streaming accumulation pattern. ## Quick Start Ask the assistant to write a Claude API integration in your project's language, such as building a streaming chat completion with tool use using the Anthropic SDK.

Frequently Asked Questions about claude-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an app with the Claude API in Python or TypeScript?

Install the anthropic package, create a client with your API key, and call messages.create with a model ID like claude-opus-4-6, max_tokens, and a messages array. The Skill's language-specific README covers installation, quick start, streaming, and error handling.

Claude API vs Agent SDK: which should I use?

Use the Claude API for single calls, workflows, and agents with your own tools where you control the loop. Use the Agent SDK when Claude itself needs built-in file, web, or terminal access with permissions and MCP support; it is available for Python and TypeScript only.

Which Claude model ID should I use in my API requests?

Default to claude-opus-4-6 unless the user explicitly names another model such as claude-sonnet-4-6 or claude-haiku-4-5. Use the exact IDs without date suffixes, and query the Models API for live capability and context-window information.

How do I enable extended thinking with Claude Opus 4.6?

Use adaptive thinking by setting thinking to {type: "adaptive"}; Claude decides when and how much to think. The budget_tokens parameter is deprecated on Opus 4.6 and Sonnet 4.6 and must not be used with those models.

Why is my prompt caching not hitting in the Claude API?

Cache hits fail when any byte in the prefix changes, such as timestamps in the system prompt, unsorted JSON, or varying tool lists. Keep stable content first, place cache_control breakpoints after it, and verify with usage.cache_read_input_tokens.

Does the Anthropic SDK support languages other than Python and TypeScript?

Yes, official SDKs exist for Java, Go, Ruby, C#, and PHP, each with Claude API support and most offering beta tool runners. The Agent SDK is only available for Python and TypeScript; other languages can use cURL or raw HTTP examples.