Last refreshed 2026-07-26. 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 6 providers to find the best fit for your use caseSetup recipe
Python + curlpip install replicateexport REPLICATE_API_TOKEN=...import replicate
output = replicate.run(
"anthropic/claude-3.5-haiku",
input={"prompt": "Hello"}anthropic/claude-3.5-haikuRequest example
import replicate
# reads REPLICATE_API_TOKEN from env
# anthropic/claude-3.5-haiku format: "owner/model-name" (latest version) or "owner/model-name:version-hash"
output = replicate.run(
"anthropic/claude-3.5-haiku",
input={"prompt": "Hello"}
)
# Output is a list or generator depending on the model
print("".join(output))Gotchas
- Use provider model ID "anthropic/claude-3.5-haiku", not the LLMReference slug "claude-3.5-haiku".
- 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
| Provider | Input (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
| Type | Price (per 1M) |
|---|---|
| Input tokens | $1.00 |
| Output tokens | $5.00 |
Capabilities
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.