Roar AI
Mulai gratis
All models
Meta · Open weights

Llama 3.1 8B API di Indonesia

Llama 3.1 8B costs Rp 1,321 per million input tokens and Rp 2,114 per million output tokens on Roar AI, charged in Indonesian rupiah. Meta’s small Llama: quick and very cheap for simple, high-volume text work.

InputRp 1,321per 1M tokens
OutputRp 2,114per 1M tokens
Context window128Ktokens

Llama 3.1 8B API pricing in IDR

InputRp 1,321 per 1M tokens
OutputRp 2,114 per 1M tokens

Example: 1,000 requests with 3,000 input and 1,000 output tokens each cost Rp 6,079. Every rate is published and stays the same from one request to the next. See every model, or estimate a monthly bill with the token calculator, in US dollars.

Rates as of 1 December 2026. The IDR conversion rate is set each month. The published rate for December 2026 also applies when you top up by card.

Specs

Made byMeta
ReleasedJuly 2024
TypeChat
Context window128K tokens
ReadsText
Thinks before answeringNo
WeightsOpen (Llama 3.1 Community License)
Size8B, dense
Processed inGlobal
Model idllama-3.1-8b

About Llama 3.1 8B

Llama 3.1 8B is the smallest model in Meta’s Llama 3.1 family and one of the most widely used open models anywhere. It has no reasoning mode and makes no pretence of one: it is fast, very inexpensive, follows instructions well for its size (80.4% on IFEval) and handles a 128K-token context.

Use it where the task is simple and the volume is high, such as routing messages, tagging, short summaries and pulling out a few fields. For anything that needs real reasoning, a 2026 small model will do much better.

What is Llama 3.1 8B good for?

  • Routing, tagging and extraction at very low cost.
  • Short summaries and simple chat.
  • Steps in a pipeline where speed matters more than depth.

Llama 3.1 8B limitations

  • Its knowledge stops at December 2023.
  • Weak at maths and multi-step reasoning next to newer small models.
  • Meta’s licence carries use restrictions; it is not open source in the OSI sense.

Using the Llama 3.1 8B API

Access Llama 3.1 8B through the Roar AI gateway with your Roar AI API key, and pay for usage from your IDR-funded credit balance. Requests from Indonesia enter through Roar AI’s Singapore gateway.

Use the OpenAI SDK you already have: point it at Roar AI and set the model name. Read the docs.

from openai import OpenAI

client = OpenAI(base_url="https://api.roar-ai.com/v1", api_key="roar_live_…")

reply = client.chat.completions.create(
    model="llama-3.1-8b",
    messages=[{"role": "user", "content": "Summarise this contract in plain English."}],
)

Where is Llama 3.1 8B processed?

Requests to Llama 3.1 8B are processed on international infrastructure, outside Indonesia. The model directory says where each model is processed.

Llama 3.1 8B FAQ

Berapa biaya API Llama 3.1 8B?

Input is Rp 1,321 per 1M tokens; output is Rp 2,114 per 1M tokens. For example, 1,000 requests with 3,000 input and 1,000 output tokens each cost Rp 6,079. The IDR conversion rate is set each month. The published rate for December 2026 also applies when you top up by card.

Can I pay for Llama 3.1 8B in rupiah?

Yes. Roar AI charges card top-ups in IDR at its published monthly rate. Usage draws from the same credit balance as your other models. No separate Meta account is needed.

Is Llama 3.1 8B open source?

Its weights are open under the Llama 3.1 Community License licence, so you could run it yourself. Through Roar AI you call it like any other model, with no servers to manage.

What is the context window of Llama 3.1 8B?

Llama 3.1 8B can read up to 128K tokens in one request.

Can Llama 3.1 8B read images and PDFs?

It reads text only. You can still send it a PDF: Roar AI turns each page into text first, at no extra charge. Scanned pages need a model that can see images.

Start using Llama 3.1 8B

Create a free account, get an API key and call Llama 3.1 8B with the OpenAI SDK. Top up your credits in rupiah.