Llama 3.1 8B

Meta

Meta's smallest Llama 3.1 model. Open weights, deploy anywhere. Great for self-hosted applications.

Context Window: 128K tokens Released: 2024-07 Best For: Self-hosted AI, fine-tuning, budget applications
  • Open weights
  • Self-hostable
  • Fine-tunable
  • Llama 3.1 8B Pricing

    Token TypePrice per Million
    Input tokens$0.050
    Output tokens$0.100

    Estimated Cost by Project Size

    Realistic cost estimates for common coding scenarios. Assumes 30% cache hit rate where caching is available.

    ScenarioToken UsageEstimated Cost
    Small Script (1K lines) 50K input / 30K output <$0.01
    Medium Feature (10K lines) 500K input / 200K output $0.04
    Large Project (50K lines) 2,500K input / 1,000K output $0.19
    Code Review (5K lines) 250K input / 25K output $0.01

    Get Access to Llama 3.1 8B

    Ready to start using Llama 3.1 8B? Get API access directly from Meta.

    Get API Access → Try Llama 3.1 8B Free →

    How Does Llama 3.1 8B Compare?

    ModelInput ($/M)Medium Feature Cost
    Llama 3.1 8B $0.050 $0.04 selected
    MiniMax Text 01 $0.050 $0.06 Compare
    Stable Code 3B $0.050 $0.06 Compare
    Phi-3 Mini $0.050 $0.04 Compare
    Amazon Nova Lite $0.060 $0.07 Compare
    Gemini 2.5 Flash Lite $0.037 $0.04 Compare

    Related Models

    Categories