Seedance 2.0 15% DE DESCONTO | Crie no Video Generator →
anthropic
anthropic/claude-3.5-haiku

anthropic/claude-3.5-haiku

Data de lançamento: 2024-11-04

200,000 context · $0.80/M input tokens · $4.00/M output tokens

Claude 3.5 Haiku features offers enhanced capabilities in speed, coding accuracy, and tool use. Engineered to excel in real-time applications, it delivers quick response times that are essential for dynamic...

Preços

Pagamento por uso

Sem custo inicial, pague apenas pelo que usar

Entrada$0.80 / M Tokens
Saída$4.00 / M Tokens
Cache Read$0.08 / M Tokens
Cache Write$1.00 / M Tokens

Experimentar o modelo

anthropic/claude-3.5-haiku
Online
anthropic
Olá! Sou um assistente de IA útil. Em que posso ajudar?

Uso da API

Use os exemplos de código abaixo para integrar com nossa API:

from openai import OpenAI

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

response = client.chat.completions.create(
    model="anthropic/claude-3.5-haiku",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

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

Introdução do modelo

Anthropic claude-3.5-haiku

anthropic claude-3.5-haiku


Why It Looks Great

  • Large Language Model architecture for efficient processing
  • 200000 context window for long document handling
  • Competitive pricing at $0.9/$4.4 per million tokens

Key Features

  • Context Window: 200000 tokens
  • Max Output: 8192 tokens
  • Vision: Supported
  • Function Calling: Supported

Specifications

SpecificationValue
ProviderAnthropic
Model TypeLarge Language Model (LLM)
ArchitectureN/A
Context Window200000 tokens
Max Output8192 tokens
InputText
OutputText
VisionSupported
Function CallingSupported

Pricing

Token TypeCost per Million Tokens
Input$0.9
Output$4.4

How to Use

  1. Write your prompt — describe the task, provide context, and specify desired output format.
  2. Submit — the model processes your request and returns the response.

API Integration

Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: anthropic/claude-3.5-haiku


API Usage

Python SDK

from openai import OpenAI

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

response = client.chat.completions.create(
    model="anthropic/claude-3.5-haiku",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

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

cURL

curl https://llm.wavespeed.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "anthropic/claude-3.5-haiku",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

  • Model: anthropic/claude-3.5-haiku
  • Provider: Anthropic

Info

Provedoranthropic
Tipollm

Funcionalidades suportadas

Entrada
TextoImagem
Saída
Texto
Contexto200,000
Saída máx.8,192
Vision✓ Suportado
Function Calling✓ Suportado

Guia de acesso à API

Base URLhttps://llm.wavespeed.ai/v1
API Endpointchat/completions
ID do modeloanthropic/claude-3.5-haiku

Claude 3.5 Haiku API

anthropic/claude-3.5-haiku

Claude 3.5 Haiku features offers enhanced capabilities in speed, coding accuracy, and tool use. Engineered to excel in real-time applications, it delivers quick response times that are essential for dynamic...

Entrada

$0.8 /M

Saída

$4 /M

Contexto

200K

Saída máx.

8K

Vision

Suportado

Uso de ferramentas

Suportado

Experimente Claude 3.5 Haiku no WaveSpeedAI

Acesse Claude 3.5 Haiku através da nossa API unificada — compatível com OpenAI, sem inicializações a frio, preços transparentes.

Perguntas frequentes sobre Claude 3.5 Haiku

Quanto custa Claude 3.5 Haiku via API?+

Preços no WaveSpeedAI: $0.80 por milhão de tokens de entrada e $4.00 por milhão de tokens de saída. Prompt caching e batch processing são cobrados separadamente e reduzem o custo efetivo em cargas longas e repetitivas.

Qual é a janela de contexto do Claude 3.5 Haiku?+

Claude 3.5 Haiku suporta até 200K tokens de contexto e até 8K tokens de saída por requisição.

Claude 3.5 Haiku é compatível com OpenAI?+

Sim. O WaveSpeedAI expõe o Claude 3.5 Haiku através de um endpoint compatível com OpenAI em https://llm.wavespeed.ai/v1. Aponte o SDK oficial da OpenAI para esta base URL com sua chave API do WaveSpeedAI — sem outras alterações no código.

Como começo a usar o Claude 3.5 Haiku?+

Entre no WaveSpeedAI, crie uma chave API em Access Keys, então envie uma requisição para https://llm.wavespeed.ai/v1/chat/completions com o model id mostrado acima. Contas novas recebem créditos grátis para avaliar o Claude 3.5 Haiku.

APIs LLM relacionadas