Skip to content

Commit 4ff5fd6

Browse files
authored
Merge pull request #297 from NillionNetwork/feat/updated-nilpay
feat: nilpay updates
2 parents 8b09d80 + a4ffda6 commit 4ff5fd6

File tree

6 files changed

+40
-7
lines changed

6 files changed

+40
-7
lines changed

docs/build/network-api-access.mdx

Lines changed: 40 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import Tabs from '@theme/Tabs';
2+
import TabItem from '@theme/TabItem';
3+
14
# Network API Access
25

36
nilPay allows you to subscribe and create credentials for using the [Private Storage](/build/private-storage/overview) and [Private LLMs](/build/private-llms/overview) network APIs.
@@ -8,15 +11,45 @@ This guide walks you through the process of creating an API key.
811

912
In order to get an API Key, you must have a nillion address. We recommend starting by following the [wallet setup guide](/community/guides/nillion-wallet) to get started.
1013

11-
Use the [nilPay Portal](https://subscription.nillion.com) to create an API key. Press the **Need an API Key?** button.
14+
Use the [nilPay Subscription Portal](https://subscription.nillion.com) to create an API key.
15+
16+
Ensure you have an EVM browser wallet (i.e. Metamask) + a Cosmos based walled (i.e. Keplr)
17+
18+
![nilPay Page](/img/nilpay-main-page.png)
19+
20+
## Identity Options
21+
22+
For those that may have used the previous nilPay Portal, here is more context regarding the `did:nil` and `did:eth` formats.
23+
24+
A DID (Decentralized Identifier) is an unique cryptographic identifier for builders, users, and nodes. Format: `did:nil:[66-character-hex-string]`. Derived from public keys for verifiable authentication.
25+
26+
If you are using an Ethereum wallet, this also maps to the `did:eth` format.
27+
28+
<Tabs>
29+
<TabItem value='nilDB' label='Private Storage' default>
30+
31+
![nilPay Payment Types](/img/nilpay-payment-types.png)
32+
33+
For nilDB, you can use all of these options to pay for the subscription.
34+
- If you want an Ethereum wallet to be the authority for your keys you can use the `Brower Wallet` option.
35+
- Otherwise if you prefer to be key based, you may import one of your older keys via `Use Secret Key` or `Generate New Key` to create a new one.
36+
37+
If using the Browser Wallet option, you have two options:
38+
1. Pay for yourself which is recommended if you are the developer of the application.
39+
2. Paying for others which is recommended if you are subscribing on behalf of someone else .
40+
41+
</TabItem>
42+
43+
<TabItem value='nilAI' label='Private LLM' default>
1244

13-
![nilPay Page](/img/nilpay_page.png)
45+
![nilPay Payment Types](/img/nilpay-payment-ai-flow.png)
1446

15-
Ensure you keep your API key safe and do not share it with anyone.
47+
For nilAI, you can either use the `Use Secret Key` or `Generate New Key` option for now.
1648

17-
![nilPay API Key](/img/nilpay_api_key.png)
49+
Also ensure to mark the `Create legacy did:nil (for backwards compatibility). This must be selected for nilAI` checkbox for backwards compatibility.
1850

19-
Enter your public key to associate your API key with your nillion address.
51+
</TabItem>
52+
</Tabs>
2053

2154
## Subscription to nilAI and/or nilDB
2255

@@ -28,8 +61,8 @@ Click on the either the **Subscribe to nilAI** or **Subscribe to nilDB** button
2861

2962
After the payment goes through, you will have a 28 day subscription to the service and can now use your keys.
3063

31-
![nilAI Subscription](/img/nilai_subscription.png)
64+
![nilAI Subscription](/img/nildb_subscription.png)
3265

3366
This is possible for both services by following the same steps.
3467

35-
![nilDB payment](/img/both_services_nilpay.png)
68+
![nilDB payment](/img/nilpay_bothservice_subscription.png)

static/img/nildb_subscription.png

50.8 KB
Loading

static/img/nilpay-main-page.png

473 KB
Loading
67.4 KB
Loading
46 KB
Loading
55.7 KB
Loading

0 commit comments

Comments
 (0)