This website uses cookies to anonymously analyze website traffic using Google Analytics.

Models / Refuel /  / Refuel LLM-2 API

Refuel LLM-2 API

47B model optimized for data tasks such as classification, structured data extraction, and more.

Try our Refuel LLM-2 API
New

Refuel LLM-2 API Usage

Endpoint

RUN INFERENCE

curl -X POST "https://api.together.xyz/v1/chat/completions" \
  -H "Authorization: Bearer $TOGETHER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "togethercomputer/Refuel-Llm-V2",
    "messages": [],
    "stream": true
  }'

RUN INFERENCE

from together import Together

client = Together()

response = client.chat.completions.create(
    model="togethercomputer/Refuel-Llm-V2",
    messages=[],
    stream=True
)
for token in response:
    if hasattr(token, 'choices'):
        print(token.choices[0].delta.content, end='', flush=True)

RUN INFERENCE

import Together from "together-ai";

const together = new Together();

const response = await together.chat.completions.create({
  messages: [],
  model: "togethercomputer/Refuel-Llm-V2",
  stream: true
});

for await (const token of response) {
  console.log(token.choices[0]?.delta?.content)
}

How to use Refuel LLM-2

Model details

Prompting Refuel LLM-2

Applications & Use Cases

Looking for production scale? Deploy on a dedicated endpoint

Deploy Refuel LLM-2 on a dedicated endpoint with custom hardware configuration, as many instances as you need, and auto-scaling.

Get started