---
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-frontend-v2-927501783998.us-east4.run.app/models/anthropic/anthropic-claude-3.5-haiku/api.md
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/anthropic/anthropic-claude-3.5-haiku/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-05-13T09:44:42.818721Z
---

Anthropic: Claude 3.5 Haiku
---

 [LLMs.txt](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthropic-claude-3.5-haiku/llms.txt) [.md](https://modelslab-frontend-v2-927501783998.us-east4.run.app/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-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/qwen/Qwen-QwQ-32B)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/qwen)

 [Qwen QwQ-32B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/qwen/Qwen-QwQ-32B)

[DR](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/deepseek/deepseek-ai-DeepSeek-R1-Distill-Qwen-1.5B)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/deepseek)

 [DeepSeek R1 Distill Qwen 1.5B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/deepseek/deepseek-ai-DeepSeek-R1-Distill-Qwen-1.5B)

[Q3](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3.6-35B-A3B-FP8)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen3.6 35B A3b Fp8

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3.6-35B-A3B-FP8)

[MV](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthracite-org-magnum-v4-72b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Magnum v4 72B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthracite-org-magnum-v4-72b)

[L4](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-4-Scout-17B-16E)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Llama 4 Scout (17Bx16E)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-4-Scout-17B-16E)

[L3](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-3.3-70B-Instruct-FP8-Lora)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Llama 3.3 70B Instruct FP8 Lora

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-3.3-70B-Instruct-FP8-Lora)

[N3](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/nim-nvidia-llama-3.3-nemotron-super-49b-v1)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [nim/nvidia/llama-3.3-nemotron-super-49b-v1

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/nim-nvidia-llama-3.3-nemotron-super-49b-v1)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-3.1-405B-Instruct)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Meta Llama 3.1 405B Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-3.1-405B-Instruct)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-2-7b-chat-hf)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [meta-llama/Llama-2-7b-chat-hf

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-2-7b-chat-hf)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/alibaba_cloud/qwen-qwen3.5-122b-a10b)[Alibaba](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/alibaba_cloud)

 [Qwen: Qwen3.5-122B-A10B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/alibaba_cloud/qwen-qwen3.5-122b-a10b)

[MM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-ministral-14b-2512)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Mistral: Ministral 3 14B 2512

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-ministral-14b-2512)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-32b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3 32B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-32b)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-3.3-70b-instruct)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Meta: Llama 3.3 70B Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-3.3-70b-instruct)

[PS](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/perplexity-sonar-reasoning-pro)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Perplexity: Sonar Reasoning Pro

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/perplexity-sonar-reasoning-pro)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-14b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3 14B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-14b)

[SL](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/sao10k-l3.1-70b-hanami-x1)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Sao10K: Llama 3.1 70B Hanami x1

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/sao10k-l3.1-70b-hanami-x1)

[NN](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/nvidia-nemotron-3-super-120b-a12b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [NVIDIA: Nemotron 3 Super

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/nvidia-nemotron-3-super-120b-a12b)

[XM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/xiaomi-mimo-v2-flash)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Xiaomi: MiMo-V2-Flash

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/xiaomi-mimo-v2-flash)

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-frontend-v2-927501783998.us-east4.run.app/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-frontend-v2-927501783998.us-east4.run.app/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-frontend-v2-927501783998.us-east4.run.app/pricing)

### Use Cases

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

[Learn more about Anthropic: Claude 3.5 Haiku](https://modelslab-frontend-v2-927501783998.us-east4.run.app/anthropic-claude-35-haiku) [Browse LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster) [More from Anthropic](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router) [View Pricing](https://modelslab-frontend-v2-927501783998.us-east4.run.app/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-05-13*