Get started
Meta
Meta

Llama 3.1 Instruct 8b

Llama 3.1 Instruct 8b is a large language model by Meta with support for function calling. It supports a 128K token context window with up to 8K tokens of output. Priced at $0.05 per million input tokens and $0.08 per million output tokens, it is one of the most cost-efficient options in its class. Access Llama 3.1 Instruct 8b through Inworld Router with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.
Function Calling

Step 1 — Create Router

curl --location 'https://api.inworld.ai/router/v1/routers' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "name": "compare-frontier-models", "defaultRoute": { "route_id": "default", "variants": [ { "variant": { "variant_id": "groq/llama-3-1-instruct-8b-a", "model_id": "groq/llama-3-1-instruct-8b" }, "weight": 33 }, { "variant": { "variant_id": "cerebras/llama-3-1-instruct-8b-b", "model_id": "cerebras/llama-3-1-instruct-8b" }, "weight": 33 }, { "variant": { "variant_id": "deepinfra/llama-3-1-instruct-8b-c", "model_id": "deepinfra/llama-3-1-instruct-8b" }, "weight": 34 } ] } }'

Step 2 — Chat Completion

curl --location 'https://api.inworld.ai/v1/chat/completions' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "model": "inworld/compare-frontier-models", "messages": [{"role": "user", "content": "Hello!"}] }'

Llama 3.1 Instruct 8b pricing and providers

Access Llama 3.1 Instruct 8b through Inworld Router or Realtime API via 3 inference providers. Compare pricing and specs across providers below.
CapabilitiesInput modalitiesOutput modalities
GroqGroq128K8.2K$0.05$0.08
CerebrasCerebras128K128K$0.10$0.10
DeepInfraDeepInfra131.1K131.1K$0.02$0.05

Other Meta models available through Inworld

Compare Llama 3.1 Instruct 8b with other Meta models available through Inworld Router or Realtime API.
CapabilitiesInput modalitiesOutput modalitiesInference provider
MetaLlama 3 Instruct 8b8.2K8.2K$0.03$0.04
MetaLlama 3.1 Instruct 70b131.1K131.1K$0.40$0.40
MetaLlama 3.1 Instruct 70b Turbo131.1K131.1K$0.40$0.40
MetaLlama 3.1 Instruct 8b Turbo131.1K131.1K$0.02$0.03
MetaLlama 3.2 Instruct 11b Vision131.1K131.1K$0.049$0.049
MetaLlama 3.3 Instruct 70b128K32.8K$0.59$0.79
MetaLlama 3.3 Instruct 70b Turbo131.1K131.1K$0.10$0.32
MetaLlama 4 Maverick1M1M$0.15$0.60
MetaLlama 4 Scout131.1K8.2K$0.08$0.30
MetaMeta Llama/Llama Guard 4 12B163.8K163.8K$0.18$0.18

Start building with Llama 3.1 Instruct 8b

Access Llama 3.1 Instruct 8b and every other model through Inworld Router or Realtime API. Create your free account and start routing in minutes.
Copyright © 2021-2026 Inworld AI