Lead story
Models & availability
Latest
Lead story
Models & availability
Latest
Llama 3 is the latest language model from Meta. It has state of the art performance and a context window of 8000 tokens, double Llama 2’s context window. With Replicate, you can run Llama 3 in the cloud with one line of code. Try Llama 3 in our API playground Before you dive in, try Llama 3 in our API playground. Try tweaking the prompt and see how Llama 3 responds. Most models on Replicate have an interactive API playground like this, available on the model page: https://replicate.com/meta/meta-llama-3-70b-instruct The API playground is a great way to get a feel for what a model can do, and provides copyable code snippets in a variety of languages to help you get started. Running Llama 3 with JavaScript You can run Llama 3 with our official JavaScript client : Install Replicate’s Node.js client library Copy npm install replicate Set the REPLICATE_API_TOKEN environment variable Copy export REPLICATE_API_TOKEN = r8_9wm ********************************** (You can generate an API token in your account. Keep it to yourself.) Import and set up the client Copy import Replicate from …