81trust / 100
T Llama 3 1 8b
by x402.telnyx.com in AI models & inference
x402 APIPassing, checked 1 h ago
Chat completions via Telnyx Inference (meta-llama/Meta-Llama-3.1-8B-Instruct). OpenAI-compatible. $0.002237 USDC per call.
POST https://x402.telnyx.com/v1/chat/completions/_t/llama-3.1-8b
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 263 ms typical, 305 ms slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402.telnyx.com/v1/chat/completions/_t/llama-3.1-8b" \
-H "content-type: application/json" \
-d '{"max_tokens":64,"messages":[{"content":"Say hello in one short sentence.","role":"user"}],"model":"meta-llama/Meta-Llama-3.1-8B-Instruct"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.telnyx.com%2Fv1%2Fchat%2Fcompletions%2F_t%2Fllama-3.1-8b
const res = await pay("https://x402.telnyx.com/v1/chat/completions/_t/llama-3.1-8b", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"max_tokens":64,"messages":[{"content":"Say hello in one short sentence.","role":"user"}],"model":"meta-llama/Meta-Llama-3.1-8B-Instruct"}),
});
console.log(await res.json());Example input
{
"max_tokens": 64,
"messages": [
{
"content": "Say hello in one short sentence.",
"role": "user"
}
],
"model": "meta-llama/Meta-Llama-3.1-8B-Instruct"
}Example output
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "Hello!",
"role": "assistant"
}
}
],
"id": "chatcmpl-xxx",
"object": "chat.completion",
"usage": {
"completion_tokens": 4,
"prompt_tokens": 12,
"total_tokens": 16
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 305 ms | $0.0022 |
| 5 h ago | Passed | 402 | 254 ms | $0.0022 |
| 9 h ago | Passed | 402 | 302 ms | $0.0022 |
| 12 h ago | Passed | 402 | 263 ms | $0.0022 |
| 16 h ago | Passed | 402 | 258 ms | $0.0022 |
| 20 h ago | Passed | 402 | 267 ms | $0.0022 |
| 23 h ago | Passed | 402 | 231 ms | $0.0022 |
| 28 h ago | Passed | 402 | 332 ms | $0.0022 |