Clef Flash clef-flash
Fast joint decision model that returns answer probabilities for every question in a single read.
Tokens
$0.05 / 1M tokens
Context
256K tokens
Inputs
| Input | Accepts |
|---|---|
text | context 256K tokens |
Parameters
| Parameter | Type | Values | Default |
|---|---|---|---|
question_type | string | noul, choice, score |
Endpoints
A request
curl https://api.vultrinference.com/v1/systemone \
-H "Authorization: Bearer $VULTR_INFERENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "clef-flash",
"state": {
"ticket": "Everything is down and we have a demo at noon."
},
"questions": {
"urgent": {
"type": "noul",
"instructions": "Does the customer need a reply within the hour?"
},
"department": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {
"billing": "invoices, payments, refunds",
"technical": "bugs, outages, errors"
}
},
"frustration": {
"type": "score",
"instructions": "How frustrated is the customer?",
"criteria": [
"Calm",
"Frustrated",
"Very angry"
]
}
}
}'import os
import requests
response = requests.post(
"https://api.vultrinference.com/v1/systemone",
headers={"Authorization": f"Bearer {os.environ['VULTR_INFERENCE_API_KEY']}"},
json={
"model": "clef-flash",
"state": {
"ticket": "Everything is down and we have a demo at noon.",
},
"questions": {
"urgent": {
"type": "noul",
"instructions": "Does the customer need a reply within the hour?",
},
"department": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {
"billing": "invoices, payments, refunds",
"technical": "bugs, outages, errors",
},
},
"frustration": {
"type": "score",
"instructions": "How frustrated is the customer?",
"criteria": [
"Calm",
"Frustrated",
"Very angry",
],
},
},
},
)
print(response.json())const response = await fetch("https://api.vultrinference.com/v1/systemone", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VULTR_INFERENCE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "clef-flash",
"state": {
"ticket": "Everything is down and we have a demo at noon."
},
"questions": {
"urgent": {
"type": "noul",
"instructions": "Does the customer need a reply within the hour?"
},
"department": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {
"billing": "invoices, payments, refunds",
"technical": "bugs, outages, errors"
}
},
"frustration": {
"type": "score",
"instructions": "How frustrated is the customer?",
"criteria": [
"Calm",
"Frustrated",
"Very angry"
]
}
}
}),
});
console.log(await response.json());