claude-api

Generates and migrates Claude API and Anthropic SDK code across eight languages.

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/sshekhar-04/SIH_PS_26151 --skill claude-api-sshekhar-04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-api
Source: https://github.com/sshekhar-04/SIH_PS_26151/tree/main/.agents/Skills/claude-api
Command: npx skills add https://github.com/sshekhar-04/SIH_PS_26151 --skill claude-api-sshekhar-04

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing correct Claude API integration code requires up-to-date knowledge of model IDs, pricing, streaming, tool use, prompt caching, and frequent API changes that make memorized patterns stale. This Skill provides an authoritative reference so generated Anthropic SDK code uses current parameters and avoids deprecated shapes. ## Core Features & Use Cases - Multi-language SDK guidance: Language-specific documentation for Python, TypeScript, Java, Go, Ruby, C#, PHP, and raw cURL/HTTP, with automatic language detection from project files. - API drift correction: Documents breaking changes such as adaptive thinking replacing budget_tokens, current model IDs and pricing, refusal fallbacks, and structured outputs. - Migration and audit subcommands: The migrate subcommand upgrades existing Claude code to newer models, and prompt-audit finds dated prompting patterns written for older models. - Use Case: A developer asks to add streaming tool use to a Python backend; the Skill detects Python, loads the Python reference, and produces code using the official anthropic SDK with current model IDs and adaptive thinking. ## Quick Start Ask the assistant to add a Claude API call with streaming and tool use to your project file using the official 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 add Claude API calls to my Python or TypeScript project?

Use the official Anthropic SDK for your language (anthropic for Python, @anthropic-ai/sdk for TypeScript) and call client.messages.create with a current model ID like claude-opus-5. The Skill detects your project language from files like requirements.txt or package.json and loads the matching reference.

What is the difference between the Tool Runner and the Claude Agent SDK?

The Tool Runner is part of the regular Anthropic SDK and loops over tools you define via client.beta.messages.tool_runner. The Claude Agent SDK is Claude Code packaged as a library with built-in file, bash, and web tools. Both are harness-only; Managed Agents adds hosted deployment.

Does the Claude API still use budget_tokens for extended thinking?

No, budget_tokens is rejected with a 400 error on Claude Opus 5, Fable 5, Opus 4.8, and 4.7, and deprecated on Opus 4.6 and Sonnet 4.6. Current models use adaptive thinking via thinking: {type: "adaptive"}, while older models like Sonnet 4.5 still require budget_tokens.

How do I authenticate Claude API requests without an API key?

Run ant auth login to create an OAuth profile that SDKs and the ant CLI pick up automatically with a zero-argument client constructor. For raw curl, use ant auth print-credentials --access-token and send it as Authorization: Bearer plus the anthropic-beta: oauth-2025-04-20 header.

Why does my Claude API request return a 400 error after upgrading models?

Common causes are sending removed parameters like temperature, top_p, or budget_tokens to Claude Opus 5, Fable 5, or Opus 4.8/4.7, or using thinking: disabled on Fable 5. Remove those parameters and use adaptive thinking; the migrate subcommand automates this audit.

Can I use this Skill for OpenAI or other non-Anthropic providers?

No, this Skill only produces Claude/Anthropic SDK code and explicitly stops when it detects other providers like OpenAI, Gemini, or Mistral in the prompt or project. It will ask whether you want to switch the file to Claude before proceeding.