Follow us on Twitter or LinkedIn to stay up to date with future analysis
logo

Llama 3 8B: API Provider Benchmarking & Analysis

Analysis of API providers for Llama 3 Instruct 8B across performance metrics including latency (time to first token), output speed (output tokens per second), price and others. API providers benchmarked include Novita, Amazon Bedrock, Replicate, Deepinfra.
Note: Some providers are deprecating their Llama 3 endpoints in favour of Llama 3.1 endpoints

Meta has launched a newer model, Llama 3.1 8B, we suggest considering this model instead.

For more information, see Comparison of Llama 3.1 8B to other models and API provider benchmarks for Llama 3.1 8B.

Owner:
Meta
License:
Open
Context window:
8k
Link:

Comparison Summary

Output Speed (tokens/s):Llama 3 8B, Amazon logo Amazon (84 t/s) and  Llama 3 8B, Novita logo Novita (73 t/s) are the fastest providers of Llama 3 8B, followed by Llama 3 8B, Replicate logo Replicate (66 t/s) & Llama 3 8B, Deepinfra logo Deepinfra (44 t/s).Latency (TTFT):Llama 3 8B, Deepinfra logo Deepinfra (0.30s) and  Llama 3 8B, Amazon logo Amazon (0.31s) have the lowest latency for Llama 3 8B, followed by Llama 3 8B, Replicate logo Replicate (0.42s) & Llama 3 8B, Novita logo Novita (0.79s).Blended Price ($/M tokens):Llama 3 8B, Deepinfra logo Deepinfra ($0.04) and  Llama 3 8B, Novita logo Novita ($0.04) are the most cost-effective providers for Llama 3 8B, followed by Llama 3 8B, Replicate logo Replicate ($0.10) & Llama 3 8B, Amazon logo Amazon ($0.38).Input Token Price:Llama 3 8B, Deepinfra logo Deepinfra ($0.03) and  Llama 3 8B, Novita logo Novita ($0.04) offer the lowest input token prices for Llama 3 8B, followed by Llama 3 8B, Replicate logo Replicate ($0.05) & Llama 3 8B, Amazon logo Amazon ($0.30).Output Token Price:Llama 3 8B, Novita logo Novita ($0.04) and  Llama 3 8B, Deepinfra logo Deepinfra ($0.06) offer the lowest output token prices for Llama 3 8B, followed by Llama 3 8B, Replicate logo Replicate ($0.25) & Llama 3 8B, Amazon logo Amazon ($0.60).

Highlights

Intelligence
Artificial Analysis Intelligence Index; Higher is better
Estimate (independent evaluation forthcoming)
Speed
Output Tokens per Second; Higher is better
Price
USD per 1M Tokens; Lower is better
Parallel Queries:
Prompt Length:
Note: Long prompts not supported as a context window of at least 10k tokens is required

Speed vs. Price

Output Speed: Output Tokens per Second; Price: USD per 1M Tokens
Most attractive quadrant
Amazon
Deepinfra
Novita
Replicate

Tokens per second received while the model is generating tokens (ie. after first chunk has been received from the API for models which support streaming).

Price per token, represented as USD per million Tokens. Price is a blend of Input & Output token prices (3:1 ratio).

Figures represent median (P50) measurement over the past 72 hours to reflect sustained changes in performance.

Pricing: Input and Output Prices

USD per 1M Tokens; Lower is better
Input price
Output price

Price per token included in the request/message sent to the API, represented as USD per million Tokens.

Price per token generated by the model (received from the API), represented as USD per million Tokens.

Latency vs. Output Speed

Latency: Seconds to First Token Received; Output Speed: Output Tokens per Second; 1,000 Input Tokens
Most attractive quadrant
Size represents Price (USD per M Tokens)
Amazon
Deepinfra
Novita
Replicate

Tokens per second received while the model is generating tokens (ie. after first chunk has been received from the API for models which support streaming).

Time to first token received, in seconds, after API request sent. For reasoning models which share reasoning tokens, this will be the first reasoning token. For models which do not support streaming, this represents time to receive the completion.

Price per token, represented as USD per million Tokens. Price is a blend of Input & Output token prices (3:1 ratio).

Figures represent median (P50) measurement over the past 72 hours to reflect sustained changes in performance.

Speed

Measured by Output Speed (tokens per second)

Output Speed

Output Tokens per Second; Higher is better; 1,000 Input Tokens

Tokens per second received while the model is generating tokens (ie. after first chunk has been received from the API for models which support streaming).

Figures represent median (P50) measurement over the past 72 hours to reflect sustained changes in performance.

Output Speed by Input Token Count (Context Length)

Output Tokens per Second; Higher is better
Medium_coding
100 input tokens
1k input tokens

Length of tokens provided in the request. See Prompt Options above to see benchmarks of different input prompt lengths across other charts.

