Inference Generate Completions
by Mekler AI in AI models & inference
Compare exact prices across eight models: GPT-6 Luna, GPT-6.1 Sol, Ministral 3B/8B/14B, Nemotron 3 Nano and Qwen3 Next/Coder Next. Review a recommendation and supported model/effort alternatives, then accept one quote or use automatic selection. Generate text or JSON with one USDC payment and no supplier account. Recover private results after completion. Recommendations use task rules, not a quality guarantee. No tools, browsing or streaming.
https://api.mekler.ai/v1/compute/inference/generate-completions- Price
- $0.0019
- per call in USDC
- Uptime
- 94.1%
- last 30 days
- Response time
- 2.5 s
- 6.4 s slowest 5%
- Last check
- Passed
- 3 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://api.mekler.ai/v1/compute/inference/generate-completions
Each call costs $0.001939 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://api.mekler.ai/v1/compute/inference/generate-completions
content-type: application/json
{
"max_price_usdc": "0.003",
"tasks": [
{
"max_output_tokens": 64,
"messages": [
{
"content": "Summarize: the meeting starts at noon.",
"role": "user"
}
],
"task": "summarize"
}
]
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
idempotency_key | string | No | |
max_price_usdc | string | Yes | |
tasks | array of object | Yes |
Example response
The provider's example. We can't check it without paying.
Example response, 39 lines
{
"expires_at": 1794528000,
"job_id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"plan": {
"models": [
{
"index": 0,
"model": "gpt-6-luna",
"reason": "bounded_general_task"
}
],
"price_micros": 1939,
"version": "inference-v4-purchase"
},
"receipt": {
"finalized": true,
"network": "eip155:8453",
"price_micros": 1939,
"transaction": "0xcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
},
"recovery_token": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"results": [
{
"content": "The meeting starts at noon.",
"finish_reason": "stop",
"index": 0,
"model": "gpt-6-luna",
"provider_model": "gpt-6-luna",
"reported_model": "gpt-6-luna",
"usage": {
"completion_tokens": 7,
"prompt_tokens": 18,
"total_tokens": 25
}
}
],
"retry": "Recover with the original proof or private token. Do not pay again.",
"state": "complete"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.001939.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.mekler.ai/v1/compute/inference/generate-completions' \
-H 'content-type: application/json' \
--data-raw '{"max_price_usdc":"0.003","tasks":[{"max_output_tokens":64,"messages":[{"content":"Summarize: the meeting starts at noon.","role":"user"}],"task":"summarize"}]}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://api.mekler.ai/v1/compute/inference/generate-completions' \
-H 'content-type: application/json' \
--data-raw '{"max_price_usdc":"0.003","tasks":[{"max_output_tokens":64,"messages":[{"content":"Summarize: the meeting starts at noon.","role":"user"}],"task":"summarize"}]}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.001939 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.001939" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.001939 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.mekler.ai%2Fv1%2Fcompute%2Finference%2Fgenerate-completions&method=POST
const res = await pay("https://api.mekler.ai/v1/compute/inference/generate-completions", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"max_price_usdc": "0.003",
"tasks": [
{
"max_output_tokens": 64,
"messages": [
{
"content": "Summarize: the meeting starts at noon.",
"role": "user"
}
],
"task": "summarize"
}
]
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.001939 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.001939"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://api.mekler.ai/v1/compute/inference/generate-completions",
json={
"max_price_usdc": "0.003",
"tasks": [
{
"max_output_tokens": 64,
"messages": [
{
"content": "Summarize: the meeting starts at noon.",
"role": "user",
},
],
"task": "summarize",
},
],
},
)
print(res.status_code, res.text)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 |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 2.5 s | $0.0019 |
| 8 h ago | Passed | 402 | 529 ms | $0.0019 |
| 13 h ago | Passed | 402 | 574 ms | $0.0019 |
| 17 h ago | Passed | 402 | 2.0 s | $0.0019 |
| 22 h ago | Passed | 402 | 2.7 s | $0.0019 |
Show 10 older checks
| 26 h ago | Passed | 402 | 477 ms | $0.0019 |
| 30 h ago | Passed | 402 | 5.6 s | $0.005 |
| 34 h ago | Passed | 402 | 6.4 s | $0.005 |
| 39 h ago | Passed | 402 | 5.8 s | $0.005 |
| 43 h ago | Passed | 402 | 462 ms | $0.005 |
| 47 h ago | Passed | 402 | 5.6 s | $0.005 |
| 2 days ago | Passed | 402 | 400 ms | $0.005 |
| 2 days ago | Passed | 402 | 5.5 s | $0.005 |
| 2 days ago | Passed | 402 | 524 ms | $0.005 |
| 3 days ago | Timed out | - | - | - |
History
| 15 Oct 2026 | Price on Solana changed from $0.005 to $0.0019; Price on Base changed from $0.005 to $0.0019 |