Haimaker.ai Logo
Anthropic logo

Claude 2

anthropic/claude-2
Chat
Max Output
8K
tokens
Input Price
$11.02
/1M tokens
Output Price
$32.68
/1M tokens

Overview

Anthropic's Claude 2, an earlier-generation model with strong writing, analysis, and conversation abilities.

Features & Capabilities

Modechat
Max Output8K tokens
Function Calling-
Vision-
Reasoning-
Web Search-
Url Context-

API Usage

from openai import OpenAI

client = OpenAI(
    base_url="https://api.haimaker.ai/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="anthropic/claude-2",
    messages=[
        {"role": "user", "content": "Hello, how are you?"}
    ],
)

print(response.choices[0].message.content)

Use Claude 2 with the haimaker API

OpenAI-compatible endpoint. Start building in minutes.

Get API Access

More from Anthropic