Tokens per second received while the model is generating tokens (ie. after first chunk has been received from the API for models which support streaming).

Figures represent median (P50) measurement over the past 72 hours to reflect sustained changes in performance.

Output Speed Variance

Output Tokens per Second; Results by percentile; Higher is better; 1,000 Input Tokens
Median; other points represent Min, 25th, 75th percentiles and Max respectively

Tokens per second received while the model is generating tokens (ie. after first chunk has been received from the API for models which support streaming).

Picture of the author

Latency

Measured by Time (seconds) to First Token

Time to First Token

Seconds to First Token Received; Lower is better; 1,000 Input Tokens

Time to first token received, in seconds, after API request sent. For reasoning models which share reasoning tokens, this will be the first reasoning token. For models which do not support streaming, this represents time to receive the completion.

Figures represent median (P50) measurement over the past 72 hours to reflect sustained changes in performance.

Latency by Input Token Count (Context Length)

Seconds to First Token Received; Lower is better
Medium_coding
100 input tokens
1k input tokens

Length of tokens provided in the request. See Prompt Options above to see benchmarks of different input prompt lengths across other charts.

Time to first token received, in seconds, after API request sent. For reasoning models which share reasoning tokens, this will be the first reasoning token. For models which do not support streaming, this represents time to receive the completion.

Figures represent median (P50) measurement over the past 72 hours to reflect sustained changes in performance.

Time to First Token Variance

Seconds to First Token Received; Results by percentile; Lower median is better; 1,000 Input Tokens
Median; other points represent Min, 25th, 75th percentiles and Max respectively

Time to first token received, in seconds, after API request sent. For reasoning models which share reasoning tokens, this will be the first reasoning token. For models which do not support streaming, this represents time to receive the completion.

Picture of the author

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 vs. Price

End-to-End Response Time: End-to-End Seconds to Output 500 Tokens; Price: USD per 1M Tokens
Most attractive quadrant
Amazon
Deepinfra
Novita
Replicate

Price per token, represented as USD per million Tokens. Price is a blend of Input & Output token prices (3:1 ratio).

Seconds to receive a 500 token response considering input processing time, 'thinking' time of reasoning models, and output speed.

Figures represent median (P50) measurement over the past 72 hours to reflect sustained changes in performance.

End-to-End Response Time

Seconds to Output 500 Tokens, including reasoning model 'thinking' time; Lower is better; 1,000 Input Tokens
'Thinking' time (reasoning models)
Input processing time
Outputting time

Seconds to receive a 500 token response. Key components:

  • Input time: Time to receive the first response token
  • Thinking time (only for reasoning models): Time reasoning models spend outputting tokens to reason prior to providing an answer. Amount of tokens based on the average reasoning tokens across a diverse set of 60 prompts (methodology details).
  • Answer time: Time to generate 500 output tokens, based on output speed

For fair comparison, the number of reasoning tokens is standardized across all providers for each model based on the model's representative query token counts.

Figures represent median (P50) measurement over the past 72 hours to reflect sustained changes in performance.

End-to-End Response Time by Input Token Count (Context Length)

Seconds to Output 500 Tokens, including reasoning model 'thinking' time; Lower is better
Medium_coding
100 input tokens
1k input tokens

Length of tokens provided in the request. See Prompt Options above to see benchmarks of different input prompt lengths across other charts.

Seconds to receive a 500 token response considering input processing time, 'thinking' time of reasoning models, and output speed.

Figures represent median (P50) measurement over the past 72 hours to reflect sustained changes in performance.

API Features

Function (Tool) Calling & JSON Mode

ModelsFunction callingJSON Mode
Novita logoNovita
Amazon logoAmazon
Replicate logoReplicate
Deepinfra logoDeepinfra

Indicates whether the provider supports function calling in their API. Function calling is also known as 'Tool Calling'.

Indicates whether the provider supports JSON mode in their API. When JSON mode is enabled, the models will always return a valid JSON object.

Context Window

Context Window: Tokens Limit; Higher is better

Maximum number of combined input & output tokens. Output tokens commonly have a significantly lower limit (varied by model).

While models have their own context window, in cases this is limited by providers.

Summary Table of Key Comparison Metrics

Features
Model
Intelligence
Price
Speed
Latency
End-to-End
Response
Time
Novita logo

Novita

Meta logo
Llama 3 8B
8k
--
--
$0.04
73
0.79
7.60
N/A
Amazon Bedrock logo

Amazon Bedrock

Meta logo
Llama 3 8B
8k
--
--
$0.38
84
0.31
6.23
N/A
Replicate logo

Replicate

Meta logo
Llama 3 8B
8k
--
--
$0.10
66
0.42
7.99
N/A
Deepinfra logo

Deepinfra

Meta logo
Llama 3 8B
8k
--
--
$0.04
44
0.30
11.73
N/A