---
title: Anthropic: Claude 3.5 Haiku | Text Generation | ModelsLab
description: Build with Anthropic: Claude 3.5 Haiku API by Anthropic. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab.com/models/anthropic/anthropic-claude-3.5-haiku/api.md
canonical: https://modelslab.com/models/anthropic/anthropic-claude-3.5-haiku/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-15T02:08:21.387101Z
---

Anthropic: Claude 3.5 Haiku
---

 [LLMs.txt](https://modelslab.com/models/open_router/anthropic-claude-3.5-haiku/llms.txt) [.md](https://modelslab.com/models/anthropic/anthropic-claude-3.5-haiku.md)

anthropic-claude-3.5-haiku anthropic Closed Source Model $2.400000 / call

Anthropic: Claude 3.5 Haiku
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Anthropic: Claude 3.5 Haiku

anthropic anthropic-claude-3.5-haiku

Copy model ID

PricingInput $0.80 / 1M tokens

Output $4.00 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[DV](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-V3.2)[Together AI](https://modelslab.com/models/together_ai)

 [Deepseek V3.2

Closed Source Model](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-V3.2)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-vl-30b-a3b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 VL 30B A3B Instruct

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-vl-30b-a3b-instruct)

[OG](https://modelslab.com/models/open_router/openai-gpt-4-turbo-preview)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-4 Turbo Preview

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-4-turbo-preview)

[NL](https://modelslab.com/models/open_router/nvidia-llama-3.1-nemotron-70b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [NVIDIA: Llama 3.1 Nemotron 70B Instruct

Closed Source Model](https://modelslab.com/models/open_router/nvidia-llama-3.1-nemotron-70b-instruct)

[AC](https://modelslab.com/models/open_router/anthropic-claude-opus-4.6-fast)[Open Router](https://modelslab.com/models/open_router)

 [Anthropic: Claude Opus 4.6 (Fast)

Closed Source Model](https://modelslab.com/models/open_router/anthropic-claude-opus-4.6-fast)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-30b-a3b-thinking-2507)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 30B A3B Thinking 2507

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-30b-a3b-thinking-2507)

[DV](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-V3.1)[Together AI](https://modelslab.com/models/together_ai)

 [Deepseek V3.1

Closed Source Model](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-V3.1)

[MM](https://modelslab.com/models/open_router/minimax-minimax-m2.5)[Open Router](https://modelslab.com/models/open_router)

 [MiniMax: MiniMax M2.5

Closed Source Model](https://modelslab.com/models/open_router/minimax-minimax-m2.5)

[MS](https://modelslab.com/models/open_router/mistralai-mistral-saba)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Saba

Closed Source Model](https://modelslab.com/models/open_router/mistralai-mistral-saba)

[LL](https://modelslab.com/models/open_router/liquid-lfm-2.5-1.2b-thinking-free)[Open Router](https://modelslab.com/models/open_router)

 [LiquidAI: LFM2.5-1.2B-Thinking (free)

Closed Source Model](https://modelslab.com/models/open_router/liquid-lfm-2.5-1.2b-thinking-free)

[G3](https://modelslab.com/models/together_ai/google-gemma-3n-E4B-it)[Together AI](https://modelslab.com/models/together_ai)

 [Gemma 3N E4B Instruct

Closed Source Model](https://modelslab.com/models/together_ai/google-gemma-3n-E4B-it)

[MV](https://modelslab.com/models/open_router/mistralai-voxtral-small-24b-2507)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Voxtral Small 24B 2507

Closed Source Model](https://modelslab.com/models/open_router/mistralai-voxtral-small-24b-2507)

[QN](https://modelslab.com/models/together_ai/Qwen-Qwen3-Next-80B-A3B-Thinking)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3 Next 80B A3b Thinking

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3-Next-80B-A3B-Thinking)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3.6-plus)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3.6 Plus

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3.6-plus)

[G4](https://modelslab.com/models/together_ai/zai-org-GLM-4.5-Air-FP8)[Together AI](https://modelslab.com/models/together_ai)

 [Glm 4.5 Air Fp8

Closed Source Model](https://modelslab.com/models/together_ai/zai-org-GLM-4.5-Air-FP8)

[MW](https://modelslab.com/models/open_router/mancer-weaver)[Open Router](https://modelslab.com/models/open_router)

 [Mancer: Weaver (alpha)

Closed Source Model](https://modelslab.com/models/open_router/mancer-weaver)

[GO](https://modelslab.com/models/together_ai/zai-org-GLM-OCR)[Together AI](https://modelslab.com/models/together_ai)

 [GLM OCR

Closed Source Model](https://modelslab.com/models/together_ai/zai-org-GLM-OCR)

[QV](https://modelslab.com/models/qwen/Qwen-Qwen2-VL-72B-Instruct)[ModelsLab](https://modelslab.com/models/qwen)

 [Qwen2-VL (72B) Instruct

Closed Source Model](https://modelslab.com/models/qwen/Qwen-Qwen2-VL-72B-Instruct)

About 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...

### Technical Specifications

Model IDanthropic-claude-3.5-haikuCategoryLLM ModelsTaskText GenerationPrice$2.400000 per million tokensAddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Anthropic: Claude 3.5 Haiku into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "anthropic-claude-3.5-haiku",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab.com/models/anthropic/anthropic-claude-3.5-haiku/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Anthropic: Claude 3.5 Haiku API costs $2.400000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Anthropic](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Anthropic: Claude 3.5 Haiku FAQ
---

### What is 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...

### How do I use the Anthropic: Claude 3.5 Haiku API?

You can integrate Anthropic: Claude 3.5 Haiku into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "anthropic-claude-3.5-haiku" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Anthropic: Claude 3.5 Haiku cost?

Anthropic: Claude 3.5 Haiku costs $2.400000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Anthropic: Claude 3.5 Haiku model ID?

The model ID for Anthropic: Claude 3.5 Haiku is "anthropic-claude-3.5-haiku". Use this ID in your API requests to specify this model.

### Does Anthropic: Claude 3.5 Haiku have a free tier?

Yes, ModelsLab offers a free tier that lets you try Anthropic: Claude 3.5 Haiku and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-04-15*