x402.telnyx.com/v1/chat/completions/_t/llama-3.1-8b/upto
Chat completions via Telnyx Inference (meta-llama/Meta-Llama-3.1-8B-Instruct). OpenAI-compatible. Up to $0.002399 USDC per call, quoted to your request (input + max_tokens at list rates, no markup). (upto metered — large context)
POST
https://x402.telnyx.com/v1/chat/completions/_t/llama-3.1-8b/uptoUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402.telnyx.com/v1/chat/completions/_t/llama-3.1-8b/upto", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"max_tokens":300,"messages":[{"content":"Explain x402 micropayments to a pirate in two sentences.","role":"user"}],"model":"meta-llama/Meta-Llama-3.1-8B-Instruct"}),
});
console.log(await res.json());Example input
{
"max_tokens": 300,
"messages": [
{
"content": "Explain x402 micropayments to a pirate in two sentences.",
"role": "user"
}
],
"model": "meta-llama/Meta-Llama-3.1-8B-Instruct"
}