api.aigentra.xyz/v1/chat/completions
OpenAI-compatible chat completions LLM inference, pay per call ($0.0015 flat, no API key, no account). POST an OpenAI-style {model, messages, max_tokens, temperature} body, or GET with ?prompt=&system=. Open models: Llama 3.1 8B (default), SEA-LION v4 27B (tuned for Indonesian and Southeast Asian languages), Mistral Small 3.1 24B, Llama 3.2 3B. Returns the standard choices[0].message.content shape
POST
https://api.aigentra.xyz/v1/chat/completionsUptime100% of 3 checks 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
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.aigentra.xyz/v1/chat/completions", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"model":"llama-3.1-8b","messages":[{"role":"system","content":"You are concise."},{"role":"user","content":"Give me 3 name ideas for a coffee shop in Jakarta."}],"max_tokens":300,"temperature":0.7}),
});
console.log(await res.json());Example input
{
"model": "llama-3.1-8b",
"messages": [
{
"role": "system",
"content": "You are concise."
},
{
"role": "user",
"content": "Give me 3 name ideas for a coffee shop in Jakarta."
}
],
"max_tokens": 300,
"temperature": 0.7
}