We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
Meta: Llama 3.1 70B Instruct
meta-llama/llama-3.1-70b-instructTry Meta: Llama 3.1 70B Instruct now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
Meta: Llama 3.1 70B Instruct at a glance
- Input price is 11% lower than the median of 434 Text models.
- Context window of 131,072 tokens, enough for long documents and multi-turn conversations.
- Supports tool (function) calling for agents and integrations.
- Supports structured JSON output with a schema.
- A typical request (1,000 input / 500 output tokens) costs about $0.00210.
About Meta: Llama 3.1 70B Instruct
Meta: Llama 3.1 70B Instruct is a text generation model from Meta, part of the Llama 3.1 family that launched on 23 July 2024. It is the 70 billion parameter version, tuned for instruction following, which means it is designed to respond to prompts and carry out dialogue rather than simply continue raw text. Meta positions this instruct variant as optimised for high quality dialogue use cases, and it sits in the middle of the Llama 3.1 range in terms of size.
The model accepts text as input and returns text as output, so it is a pure language model with no image, audio or video handling. Its context window is 131,072 tokens, which is large enough to hold long documents, extended conversations or sizeable code files in a single request. The maximum output length is 16,384 tokens, so responses can be substantial but are capped well below the input limit. Its knowledge cutoff is 31 December 2023, meaning anything after that date is outside what it learned during training.
Those characteristics point to a fairly clear set of practical uses. The long context suits summarisation and question answering over lengthy documents, contract review, research synthesis and multi turn chat where earlier parts of the conversation need to stay in view. Instruction tuning makes it a reasonable fit for assistants, drafting, rewriting, classification and extraction tasks. Because the model supports tool calling and structured outputs, it can also be used in pipelines where the model needs to return data in a defined shape or invoke external functions rather than only produce free text.
You call it through api14's OpenAI-compatible API using the model id meta-llama/llama-3.1-70b-instruct. Because the interface follows the OpenAI schema, you can point an existing OpenAI client at api14's base URL and pass that id in the model field. The request parameters it supports are frequency_penalty, logit_bias, max_tokens, min_p, presence_penalty, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k and top_p. That covers the usual sampling controls, deterministic output via seed, stop sequences, and both tool calling and structured output modes.
A few limits are worth keeping in mind when deciding. Output is capped at 16,384 tokens even though the context window is much larger, so tasks that need very long single responses may require splitting or a different model. The knowledge cutoff of 31 December 2023 means recent events are not covered unless you supply them in the prompt. And since input and output are text only, anything involving images or audio falls outside what this model can do.
How to call the Meta: Llama 3.1 70B Instruct API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "meta-llama/llama-3.1-70b-instruct".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "meta-llama/llama-3.1-70b-instruct",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
frequency_penaltylogit_biasmax_tokensmin_ppresence_penaltyrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_pSpecifications
- Context length
- 131,072
- Max output
- 16,384
- Input
- text
- Output
- text
- Knowledge cutoff
- 2023-12-31
Requests on api14 · last 7 days
Meta: Llama 3.1 70B Instruct: frequently asked questions
- How much does the Meta: Llama 3.1 70B Instruct API cost?
- Meta: Llama 3.1 70B Instruct costs Input $1.40 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of Meta: Llama 3.1 70B Instruct?
- Meta: Llama 3.1 70B Instruct reads up to 131,072 tokens per request: prompt, history and documents together. It writes up to 16,384 output tokens per response.
- What can Meta: Llama 3.1 70B Instruct do?
- Meta: Llama 3.1 70B Instruct accepts text and returns text. It supports tool calling, structured JSON output.
- How do I call Meta: Llama 3.1 70B Instruct from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "meta-llama/llama-3.1-70b-instruct". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Meta: Llama 3.1 70B Instruct?
- Comparable Text models at a similar price: TheDrummer: Cydonia 24B V4.1, Mistral: Saba, TheDrummer: UnslopNemo 12B. Each runs through the same API key, so switching is one string.
Meta: Llama 3.1 70B Instruct community
New topicThis community has no topics yet. Open the first one about Meta: Llama 3.1 70B Instruct.