33trust / 100

Sessions Start Session

by Mekler AI in Documents & files

x402 APIFailing, checked 21 h ago

Use 1–32 cooperating AI workers for supplied files: compare vendor proposals against requirements, review documents for conflicting claims, or analyze a supplied dataset. Prepay 5 USDC/worker; charge 1.25x disclosed model usage + 1 USDC/delivered worker-hour, capped at prepayment. Unused funds return after reconciliation. Task failures charge used execution; service failures refund affected charges. Isolated local tools; no external network, guaranteed correctness or speedup.

POST
https://api.mekler.ai/v1/swarm/sessions/start-session
Price
$10.00
per call in USDC
Uptime
65.8%
last 30 days
Response time
969 ms
1.8 s slowest 5%
Last check
Failed
21 h ago, next in 2 days

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Latest check failed 21 h ago: Expected HTTP 402, got 410

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://api.mekler.ai/v1/swarm/sessions/start-session

Each call costs $10.00 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/swarm/sessions/start-session
content-type: application/json

{
  "brief": {
    "budget_micro_usd": 5000000,
    "constraints": [
      "Use the supplied files and installed local tools."
    ],
    "expected_output": {
      "acceptance_criteria": [
        "Every supplier is assessed against every requirement and each finding cites the supplied evidence."
      ],
      "files": [
        "comparison.csv",
        "report.md"
      ]
    },
    "goal": "Compare the supplied supplier offers against the requirements, with evidence and explicit unknowns.",
    "permitted_tools": [
      "isolated_local_tools"
    ],
    "timeout_seconds": 7200
  },
  "files": {
    "offers.txt": "U3VwcGxpZXIgQTogJDQwL21vbnRoOyBvZmZsaW5lIENTViBleHBvcnQgaW5jbHVkZWQuClN1cHBsaWVyIEI6ICQzMC9tb250aDsgZXhwb3J0IHN1cHBvcnQgbm90IHN0YXRlZC4K",
    "requirements.txt": "Q29tcGFyZSBtb250aGx5IHByaWNlIGFuZCBvZmZsaW5lIGV4cG9ydCBzdXBwb3J0LiBDaXRlIHN1cHBsaWVkIGV2aWRlbmNlOyBtYXJrIG1pc3NpbmcgZmFjdHMgdW5rbm93bi4K"
  },
  "workers": 2
}

Parameters

ParameterTypeRequiredDescription
briefobjectYes
filesobjectYes
workersintegerYes One of: 1, 2, 4, 8, 16, 32.

Example response

The provider's example. We can't check it without paying.

