81trust / 100

Ai Extract

by agentbit.app in Search & web

x402 APIPassing, checked 1 h ago

Turn messy text into clean JSON. Pass text plus a field `schema` or plain `instructions`; get a validated JSON object back. Uses the provider JSON mode.

POST https://agentbit.app/v1/ai/extract

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
78 ms typical, 78 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentbit.app/v1/ai/extract" \
  -H "content-type: application/json" \
  -d '{"schema":{"due_date":"ISO date","invoice_number":"the invoice id","total_usd":"number","vendor":"company name"},"text":"Invoice #A-914 from Globex, due 2026-10-15, total $4,320.00 for cloud hosting."}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagentbit.app%2Fv1%2Fai%2Fextract
const res = await pay("https://agentbit.app/v1/ai/extract", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"schema":{"due_date":"ISO date","invoice_number":"the invoice id","total_usd":"number","vendor":"company name"},"text":"Invoice #A-914 from Globex, due 2026-10-15, total $4,320.00 for cloud hosting."}),
});
console.log(await res.json());

Example input

{
  "schema": {
    "due_date": "ISO date",
    "invoice_number": "the invoice id",
    "total_usd": "number",
    "vendor": "company name"
  },
  "text": "Invoice #A-914 from Globex, due 2026-10-15, total $4,320.00 for cloud hosting."
}

Example output

{
  "data": {
    "due_date": "2026-10-15",
    "invoice_number": "A-914",
    "total_usd": 4320,
    "vendor": "Globex"
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed40289 ms$0.01
7 h agoPassed40278 ms$0.01