A

Claude 3.5 Sonnet

Anthropic

ChatCodeAnalysisReasoningPopular

About

Anthropic's balanced model offering strong reasoning and nuanced understanding with a 200k context window. Excellent for analysis, long document processing, coding assistance, and creative tasks. A strong all-around choice for production applications requiring reliability and depth.

Provider

Anthropic

Context Window

200k tokens

Max Output

8,192 tokens

Model ID

anthropic/claude-3.5-sonnet

Capabilities

200k contextTool useStreamingSystem promptsVision

API Usage

Drop-in compatible with any OpenAI client library.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.deployai.dev/v1",
  apiKey: process.env.DEPLOYAI_API_KEY,
});

const completion = await client.chat.completions.create({
  model: "anthropic/claude-3.5-sonnet",
  messages: [
    { role: "user", content: "Hello, how are you?" }
  ],
});

console.log(completion.choices[0].message.content);

Related Models

View all