LLM ReferenceLLM Reference
Replicate API

Claude 3.5 Haiku on Replicate API

Claude 3.5 · Anthropic

Serverless

Last refreshed 2026-04-19. Next refresh: weekly.

Why use Claude 3.5 Haiku on Replicate API?

Replicate API offers Claude 3.5 Haiku with pay-as-you-go pricing at $1.00/1M input tokens. Replicate is a cloud-based platform that enables users to run machine learning models easily and efficiently.

Compare Claude 3.5 Haiku across 5 providers to find the best fit for your use case
Input / 1M
$1.00
Output / 1M
$5.00
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install replicate
Auth
export REPLICATE_API_TOKEN=...
Call
import replicate
output = replicate.run(
    "claude-3.5-haiku",
    input={"prompt": "Hello"}
Model ID
claude-3.5-haiku

Request example

import replicate

# reads REPLICATE_API_TOKEN from env
# claude-3.5-haiku format: "owner/model-name" (latest version) or "owner/model-name:version-hash"
output = replicate.run(
    "claude-3.5-haiku",
    input={"prompt": "Hello"}
)
# Output is a list or generator depending on the model
print("".join(output))

Gotchas

  • Replicate uses "owner/model-name" format (e.g. "meta/meta-llama-3-8b-instruct") for the latest version, or "owner/model-name:version-sha" to pin to a specific version. The REST endpoint splits owner and model-name into the path: /v1/models/{owner}/{model-name}/predictions.
  • The examples expect REPLICATE_API_TOKEN; rename it only if your application config maps the new variable.

Compare Claude 3.5 Haiku Across Providers

ProviderInput (per 1M)Output (per 1M)
Anthropic$0.80$4.00
OpenRouter$0.80$4.00
AWS Bedrock$0.80$4.00
GCP Vertex AI$0.80$4.00
Replicate API$1.00$5.00

Pricing

TypePrice (per 1M)
Input tokens$1.00
Output tokens$5.00

Capabilities

VisionReasoningStructured OutputsCode Execution

About Claude 3.5 Haiku

Claude 3.5 Haiku is Anthropic's latest AI model, known for its speed and efficiency while maintaining high intelligence. It is optimized for applications needing rapid response, like interactive chatbots and real-time content moderation. Initially text-only, future plans include image input capabilities. It excels in delivering fast, accurate code suggestions, processing and categorizing information swiftly, and handling large volumes of user interactions. Priced accessibly, it offers advanced coding, tool use, and reasoning abilities. Though initially surpassing Claude 3 Haiku in benchmarks, its pricing reflects its enhanced performance 123457.

FAQ

What does Claude 3.5 Haiku cost on Replicate API?

On Replicate API, Claude 3.5 Haiku costs $1 per 1M input tokens and $5 per 1M output tokens.

What is the context window for Claude 3.5 Haiku on Replicate API?

Claude 3.5 Haiku supports a 200,000 token context window on Replicate API.

How does Replicate API compare to other Claude 3.5 Haiku providers?

Claude 3.5 Haiku is available from 5 providers. The cheapest input pricing is $0.8/1M tokens from Anthropic.

Who created Claude 3.5 Haiku?

Claude 3.5 Haiku was created by Anthropic as part of the Claude 3.5 model family.

Is Claude 3.5 Haiku open source?

Claude 3.5 Haiku's open source status is unknown in the seed data.

Get Started

Model Specs

Released2024-10-22
Context200k
ArchitectureDecoder Only

Related Models on Replicate API