Quick start
Base URL, OpenAI-compatible:
base_url = "https://dasco.world/api/v1"The same API also answers at https://api.dasco.world/v1. No key is needed to try it. Without an Authorization header you are on the free trial: 10 requests per IP per UTC day, free-trial models only, at most 600 output tokens and 6,000 characters in per reply. The trial also has a shared daily cap; when it runs out, sign in.
curl https://dasco.world/api/v1/chat/completions \
-H "content-type: application/json" \
-d '{
"model": "MODEL_ID",
"messages": [{"role":"user","content":"Summarize the thread from [PERSON_1] about [EMAIL_1]"}]
}'
# no key = free trial: 10 requests per IP per UTC day, free models only
# MODEL_ID: any id from GET https://dasco.world/api/v1/modelsAPI
| Endpoint | What it does |
|---|---|
GET /models | Curated chat models. price_in/price_out are what we charge per 1M tokens (provider cost + 10%), next to source_price_in/out. free_trial marks models usable without a key. |
POST /chat/completions | OpenAI-compatible, streaming and non-streaming. Forwarded through one pooled key with provider data collection set to deny. Your IP and user agent are not forwarded. |
POST /auth/nonce, /auth/verify | Wallet sign-in: sign the returned message once, get a dsk_… key. Shown once, stored hashed. |
GET /account | Balance, deposits and daily usage for your key. |
POST /account/rotate | Issue a new key, invalidate the old one. |
GET /stats | Public counters shown on the site. Open it. |
Node with the OpenAI SDK
import OpenAI from 'openai';
import { redactMessages, restore } from 'https://dasco.world/redact.mjs'; // or vendor the file
const client = new OpenAI({ baseURL: 'https://dasco.world/api/v1', apiKey: process.env.DASCO_KEY });
const { messages, map } = redactMessages([
{ role: 'user', content: 'Draft a reply to Maria Lopez <maria@acme.io>' },
]); // -> "Draft a reply to [PERSON_1] <[EMAIL_1]>", map stays in your process
const res = await client.chat.completions.create({ model: 'MODEL_ID', messages });
console.log(restore(res.choices[0].message.content, map));Python
import os
from openai import OpenAI
client = OpenAI(base_url = "https://dasco.world/api/v1", api_key = os.environ["DASCO_KEY"])
# Python has no client-side redactor yet: the server's leak check redacts raw
# values in memory and reports them in the x-dasco-leaks response header.redact.mjs
/redact.mjs is the engine the app uses: one ES module, no dependencies, no network calls. It runs in the browser and in Node. Exports:
redact(text, { custom?, skip?, map? })→{ redacted, spans, map }. Pass the previousmapto keep tokens stable across a conversation.redactMessages(messages, opts)→{ messages, map, spans }for a whole chat history.restore(text, map)puts the real values back into a reply.
<script type="module">
import { redact, restore } from 'https://dasco.world/redact.mjs';
const { redacted, map } = redact('Call Maria Lopez on +44 7911 123456');
// redacted: "Call [PERSON_1] on [PHONE_1]"
// send `redacted`, then: restore(reply, map)
</script>Vendor the file if you do not want to load code from us at runtime.
Headers
| Header | Meaning |
|---|---|
x-dasco-placeholders | How many [TYPE_n] tokens arrived in your request. |
x-dasco-leaks | Raw personal data our leak check found in your request, e.g. EMAIL:1,APIKEY:1. It is redacted server-side before forwarding, unless you send x-dasco-allow-raw: 1. |
x-dasco-server-redacted | 1 when the leak check had to redact your request on the server. |
x-dasco-cost-usd | What the call cost you (non-streaming). Streaming replies carry it in the final usage chunk under dasco.cost_usd, next to placeholders, leaks and free_trial. |
The server-side fallback sees your raw text in memory to redact it. Client-side redaction is the private path: then the raw values never leave your device.
Keys and balance
Sign in on /app with any browser wallet. Calls with a key are paid from your balance. You top it up by depositing USDG on Robinhood Chain through the DascoTab contract; the deposit is credited to the depositing wallet. Credits are an off-chain balance in our database. There is no withdrawal, so deposit what you plan to spend.
DascoTab: 0x0DC8Ee08AfCc1dA97fB4bEB558D4745A06b5075e.
What is caught
Names (local name model plus heuristics), emails, phone numbers, 0x wallets, private keys, BIP-39 seed phrases, API keys (sk-, sk-ant-, sk-or-, ghp_, gho_, xoxb-/xoxp-, AKIA, AIza, hf_, glpat-, Bearer, JWT), Luhn-valid card numbers, mod-97-valid IBANs, internal URLs and URLs with secrets in the query, IPv4/IPv6, and @handles.
Not guaranteed: unusual or lowercase names, names that are also ordinary words, street addresses, identifying context without a name, and anything inside images or files. The app always shows the diff and lets you mark any word as private.
May be over-redacted: any 64-hex value, such as a transaction hash, is treated as a private key ([PRIVKEY_n]). Capitalised words next to a known first name can be taken for a surname. Click the word in the app to send it as-is.
Data we keep
- Prompt and reply content: never stored, never logged.
- Per call: model, token counts, cost, time, a hash of the key id. Rows older than 90 days are folded into daily totals.
- Free trial: a per-IP counter for the current UTC day, used only for the limit.
- Wallet sign-in: your address and a hash of your key.