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

Anthropic: Claude 3 Haiku
---

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

anthropic-claude-3-haiku anthropic Closed Source Model $0.750000 / call

Anthropic: Claude 3 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 Haiku

anthropic anthropic-claude-3-haiku

Copy model ID

PricingInput $0.25 / 1M tokens

Output $1.25 / 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)

[OO](https://modelslab.com/models/open_router/openai-o3-mini)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: o3 Mini

Closed Source Model](https://modelslab.com/models/open_router/openai-o3-mini)

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

 [Qwen: Qwen3 Coder Flash

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

[SL](https://modelslab.com/models/open_router/sao10k-l3.3-euryale-70b)[Open Router](https://modelslab.com/models/open_router)

 [Sao10K: Llama 3.3 Euryale 70B

Closed Source Model](https://modelslab.com/models/open_router/sao10k-l3.3-euryale-70b)

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

 [Qwen: Qwen3 30B A3B

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

[ML](https://modelslab.com/models/together_ai/meta-llama-Llama-3.2-1B-Instruct)[Together AI](https://modelslab.com/models/together_ai)

 [Meta Llama 3.2 1B Instruct

Closed Source Model](https://modelslab.com/models/together_ai/meta-llama-Llama-3.2-1B-Instruct)

[N8](https://modelslab.com/models/together_ai/nim-mistralai-mixtral-8x22b-instruct-v01)[Together AI](https://modelslab.com/models/together_ai)

 [nim/mistralai/mixtral-8x22b-instruct-v01

Closed Source Model](https://modelslab.com/models/together_ai/nim-mistralai-mixtral-8x22b-instruct-v01)

[XG](https://modelslab.com/models/open_router/x-ai-grok-3-mini-beta)[Open Router](https://modelslab.com/models/open_router)

 [xAI: Grok 3 Mini Beta

Closed Source Model](https://modelslab.com/models/open_router/x-ai-grok-3-mini-beta)

[MK](https://modelslab.com/models/open_router/moonshotai-kimi-k2-thinking)[Open Router](https://modelslab.com/models/open_router)

 [MoonshotAI: Kimi K2 Thinking

Closed Source Model](https://modelslab.com/models/open_router/moonshotai-kimi-k2-thinking)

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

 [MiniMax: MiniMax M2.1

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

[GG](https://modelslab.com/models/open_router/google-gemma-4-31b-it)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemma 4 31B

Closed Source Model](https://modelslab.com/models/open_router/google-gemma-4-31b-it)

[AO](https://modelslab.com/models/open_router/allenai-olmo-3-32b-think)[Open Router](https://modelslab.com/models/open_router)

 [AllenAI: Olmo 3 32B Think

Closed Source Model](https://modelslab.com/models/open_router/allenai-olmo-3-32b-think)

[![GPT-5](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/a05bf5f0-fe1a-4815-b135-3325beef2516.webp)](https://modelslab.com/models/openai/gpt-5)[Open Ai](https://modelslab.com/models/openai)

 [GPT-5

Closed Source Model](https://modelslab.com/models/openai/gpt-5)

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

 [OpenAI: GPT-3.5 Turbo Instruct

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

[OG](https://modelslab.com/models/open_router/openai-gpt-4o-2024-11-20)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-4o (2024-11-20)

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-4o-2024-11-20)

[Q7](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-7B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen2.5 7B

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-7B)

[SM](https://modelslab.com/models/together_ai/sarvamai-sarvam-m)[Together AI](https://modelslab.com/models/together_ai)

 [Sarvam M

Closed Source Model](https://modelslab.com/models/together_ai/sarvamai-sarvam-m)

[TR](https://modelslab.com/models/open_router/thedrummer-rocinante-12b)[Open Router](https://modelslab.com/models/open_router)

 [TheDrummer: Rocinante 12B

Closed Source Model](https://modelslab.com/models/open_router/thedrummer-rocinante-12b)

[L3](https://modelslab.com/models/together_ai/meta-llama-Llama-3.2-1B)[Together AI](https://modelslab.com/models/together_ai)

 [Llama 3.2 1B

Closed Source Model](https://modelslab.com/models/together_ai/meta-llama-Llama-3.2-1B)

About 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

### Technical Specifications

Model IDanthropic-claude-3-haikuCategoryLLM ModelsTaskText GenerationPrice$0.750000 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 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-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-haiku/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Anthropic: Claude 3 Haiku API costs $0.750000 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

[Learn more about Anthropic: Claude 3 Haiku](https://modelslab.com/anthropic-claude-3-haiku) [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 Haiku FAQ
---

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

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

You can integrate Anthropic: Claude 3 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-haiku" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

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

Anthropic: Claude 3 Haiku costs $0.750000 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 Haiku model ID?

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

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

Yes, ModelsLab offers a free tier that lets you try Anthropic: Claude 3 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*