Skip to main content

Llama 3.1 8B

Approved Data Classifications

Description

Llama-3.1-8B is Meta's compact instruction model for multilingual text tasks. It was released on April 17, 2024 and supports a 128,000-token context window.

Capabilities

ModelRelease DateInputOutputContext LengthCost (per 1 million tokens)
llama-3.1-8b-instructApr 17 2024TextText128,000$0.22/1M input
$0.22/1M output
info
  • 1M represents 1 Million Tokens
  • All prices listed are based on 1 Million Tokens

Availability

Cloud Provider

Usage

curl -X POST https://api.ai.it.ufl.edu/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <API_TOKEN>" \
-d '{
"model": "llama-3.1-8b-instruct",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Write a haiku about an Alligator."
}
]
}'

References

  1. Meta
    https://ai.meta.com/
  2. LLM Stats
    https://llm-stats.com
  3. Artificial Analysis
    https://artificialanalysis.ai