opencheap.si
鸣谢

meta-llama/Llama-3.1-8B-InstructAPI pricing

Llama 3.1 8B Instruct is an 8-billion-parameter instruction-tuned text model from Meta's Llama 3.1 family. It is built for chat and text generation, and it is set up for conversational use with transformers tooling.

每100万枚代币的价格
$0.02 / $0.04input / output−50%
上下文
13.1万枚代币最大产出量为11.7万枚
服务提供商
7
最快
554 tok/sGroq

服务提供商

7 providers ·

  • 131K 上下文

    支持的参数9

    抽样
    温度top_ptop_k种子logit_bias
    处罚
    频率惩罚存在惩罚
    输出
    停止response_format
    未确认
    工具
  • 131K context · 16K max output

    支持的参数9

    抽样
    温度top_p种子logit_bias
    处罚
    存在惩罚
    输出
    停止response_format
    工具
    工具工具选择
  • 131K context · 16K max output

    支持的参数11

    抽样
    温度top_ptop_kmin_p种子logit_bias
    处罚
    重复惩罚频率惩罚存在惩罚
    输出
    停止response_format
    未确认
    工具
  • 13.1万上下文 · 11.7万最大输出量

    支持的参数7

    抽样
    温度top_p种子
    输出
    停止response_format
    工具
    工具工具选择
  • 13.1K 上下文 · 8.1K 最大输出

    Supported parameters 4

    抽样
    温度top_ptop_k
    输出
    停止
    未确认
    工具
  • 13.1万上下文 · 11.7万最大输出量

    支持的参数14

    抽样
    温度top_ptop_k种子
    处罚
    重复惩罚频率惩罚存在惩罚
    输出
    停止response_format结构化输出logprobstop_logprobs
    工具
    工具工具选择
  • 1 more provider through partner hosts · from $0.021 in · $0.042 out

* 无缓存折扣:缓存代币按输入价格计费。

路由

按价格筛选的请求 (:floor) 或按速度 (provider.sort, :nitro),或为每秒代币数量设定下限. 路由的工作原理

支持的参数

根据该模型支持的参数,从其已发布的列表以及我们针对参数是否生效所进行的测试结果中,选择一个提供商。测试结果仅为某个时刻的快照,并非保证; provider.require_parameters 仅向支持其设置的所有参数的服务提供商发送请求。 必填参数

价格走势

未选择服务提供商
正在加载……

API

curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/llama-3.1-8b", "messages": [{ "role": "user", "content": "Hi" }] }'

致电 meta-llama/Llama-3.1-8B-Instruct 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/llama-3.1-8b;其余代码保持不变。

About meta-llama/Llama-3.1-8B-Instruct

标价
$0.05 / $0.08in / out per 1M
保存与列表
52 %on a 1 : 3 input-to-output mix
请求示例
$0.0002410,000 in + 1,000 out
端点
https://api.opencheap.si/v1
模型 ID

每个请求都会发送给模型中成本最低且状态正常的提供者,而每个响应都会报告其成本为 使用成本. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, https://api.opencheap.si/v1.

用文字表述价格

meta-llama/Llama-3.1-8B-Instruct costs from $0.02 per 1M input tokens and $0.04 per 1M output tokens on OpenCheap. Its list price is $0.05 per 1M input tokens and $0.08 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 52 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.00024, and 1,000 such requests about $0.24.

7 providers serve meta-llama/Llama-3.1-8B-Instruct on OpenCheap. Its context window is 131K tokens (131,072), room for roughly 98,000 words of English in one request.

meta-llama/Llama-3.1-8B-Instruct is one of 25 Meta models on OpenCheap.

The public list price is $0.05 per 1M input tokens and $0.08 per 1M output tokens. OpenCheap is from $0.02 and $0.04, as of 2026-12-04 11:48 UTC.

Prices as of 2026-12-04 11:48 UTC.

关于定价的问题

How much does the meta-llama/Llama-3.1-8B-Instruct API cost per 1M tokens?

meta-llama/Llama-3.1-8B-Instruct costs from $0.02 per 1M input tokens and $0.04 per 1M output tokens on OpenCheap. Prices as of 2026-12-04 11:48 UTC.

What does one meta-llama/Llama-3.1-8B-Instruct request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.00024, and 1,000 such requests about $0.24. Every answer reports its own cost in usage.cost.

Is meta-llama/Llama-3.1-8B-Instruct cheaper on OpenCheap than its list price?

Its list price is $0.05 per 1M input tokens and $0.08 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 52 % less here.

Which providers serve meta-llama/Llama-3.1-8B-Instruct?

7 providers serve meta-llama/Llama-3.1-8B-Instruct on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

What is the context window of meta-llama/Llama-3.1-8B-Instruct?

其上下文窗口为131K个令牌(131,072),单次请求中可容纳约98,000个英语单词。

How do I call the meta-llama/Llama-3.1-8B-Instruct API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/llama-3.1-8b. One OpenCheap key works for every model; the rest of your code stays the same.

More from Meta

All 25 Meta models →

类似型号

Compare meta-llama/Llama-3.1-8B-Instruct with any model →Cheapest LLM API