diff --git a/README.md b/README.md index 308d3ae..c61e416 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ A thrown error with `status` 401/402/403, or a 429 or 400 that mentions credits | Variable | Default | | |---|---|---| -| `C0MPUTE_API_KEY` | none | Infernet trusted-client key (`ifc_...`), one per app. Without it the public limit is 20 requests an hour per IP. | +| `C0MPUTE_API_KEY` | none | Infernet **account** key (`ik_live_...`), billed per job. An `ifc_` trusted-client key without an end-user subject, or no key at all, gets the free tier of 10 queries a day. | | `C0MPUTE_URL` | `https://infernetprotocol.com` | | | `C0MPUTE_MODELS` | `huihui_ai/qwen3.5-abliterated:9b,qwen2.5:7b,qwen3:4b,gemma3:4b,huihui_ai/qwen3.5-abliterated:4b` | Tried in order. The first is an Infernet house model every node pulls. | | `C0MPUTE_ANY_MODEL` | off | Let any free node answer as a last resort. Small models write junk JSON. | diff --git a/package.json b/package.json index eae50f1..c239e1c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@profullstack/ai-providers", - "version": "0.1.1", + "version": "0.1.2", "type": "module", "description": "One text-model call for every Profullstack app: c0mpute first, OpenAI and Anthropic as alternating fallbacks, dead keys parked. Zero dependencies.", "keywords": [ diff --git a/src/c0mpute.js b/src/c0mpute.js index 37ed5a2..12184ff 100644 --- a/src/c0mpute.js +++ b/src/c0mpute.js @@ -5,8 +5,9 @@ * -> {jobId, source, model} * GET /api/chat/stream/ server-sent events: meta, token..., done | error * - * Without a key the public playground allows 20 requests an hour per IP. A - * trusted-client key (`ifc_...`, one per app) has its own budget. + * Use an account key (`ik_live_...`): it is billed per job with no daily cap. + * With no key, or a trusted-client key (`ifc_...`) that names no end user, the + * caller gets the free tier of 10 queries a day. * * `p2p_only` (default on) stops Infernet handing the job to its billed hosted * fallback; an answer from anything but a peer node is refused. diff --git a/src/index.js b/src/index.js index 4a18326..c8d65fb 100644 --- a/src/index.js +++ b/src/index.js @@ -26,8 +26,9 @@ const num = (v) => (v == null || v === '' || Number.isNaN(Number(v)) ? undefined /** * Builds the router from the environment. * - * C0MPUTE_API_KEY Infernet trusted-client key (ifc_...). Without it the - * public limit of 20 requests an hour per IP applies. + * C0MPUTE_API_KEY Infernet account key (ik_live_...), billed per job. No + * key, or an ifc_ key with no subject, gets 10 free + * queries a day. * C0MPUTE_URL default https://infernetprotocol.com * C0MPUTE_MODELS comma list, tried in order (C0MPUTE_MODEL also read) * C0MPUTE_ANY_MODEL 1 to let any free node answer as a last resort