Use it with curl
Over Tor, through our onion. It saves your keys to decuff-account.json. On clearnet, set API=https://api.decuff.ai and drop --socks5-hostname. An account made without a sign-in first takes a small proof of work; the python3 line solves it in a second or two.
Account and first request
API=http://vplomjjsd3hicadr6inrzu2uyykrqw4yc7wxjnjooj5smctmmpbhnkad.onion
decuff() { curl -s --socks5-hostname 127.0.0.1:9050 "$@"; }
TERMS=$(decuff $API/v1/service | sed 's/.*"termsVersion":"\([^"]*\)".*/\1/')
PROOF=$(decuff $API/v1/accounts -H "Content-Type: application/json" -d '{}' | python3 -c 'import sys,json,hashlib,itertools
c=json.load(sys.stdin)["challenge"];t=(c["challenge"]+".").encode()
for n in itertools.count():
if int.from_bytes(hashlib.sha256(t+str(n).encode()).digest(),"big")>>(256-c["difficulty"])==0:
print(json.dumps({"challenge":c["challenge"],"nonce":str(n)}));break')
(umask 077; decuff $API/v1/accounts -H "Content-Type: application/json" \
-d "{\"acceptedTerms\":\"$TERMS\",\"proof\":$PROOF}" > decuff-account.json)
KEY=$(sed 's/.*"key":"\([^"]*\)".*/\1/' decuff-account.json)
decuff $API/v1/chat/completions -H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{"model":"decuffed-flagship","messages":[{"role":"user","content":"Hello"}]}'
New accounts get only the free trial GET /v1/service lists as allowances.freeUnverifiedTokens (0 means none). Where it also lists browserCheck, the trial starts with a browser check that the playground runs, so an account made with curl draws nothing from it until then. A verified phone adds the free allowance and needs no check (POST /v1/auth/phone/send-code, then /v1/auth/phone/verify with the file’s accessKey and "linkToCurrentAccount":true). GET /v1/service also shows which payment methods are open.