MaxLeiter / anthropic-sdk-typescript

Access to Anthropic's safety-first language model APIs

Home Page:https://www.npmjs.com/package/@anthropic-ai/sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anthropic TypeScript SDK npm

This package provides access to Anthropic's safety-first language model APIs.

For more information on our APIs, please check the confidential documentation portal.

Note that this package only officially supports Node 16+.

Installation

Install using your package manager of choice. For example:

npm install @anthropic-ai/sdk

… or:

yarn add @anthropic-ai/sdk

Development and testing

Examples are available in the examples/ folder.

To get started, install dependencies, set your API key, and run one of the package.json scripts:

yarn
export ANTHROPIC_API_KEY=<insert token here>
yarn example:basic_stream
yarn example:basic_sync

About

Access to Anthropic's safety-first language model APIs

https://www.npmjs.com/package/@anthropic-ai/sdk

License:MIT License


Languages

Language:TypeScript 92.4%Language:JavaScript 7.6%