Meta has launched a newer model, Llama 3.2 11B (Vision), we suggest considering this model instead.
For more information, see Comparison of Llama 3.2 11B (Vision) to other models and API provider benchmarks for Llama 3.2 11B (Vision).
Llama 3.1 Instruct 8B API Provider Benchmarking & Analysis
Analysis of API providers for Llama 3.1 Instruct 8B across performance metrics including latency (time to first token), output speed (output tokens per second), price and others. API providers benchmarked include CoreWeave, Microsoft Azure, Amazon Bedrock, Cloudflare, FriendliAI, CompactifAI, DeepInfra (Turbo, FP8), Cerebras, DeepInfra, Databricks, Groq, Scaleway, Novita.
Fastest
Output speed
Total 13 providers
Lowest Latency
Time to first answer token
Total 13 providers
Lowest Price
UpdatedBlended price (per 1M tokens)
Total 13 providers
Llama 3.1 8B is available through 13 API providers, each offering different performance characteristics and pricing. Below is a comparison of the key metrics across providers.
- For output speed, the top providers are Cerebras (2,349.9 t/s), Groq (663.4 t/s), FriendliAI (310.7 t/s). Speed varies significantly across providers, with a 1028% difference between the fastest and slowest.
- For latency, DeepInfra (Turbo, FP8) (0.64s), Cloudflare (0.65s), FriendliAI (0.68s) offer the lowest time to first token.
- For pricing, DeepInfra (Turbo, FP8) (0.02), DeepInfra (0.02), Novita (0.02) offer the lowest blended prices per 1M tokens. Prices vary up to 2.5x across providers.
- DeepInfra (Turbo, FP8) offers both the lowest latency and best pricing, making it attractive for cost-conscious applications. Cerebras is the fastest option for throughput-intensive workloads.
Highlights
Update: Default performance benchmarking workload has updated to 10k input tokens to better reflect production use cases. You can still select different workloads above.
PricingPricing now includes “Cache Hit Price” with new blend ratios.
Pricing: Cache Hit, Input, and Output
Pricing: Blended Price
Speed vs. Price
Speed
Measured by Output Speed (tokens per second)
Output Speed: Llama 3.1 8B Providers
Latency vs. Output Speed: Llama 3.1 8B Providers
Latency
Measured by Time (seconds) to First Token
Time to First Token: Llama 3.1 8B Providers
End-to-End Response Time
Seconds to output 500 tokens, calculated based on time to first token, 'thinking' time for reasoning models, and output speed
End-to-End Response Time: Llama 3.1 8B Providers
API Features
Summary Table of Key Comparison Metrics
Frequently Asked Questions
Common questions about Llama 3.1 Instruct 8B providers
Llama 3.1 Instruct 8B is available through 13 API providers: CoreWeave, Azure, Amazon, Cloudflare, FriendliAI, CompactifAI, DeepInfra (Turbo, FP8), Cerebras, DeepInfra, Databricks, Groq, Scaleway, and Novita. Each provider offers different performance characteristics and pricing.
Llama 3.1 Instruct 8B is currently available through 13 API providers that we benchmark and track.
The fastest providers for Llama 3.1 Instruct 8B by output speed are Cerebras (2,349.9 t/s), Groq (663.4 t/s), and FriendliAI (310.7 t/s). Output speed measures how quickly tokens are generated after the model starts responding.
The providers with the lowest time to first token for Llama 3.1 Instruct 8B are DeepInfra (Turbo, FP8) (0.64s), Cloudflare (0.65s), and FriendliAI (0.68s). Lower latency means faster initial response time.
The most affordable providers for Llama 3.1 Instruct 8B by blended price are DeepInfra (Turbo, FP8) ($0.02 per 1M tokens), DeepInfra ($0.02 per 1M tokens), and Novita ($0.02 per 1M tokens). Blended price uses a 7:2:1 cache hit/input/output token ratio.
The providers with the lowest input token pricing for Llama 3.1 Instruct 8B are CompactifAI ($0.02 per 1M input tokens), DeepInfra (Turbo, FP8) ($0.02 per 1M input tokens), and DeepInfra ($0.02 per 1M input tokens).
The providers with the lowest output token pricing for Llama 3.1 Instruct 8B are DeepInfra (Turbo, FP8) ($0.03 per 1M output tokens), DeepInfra ($0.05 per 1M output tokens), and Novita ($0.05 per 1M output tokens).
Prices for Llama 3.1 Instruct 8B vary up to 15.8x across providers. The most affordable is DeepInfra (Turbo, FP8) at $0.02 per 1M tokens, while Azure charges $0.33 per 1M tokens.
12 of 13 providers support JSON mode for Llama 3.1 Instruct 8B: CoreWeave, Azure, Cloudflare, FriendliAI, CompactifAI, DeepInfra (Turbo, FP8), Cerebras, DeepInfra, Databricks, Groq, Scaleway, and Novita.
11 of 13 providers support function calling for Llama 3.1 Instruct 8B: CoreWeave, Amazon, Cloudflare, FriendliAI, CompactifAI, DeepInfra (Turbo, FP8), Cerebras, DeepInfra, Databricks, Groq, and Scaleway.
The best provider for Llama 3.1 Instruct 8B depends on your priorities: Cerebras offers the highest output speed, DeepInfra (Turbo, FP8) has the lowest latency, and DeepInfra (Turbo, FP8) provides the most competitive pricing.
When choosing a provider for Llama 3.1 Instruct 8B, consider: output speed (for throughput-intensive tasks), latency (for interactive applications requiring quick first responses), pricing (for cost-sensitive workloads), and API features like JSON mode or function calling.
Yes, provider performance can vary over time due to infrastructure changes, load balancing, and updates. We continuously benchmark all providers and display historical performance trends in the "Over Time" charts.
For information about Llama 3.1 Instruct 8B's intelligence, capabilities, modalities, and how it compares to other models, see the model overview page. View model overview
DeepInfra (Turbo, FP8)
Cerebras
Databricks
Groq