Transactional
Anthropic

Claude 3 Haiku

Fast and cost-effective for quick tasks

Context Window200K
Max Output4K
Input Price$0.25/1M
Output Price$1.25/1M
Cached Input$0.03/1M
CAPABILITIES

What This Model Can Do

Chat Completions

Multi-turn conversations with context

Vision

Analyze and understand images

Function Calling

Call external functions and APIs

JSON Mode

Guaranteed valid JSON output

Streaming

Real-time response streaming

System Prompt

Custom system instructions

CODE

Quick Start

import { Transactional } from '@usetransactional/node';

const client = new Transactional(process.env.TRANSACTIONAL_API_KEY);

const response = await client.ai.chat.completions.create({
  model: 'claude-3-haiku-20240307',
  messages: [
    { role: 'system', content: 'You are a helpful assistant.' },
    { role: 'user', content: 'Explain quantum computing in simple terms.' }
  ],
  temperature: 0.7,
  max_tokens: 1024,
});

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

Ready to Use Claude 3 Haiku?

Get started with a free account. Pay only for what you use.