meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo vs Qwen3 4B

meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo is 1.5× cheaper for input tokens: meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo costs $0.02 per M and Qwen3 4B costs $0.03 per M. Qwen3 4B is 1.3× cheaper for output tokens: meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo costs $0.04 per M and Qwen3 4B costs $0.03 per M. About the same: meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo takes up to 131,072 tokens of context and Qwen3 4B up to 128,000.

meta-llama/Meta-Llama-3.1-8B-Instruct-TurboQwen3 4B
Model idmeta-llama/Meta-Llama-3.1-8B-Instruct-Turboqwen/qwen3-4b-fp8
Input$0.02 per M$0.03 per M
Output$0.04 per M$0.03 per M
Context length131,072 tokens128,000 tokens
Acceptstexttext
Producestexttext
Served bydeepinfranovita

Prices are the providers' list prices per million tokens, as of . Both run on your own provider key through one OpenAI-compatible endpoint, with no fee on the tokens.