Using Llama 3 70B Instruct on Replicate API
Implementation guide · Llama 3 · AI at Meta
Replicate API exposes Llama 3 70B Instruct through model ID meta/meta-llama-3-70b-instruct. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-07-09. Next refresh: weekly.
Quick Start
- 1
- 2Use the Replicate API SDK or REST API to call
meta/meta-llama-3-70b-instruct— see the documentation for request format. - 3
Code Examples
pip install replicateREPLICATE_API_TOKENmeta/meta-llama-3-70b-instructReplicate uses "owner/model-name" format (e.g. "meta/meta-llama-3-8b-instruct") for the latest version, or "owner/model-name:version-sha" to pin to a specific version. The REST endpoint splits owner and model-name into the path: /v1/models/{owner}/{model-name}/predictions.
import replicate
# reads REPLICATE_API_TOKEN from env
# meta/meta-llama-3-70b-instruct format: "owner/model-name" (latest version) or "owner/model-name:version-hash"
output = replicate.run(
"meta/meta-llama-3-70b-instruct",
input={"prompt": "Hello"}
)
# Output is a list or generator depending on the model
print("".join(output))Pricing on Replicate API
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.65 |
| Output tokens | $2.75 |
Capabilities
About Llama 3 70B Instruct
The Llama 3 70B Instruct model is a large language model with 70 billion parameters, released by Meta on April 18, 2024. It's an instruction-tuned variant optimized for conversational applications, utilizing an advanced auto-regressive transformer architecture. The model excels in following instructions and engaging in dialogue, having been trained on over 15 trillion tokens with a December 2023 knowledge cutoff. It demonstrates superior performance on industry benchmarks, scoring 82.0 on the MMLU (5-shot) test. The model incorporates extensive safety measures and optimizations, including RLHF, to enhance helpfulness and reduce harmful content generation.