78trust / 100

Inference Generate Completions

by Mekler AI in AI models & inference

x402 APIPassing, checked 11 h ago

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.

POST
https://api.mekler.ai/v1/compute/inference/generate-completions
Price
$0.0028
per call in USDC
Uptime
98.0%
last 30 days
Response time
492 ms
1.7 s slowest 5%
Last check
Passed
11 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

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.002796 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

ParameterTypeRequiredDescription
idempotency_keystringNo
max_price_usdcstringYes
tasksarray of objectYes

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": 2796,
    "version": "inference-v4-purchase"
  },
  "receipt": {
    "finalized": true,
    "network": "eip155:8453",
    "price_micros": 2796,
    "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.002796.

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 --decode
JavaScript: 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.002796 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.002796" });
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.002796 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.002796 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.002796"})
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

WhenResultHTTPTimePrice
11 h agoPassed402458 ms$0.0028
23 h agoPassed402463 ms$0.0028
2 days agoTimed out---
4 days agoTimed out---
5 days agoPassed402160 ms$0.0028
Show 10 older checks
5 days agoPassed402532 ms$0.0028
5 days agoPassed402417 ms$0.0028
6 days agoPassed402479 ms$0.0028
6 days agoPassed402612 ms$0.0028
7 days agoPassed402585 ms$0.0028
7 days agoPassed402452 ms$0.0028
7 days agoPassed402570 ms$0.0028
8 days agoPassed402484 ms$0.0028
8 days agoPassed402426 ms$0.0028
8 days agoPassed402528 ms$0.0028

History

19 Oct 2026Price on Solana changed from $0.0019 to $0.0028; Price on Base changed from $0.0019 to $0.0028
15 Oct 2026Price on Solana changed from $0.005 to $0.0019; Price on Base changed from $0.005 to $0.0019