Create a provider API key and set the local environment variable OPENROUTER_API_KEY, then run the example below.
Request URL
https://openrouter.ai/api/v1/chat/completions
Connection settings
Base URL: https://openrouter.ai/api/v1
Catalog model: meta-llama/llama-3.1-70b-instruct
Request API model: meta-llama/llama-3.1-70b-instruct
Protocol: openai
Provider routing: amazon-bedrock
API key env: OPENROUTER_API_KEY
Docs: https://openrouter.ai/docs
curl
curl "https://openrouter.ai/api/v1/chat/completions" -H "Authorization: Bearer $OPENROUTER_API_KEY" -H "Content-Type: application/json" -d '{
"model": "meta-llama/llama-3.1-70b-instruct",
"messages": [
{
"role": "user",
"content": "Read this support ticket and return a JSON object with \"summary\", \"urgency\" (low, medium, or high), and \"next_step\". Use null for missing details.\n\nTicket: I paid for the Pro plan yesterday, but my account still shows Free. My team needs access before tomorrow’s demo."
}
],
"provider": {
"order": [
"amazon-bedrock"
],
"only": [
"amazon-bedrock"
],
"allow_fallbacks": false
}
}'
Prompt for your coding agent
Use the OpenAI-compatible API at https://openrouter.ai/api/v1 with model "meta-llama/llama-3.1-70b-instruct". Set provider.only to ["amazon-bedrock"] and allow_fallbacks to false. Apply the recorded quantization filter. A base slug can match multiple endpoints, so confirm the served route before using the reference price. Read the API key from the OPENROUTER_API_KEY environment variable; never hardcode it. Pricing observed on 2026-11-22: $0.72 / 1M input tokens, $0.72 / 1M output tokens. API integration docs: https://openrouter.ai/docs. Billing scope and conditions: Served by Amazon Bedrock through OpenRouter, not a direct-provider contract. Published rates for route amazon-bedrock; unknown quantization. Other fees, tier conditions and regional access must be checked before use.. Source: https://openrouter.ai/api/v1/models/meta-llama/llama-3.1-70b-instruct/endpoints.
Task test prompt
Read this support ticket and return a JSON object with "summary", "urgency" (low, medium, or high), and "next_step". Use null for missing details.
Ticket: I paid for the Pro plan yesterday, but my account still shows Free. My team needs access before tomorrow’s demo.
Price facts
Input: $0.72 / 1M tokens
Output: $0.72 / 1M tokens
Currency: USD
Regions: global
Unit source: api
Checked: 2026-11-22T09:20:23.963Z
Source: https://openrouter.ai/api/v1/models/meta-llama/llama-3.1-70b-instruct/endpoints
Source check: 2026-11-22 · valid no later than 2026-11-23 09:21 UTC
Served by Amazon Bedrock through OpenRouter, not a direct-provider contract. Published rates for route amazon-bedrock; unknown quantization. Other fees, tier conditions and regional access must be checked before use.
Llama 3.1 70B Instruct API pricing: official and providers: 1 current published quote records across 1 exact API IDs and 1 providers. Compare API versions, currencies, regions and billing conditions separately; prices do not prove task quality or account access.
Latest recorded source check: 2026-11-22
Recorded changes
No changes recorded yet. The first successful check establishes a baseline; it does not count as a price drop or a newly launched endpoint.
Showing up to 100 recent events. Prices for unavailable endpoints are retained for reference. Failed source checks do not establish that a price stayed unchanged.
Open a quote’s billing details for cache reads/writes, request fees and endpoint instructions. Batch, free, promotional and off-peak tiers are selected separately. Context-tier, storage, search, tax and platform fees may be excluded.
Find lower-cost alternatives
Find lower-cost alternatives
Choose your existing model to find lower reference costs with matching declared technical constraints. Output quality remains unverified.
Loading verified quotes…
Users’ choices · Llama 3.1 70B Instruct
Describe your work to find related tasks.
Public scores by use
The same model scores differently by use. Once you pick a use, the site applies that use’s quality gate before comparing cost.
Text
Chinese12784846 votes · 2026-11-19
Classify127321910 votes · 2026-11-19
Extract fields127321910 votes · 2026-11-19
General text129355240 votes · 2026-11-19
Multi-turn128910405 votes · 2026-11-19
Summarize12957622 votes · 2026-11-19
Translate & rewrite125725546 votes · 2026-11-19
Write12578250 votes · 2026-11-19
Code & tools
Code13339389 votes · 2026-11-19
Industry
Business & finance12876381 votes · 2026-11-19
Legal & government13283177 votes · 2026-11-19
Medical & health13142821 votes · 2026-11-19
Scores come from Arena public-preference leaderboards (CC BY 4.0), latest published 2026-11-19. They describe the model, not your task’s success rate or a quantized channel. Arena ↗
Declared fields from the OpenRouter model catalog, bound to exact API IDs; not our tests, price approval or account availability.
Input
Text
Output
Text
Context
131K
Reasoning parameter
Not offered
Knowledge cutoff
2023-12-31
Open-weights clue
meta-llama/Meta-Llama-3.1-70B-Instruct
Source: https://openrouter.ai/api/v1/models, captured 2026-11-21T09:20:20.905Z, raw SHA-256: 19214ba490361282… . Unstated facts stay unknown and are not inferred from names or sibling models.
Classification sources
Source declarations for registered versions; not task quality, current account availability or price approval. Unknown versions do not inherit sibling classifications.
Snapshots and routing variants remain distinct. Choose an exact ID in the comparison before deciding; model quality and access conditions need your own review.