Models / Refuel / / Refuel LLM-2 API
Refuel LLM-2 API
Chat
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
togethercomputer/Refuel-Llm-V2
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)
}