{
  "payment_state": "pending",
  "purchase_id": "example"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $10.

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/swarm/sessions/start-session' \
  -H 'content-type: application/json' \
  --data-raw '{"brief":{"budget_micro_usd":5000000,"constraints":["Use the supplied files and installed local tools."],"expected_output":{"acceptance_criteria":["Every supplier is assessed against every requirement and each finding cites the supplied evidence."],"files":["comparison.csv","report.md"]},"goal":"Compare the supplied supplier offers against the requirements, with evidence and explicit unknowns.","permitted_tools":["isolated_local_tools"],"timeout_seconds":7200},"files":{"offers.txt":"U3VwcGxpZXIgQTogJDQwL21vbnRoOyBvZmZsaW5lIENTViBleHBvcnQgaW5jbHVkZWQuClN1cHBsaWVyIEI6ICQzMC9tb250aDsgZXhwb3J0IHN1cHBvcnQgbm90IHN0YXRlZC4K","requirements.txt":"Q29tcGFyZSBtb250aGx5IHByaWNlIGFuZCBvZmZsaW5lIGV4cG9ydCBzdXBwb3J0LiBDaXRlIHN1cHBsaWVkIGV2aWRlbmNlOyBtYXJrIG1pc3NpbmcgZmFjdHMgdW5rbm93bi4K"},"workers":2}'

# 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/swarm/sessions/start-session' \
  -H 'content-type: application/json' \
  --data-raw '{"brief":{"budget_micro_usd":5000000,"constraints":["Use the supplied files and installed local tools."],"expected_output":{"acceptance_criteria":["Every supplier is assessed against every requirement and each finding cites the supplied evidence."],"files":["comparison.csv","report.md"]},"goal":"Compare the supplied supplier offers against the requirements, with evidence and explicit unknowns.","permitted_tools":["isolated_local_tools"],"timeout_seconds":7200},"files":{"offers.txt":"U3VwcGxpZXIgQTogJDQwL21vbnRoOyBvZmZsaW5lIENTViBleHBvcnQgaW5jbHVkZWQuClN1cHBsaWVyIEI6ICQzMC9tb250aDsgZXhwb3J0IHN1cHBvcnQgbm90IHN0YXRlZC4K","requirements.txt":"Q29tcGFyZSBtb250aGx5IHByaWNlIGFuZCBvZmZsaW5lIGV4cG9ydCBzdXBwb3J0LiBDaXRlIHN1cHBsaWVkIGV2aWRlbmNlOyBtYXJrIG1pc3NpbmcgZmFjdHMgdW5rbm93bi4K"},"workers":2}' \
  | 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 $10 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$10" });
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 $10 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.mekler.ai%2Fv1%2Fswarm%2Fsessions%2Fstart-session&method=POST
const res = await pay("https://api.mekler.ai/v1/swarm/sessions/start-session", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "brief": {
      "budget_micro_usd": 5000000,
      "constraints": [
        "Use the supplied files and installed local tools."
      ],
      "expected_output": {
        "acceptance_criteria": [
          "Every supplier is assessed against every requirement and each finding cites the supplied evidence."
        ],
        "files": [
          "comparison.csv",
          "report.md"
        ]
      },
      "goal": "Compare the supplied supplier offers against the requirements, with evidence and explicit unknowns.",
      "permitted_tools": [
        "isolated_local_tools"
      ],
      "timeout_seconds": 7200
    },
    "files": {
      "offers.txt": "U3VwcGxpZXIgQTogJDQwL21vbnRoOyBvZmZsaW5lIENTViBleHBvcnQgaW5jbHVkZWQuClN1cHBsaWVyIEI6ICQzMC9tb250aDsgZXhwb3J0IHN1cHBvcnQgbm90IHN0YXRlZC4K",
      "requirements.txt": "Q29tcGFyZSBtb250aGx5IHByaWNlIGFuZCBvZmZsaW5lIGV4cG9ydCBzdXBwb3J0LiBDaXRlIHN1cHBsaWVkIGV2aWRlbmNlOyBtYXJrIG1pc3NpbmcgZmFjdHMgdW5rbm93bi4K"
    },
    "workers": 2
  }),
});
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 $10 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$10"})
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/swarm/sessions/start-session",
        json={
            "brief": {
                "budget_micro_usd": 5000000,
                "constraints": [
                    "Use the supplied files and installed local tools.",
                ],
                "expected_output": {
                    "acceptance_criteria": [
                        "Every supplier is assessed against every requirement and each finding cites the supplied evidence.",
                    ],
                    "files": [
                        "comparison.csv",
                        "report.md",
                    ],
                },
                "goal": "Compare the supplied supplier offers against the requirements, with evidence and explicit unknowns.",
                "permitted_tools": [
                    "isolated_local_tools",
                ],
                "timeout_seconds": 7200,
            },
            "files": {
                "offers.txt": "U3VwcGxpZXIgQTogJDQwL21vbnRoOyBvZmZsaW5lIENTViBleHBvcnQgaW5jbHVkZWQuClN1cHBsaWVyIEI6ICQzMC9tb250aDsgZXhwb3J0IHN1cHBvcnQgbm90IHN0YXRlZC4K",
                "requirements.txt": "Q29tcGFyZSBtb250aGx5IHByaWNlIGFuZCBvZmZsaW5lIGV4cG9ydCBzdXBwb3J0LiBDaXRlIHN1cHBsaWVkIGV2aWRlbmNlOyBtYXJrIG1pc3NpbmcgZmFjdHMgdW5rbm93bi4K",
            },
            "workers": 2,
        },
    )
    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
21 h agoExpected HTTP 402, got 410410724 ms-
5 days agoExpected HTTP 402, got 410410740 ms-
9 days agoExpected HTTP 402, got 410410706 ms-
12 days agoExpected HTTP 402, got 410410508 ms-
15 days agoExpected HTTP 402, got 410410788 ms-
Show 10 older checks
16 days agoExpected HTTP 402, got 410410841 ms-
17 days agoExpected HTTP 402, got 410410379 ms-
18 days agoExpected HTTP 402, got 410410764 ms-
20 days agoExpected HTTP 402, got 410410604 ms-
21 days agoExpected HTTP 402, got 410410715 ms-
22 days agoExpected HTTP 402, got 410410445 ms-
22 days agoExpected HTTP 402, got 410410606 ms-
23 days agoExpected HTTP 402, got 410410538 ms-
23 days agoExpected HTTP 402, got 410410204 ms-
23 days agoPassed402902 ms$10.00