OpenRouter 提供的 meta-llama/llama-3.3-70b-instruct 模型 API,$0.59 / $0.79 每百万 token,上下文 131,072 token。提供 curl、Python、JavaScript 示例及在线测试。
The Meta Llama 3.3 multilingual large language model (LLM) is a pretrained and instruction tuned generative model in 70B (text in/text out). The Llama 3.3 instruction tuned text only model...
- 类型
- 模型
- 服务商
- OpenRouter
- 模型 ID
meta-llama/llama-3.3-70b-instruct- 价格
- 付费
- 输入 / 输出价格
- $0.59 / $0.79 每百万 token
- 无需密钥访问
- 否
- 密钥环境变量
OPENROUTER_API_KEY- Base URL(兼容 OpenAI)
https://openrouter.ai/api/v1- 上下文
- 131,072 token
- 输入
- 文本
- 功能
- JSON 输出, 工具调用
- 开发者评分
- 暂无评分
- 文档
- https://openrouter.ai/meta-llama/llama-3.3-70b-instruct
代码示例
cURL
curl https://openrouter.ai/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-d '{"model":"meta-llama/llama-3.3-70b-instruct","messages":[{"role":"user","content":"你好,请用一句话介绍你自己。"}]}'Python
# pip install openai
import os
from openai import OpenAI
client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key=os.environ["OPENROUTER_API_KEY"])
r = client.chat.completions.create(
model="meta-llama/llama-3.3-70b-instruct",
messages=[{"role": "user", "content": "你好,请用一句话介绍你自己。"}],
)
print(r.choices[0].message.content)JavaScript
// npm install openai
import OpenAI from 'openai'
const client = new OpenAI({ baseURL: 'https://openrouter.ai/api/v1', apiKey: process.env.OPENROUTER_API_KEY })
const r = await client.chat.completions.create({
model: 'meta-llama/llama-3.3-70b-instruct',
messages: [{ role: 'user', content: '你好,请用一句话介绍你自己。' }],
})
console.log(r.choices[0].message.content)
热门搜索
常见问题
Meta: Llama 3.3 70B Instruct API 免费吗?
否:Meta: Llama 3.3 70B Instruct 是付费 API($0.59 / $0.79 每百万 token)。
如何在代码中调用 Meta: Llama 3.3 70B Instruct?
Meta: Llama 3.3 70B Instruct 在 https://openrouter.ai/api/v1 提供兼容 OpenAI 的 API:使用任意 OpenAI SDK(Python、JavaScript 等)并设置该基础 URL 即可。 模型标识:meta-llama/llama-3.3-70b-instruct。 开发者工具箱中提供了即用代码(流式输出、JSON、重试)。
Meta: Llama 3.3 70B Instruct 的上下文窗口有多大?
Meta: Llama 3.3 70B Instruct 最多支持 131,072 个令牌的上下文(提示词和历史记录)。
Meta: Llama 3.3 70B Instruct 有哪些替代方案?
目录中的类似 API:Llama-3.2-3B-Instruct · Parasail, Llama-3.1-8B-Instruct · Amazon Bedrock, Llama-3.1-8B-Instruct · CoreWeave, Llama-3.1-8B-Instruct · DeepInfra, Llama-3.1-8B-Instruct · Groq。
替代方案
- Llama-3.2-3B-Instruct · Parasail — 付费
- Llama-3.1-8B-Instruct · Amazon Bedrock — 付费
- Llama-3.1-8B-Instruct · CoreWeave — 付费
- Llama-3.1-8B-Instruct · DeepInfra — 付费
- Llama-3.1-8B-Instruct · Groq — 付费
- Llama-3.3-70B-Instruct · Cloudflare — 付费
- Llama-3.3-70B-Instruct · CoreWeave — 付费
- Llama-3.3-70B-Instruct · Groq — 付费
- Llama-4-Scout-17B-16E-Instruct · DeepInfra — 付费
- Llama-3.1-70B-Instruct · Amazon Bedrock — 付费
- Llama-4-Maverick-17B-128E-Instruct · Parasail — 付费
- Llama-Guard-4-12B · DeepInfra — 付费