Run Snowflake Arctic with an API

📰 Replicate Blog

Run Snowflake Arctic language model with Replicate's API in the cloud using JavaScript or Python

intermediate Published 23 Apr 2024
Action Steps
  1. Try Arctic in Replicate's API playground to get a feel for the model's capabilities
  2. Install Replicate's client library for JavaScript or Python
  3. Set up the API token and import the client library
  4. Run Snowflake Arctic using Replicate's API with the provided code snippets
Who Needs to Know This

Developers and data scientists on a team can benefit from using Replicate's API to run Snowflake Arctic, as it allows for easy integration and deployment of the model in various applications

Key Insight

💡 Replicate's API allows for easy deployment and integration of Snowflake Arctic in various applications

Share This
🚀 Run Snowflake Arctic with Replicate's API! 💻

Key Takeaways

Run Snowflake Arctic language model with Replicate's API in the cloud using JavaScript or Python

Full Article

# Run Snowflake Arctic with an API – Replicate blog

[Replicate has joined Cloudflare](https://replicate.com/blog/replicate-cloudflare)

[](https://replicate.com/)

cmd+k

[Explore](https://replicate.com/explore)[Pricing](https://replicate.com/pricing)[Enterprise](https://replicate.com/enterprise)[Docs](https://replicate.com/docs)[Blog](https://replicate.com/blog)[Sign in](https://replicate.com/signin)[Try for free](https://replicate.com/signin)

Menu

[Explore](https://replicate.com/explore)[Pricing](https://replicate.com/pricing)[Enterprise](https://replicate.com/enterprise)[Docs](https://replicate.com/docs)[Blog](https://replicate.com/blog)[Sign in](https://replicate.com/signin)[Try for free](https://replicate.com/signin)

* * *

[Compare models in the Playground](https://replicate.com/playground)

* Replicate
* [Blog](https://replicate.com/blog)

# Run Snowflake Arctic with an API

Posted April 23, 2024 by
* [cbh123](https://replicate.com/cbh123)

Snowflake Arctic is a new open-source language model from Snowflake. Arctic is on-par or better than both Llama 3 8B and Llama 2 70B on all metrics while using less than half of the training compute budget.

It’s massive. At 480B, Arctic is the biggest open-source model to date. As expected from a model from Snowflake, it’s good at SQL and other coding tasks, and it has a liberal Apache 2.0 license.

With Replicate, you can run Arctic in the cloud with one line of code.

* * *

## [](https://replicate.com/blog/run-arctic-with-an-api#try-arctic-in-our-api-playground)Try Arctic in our API playground

Before you dive in, try Arctic in our API playground.

Try tweaking the prompt and see how Arctic responds. Most models on Replicate have an interactive API playground like this, available on the model page: [https://replicate.com/snowflake/snowflake-arctic-instruct](https://replicate.com/snowflake/snowflake-arctic-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.

## [](https://replicate.com/blog/run-arctic-with-an-api#running-arctic-with-javascript)Running Arctic with JavaScript

You can run Arctic with our [official JavaScript client](https://github.com/replicate/replicate-javascript):

Install [Replicate’s Node.js client library](https://github.com/replicate/replicate-javascript)

Copy

`npm install replicate`

Set the `REPLICATE_API_TOKEN` environment variable

Copy

`export REPLICATE_API_TOKEN=r8_9wm**********************************`

(You can generate an [API token](https://replicate.com/account/api-tokens) in your account. Keep it to yourself.)

Import and set up the client

Copy

```
import Replicate from "replicate";

const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
```

Run snowflake/snowflake-arctic-instruct using Replicate’s API. Check out the [model’s schema](https://replicate.com/snowflake/snowflake-arctic-instruct/api/schema) for an overview of inputs and outputs.

Copy

```
const input = {};

for await (const event of replicate.stream("snowflake/snowflake-arctic-instruct", { input })) {
process.stdout.write(event.toString());
};
```

To learn more, take a look at [the guide on getting started with Node.js](https://replicate.com/docs/get-started/nodejs).

## [](https://replicate.com/blog/run-arctic-with-an-api#running-arctic-with-python)Running Arctic with Python

You can run Arctic with our [official Python client](https://github.com/replicate/replicate-python):

Install [Replicate’s Python client library](https://github.com/replicate/replicate-python)

Copy

`pip install replicate`

Set the `REPLICATE_API_TOKEN` environment variable

Copy

`export REPLICATE_API_TOKEN=r8_9wm**********************************`

(You can generate an [API token](https://replicate.com/account/api-tokens) in your account. Keep it to yourself.)

Import the client

Copy

`import replicate`

Run snowflake/snowflake-arctic-instruct usi
Read full article → ← Back to Reads

Related Videos

5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
What is RAG? (the fix for AI making things up) #RAG #AIexplained #LLM #ChatGPT #AIforBusiness
What is RAG? (the fix for AI making things up) #RAG #AIexplained #LLM #ChatGPT #AIforBusiness
__beginnerscode__
OpenAI's GPT-5.6 Sol: millions want it, 20 can use it #AInews #OpenAI #GPT56 #ChatGPT #AIsecurity
OpenAI's GPT-5.6 Sol: millions want it, 20 can use it #AInews #OpenAI #GPT56 #ChatGPT #AIsecurity
__beginnerscode__
Proprietary vs open-weight AI: What’s the difference? | Artificial Intelligence
Proprietary vs open-weight AI: What’s the difference? | Artificial Intelligence
Business Standard
Google Omni Masterclass FREE: Generate Unlimited Realistic Videos under 20 Mins 🔥
Google Omni Masterclass FREE: Generate Unlimited Realistic Videos under 20 Mins 🔥
Damini Tripathi
Claude AI For Marketers: Save 20+ Hours/Week with these Methods 🔥
Claude AI For Marketers: Save 20+ Hours/Week with these Methods 🔥
Damini Tripathi