A

Aubr · Chat Encrypted

by Aubr

POSTBase

$0.02

per call · USD Coin on Base

Send an HPKE-encrypted prompt to the Aubrai chat agent running inside an attested private enclave. Only the enclave can decrypt your message.

Endpoint

POST https://x402-api.aubr.ai/api/chat/encrypted

1.6k

Calls / 30d

4

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402-api.aubr.ai/api/chat/encrypted", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "hpke_ciphertext": "<base64-encrypted-prompt>",
    "hpke_ephemeral_public_key": "<base64-ephemeral-pubkey>"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402-api.aubr.ai/api/chat/encrypted" \
  -H "Content-Type: application/json" \
  -d '{"hpke_ciphertext":"<base64-encrypted-prompt>","hpke_ephemeral_public_key":"<base64-ephemeral-pubkey>"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "pollUrl": "https://x402-api.aubr.ai/api/chat/encrypted/status/req_abc123",
  "requestId": "req_abc123",
  "status": "queued"
}

Payment details

Pay to0x44dc2dceaa22c7ef6b2e2cf2362fd3fb476b7c2c
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from Aubr & similar services