Seedream 5.0 Pro è LIVE | Prova nel Generatore di immagini →
anthropic
anthropic/claude-3-haiku

anthropic/claude-3-haiku

Data di rilascio: 2024-03-13

200,000 context · $0.25/M input tokens · $1.25/M output tokens

Claude 3 Haiku is Anthropic's fastest and most compact model for near-instant responsiveness. Quick and accurate targeted performance. See the launch announcement and benchmark results here #multimodal

Prezzi

Pay-per-use

Nessun costo iniziale, paga solo per ciò che usi

Input$0.25 / M Tokens
Output$1.25 / M Tokens
Cache Read$0.03 / M Tokens
Cache Write$0.30 / M Tokens

Prova il modello

anthropic/claude-3-haiku
Online
anthropic
Ciao! Sono un assistente IA utile. Come posso aiutarti?
Pronto a usare questo modello in un coding agent locale?Setup agent

Utilizzo API

Usa i seguenti esempi di codice per integrare la nostra API:

import OpenAI from 'openai';

if (!process.env.WAVESPEED_API_KEY) throw new Error('Set WAVESPEED_API_KEY');
const client = new OpenAI({
  apiKey: process.env.WAVESPEED_API_KEY,
  baseURL: 'https://llm.wavespeed.ai/v1',
  timeout: 120_000,
  maxRetries: 2,
});

try {
  const response = await client.chat.completions.create({
    model: 'anthropic/claude-3-haiku',
    messages: [{ role: 'user', content: 'Hello!' }],
  });
  console.log(response.choices[0]?.message?.content ?? '');
} catch (error) {
  console.error('LLM request failed:', error);
  process.exitCode = 1;
}

Introduzione al modello

Anthropic claude-3-haiku

anthropic claude-3-haiku


Why It Looks Great

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

Key Features

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

Specifications

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

Pricing

Token TypeCost per Million Tokens
Input$0.3
Output$1.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-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-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-haiku",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

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

Info

Provideranthropic
Tipollm

Funzionalità supportate

Input
TestoImmagine
Output
Testo
Contesto200,000
Output massimo4,096
Vision✓ Supportato
Function Calling✓ Supportato

Guida all'accesso API

Base URLhttps://llm.wavespeed.ai/v1
API Endpointchat/completions
ID modelloanthropic/claude-3-haiku

Claude 3 Haiku API

anthropic/claude-3-haiku

Claude 3 Haiku is Anthropic's fastest and most compact model for near-instant responsiveness. Quick and accurate targeted performance. See the launch announcement and benchmark results [here](https://www.anthropic.com/news/claude-3-haiku) #multimodal

Input

$0.25 /M

Output

$1.25 /M

Contesto

200K

Output max

4K

Vision

Supportato

Uso strumenti

Supportato

Prova Claude 3 Haiku su WaveSpeedAI

Accedi a Claude 3 Haiku tramite la nostra API unificata — compatibile con OpenAI, senza cold start, prezzi trasparenti.

Domande frequenti su Claude 3 Haiku

Quanto costa Claude 3 Haiku via API?+

Prezzi su WaveSpeedAI: $0.25 per milione di token in input e $1.25 per milione di token in output. Prompt caching e batch processing sono fatturati separatamente e riducono il costo effettivo su carichi lunghi e ripetitivi.

Qual è la context window di Claude 3 Haiku?+

Claude 3 Haiku supporta fino a 200K token di contesto e fino a 4K token di output per richiesta.

Claude 3 Haiku è compatibile con OpenAI?+

WaveSpeedAI espone Claude 3 Haiku su https://llm.wavespeed.ai/v1 tramite l’interfaccia Chat Completions compatibile con OpenAI. Per la maggior parte dei client OpenAI SDK basta cambiare base URL e API key; i campi opzionali dipendono dal modello.

Come si inizia con Claude 3 Haiku?+

Accedi a WaveSpeedAI, crea una API key in Access Keys e invia una richiesta a https://llm.wavespeed.ai/v1/chat/completions con il model id mostrato sopra. Consulta il catalogo attuale per disponibilità, funzionalità e prezzi.

API LLM correlate

Claude 3 Haiku | Anthropic Fastest LLM API | WaveSpeedAI