You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,10 +52,9 @@ For current network RPC endpoints, contract addresses, and deployment informatio
52
52
53
53
Before using the SDK, you will need:
54
54
55
-
1.**Private Key**: An Ethereum-compatible wallet private key funded with **Base Sepolia OPG tokens** for x402 LLM payments
56
-
2.**Test Tokens**: Obtain free test tokens from the [OpenGradient Faucet](https://faucet.opengradient.ai) for testnet LLM inference
57
-
3.**Alpha Testnet Key** (Optional): A private key funded with **OpenGradient testnet gas tokens** for Alpha Testnet on-chain inference (can be the same or a different key)
58
-
4.**Model Hub Account** (Optional): Required only for model uploads. Register at [hub.opengradient.ai/signup](https://hub.opengradient.ai/signup)
55
+
1.**Private Key**: An Ethereum-compatible wallet private key funded with **Base OPG tokens** for x402 LLM payments
56
+
2.**Alpha Testnet Key** (Optional): A private key funded with **OpenGradient testnet gas tokens** for Alpha Testnet on-chain inference (can be the same or a different key)
57
+
3.**Model Hub Account** (Optional): Required only for model uploads. Register at [hub.opengradient.ai/signup](https://hub.opengradient.ai/signup)
59
58
60
59
### Configuration
61
60
@@ -87,7 +86,7 @@ The SDK provides separate clients for each service. Create only the ones you nee
87
86
import os
88
87
import opengradient as og
89
88
90
-
# LLM inference — settles via x402 on Base Sepolia using OPG tokens
89
+
# LLM inference — settles via x402 on Base using OPG tokens
Copy file name to clipboardExpand all lines: docs/opengradient/client/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ OpenGradient Client -- service modules for the SDK.
10
10
11
11
## Modules
12
12
13
-
-**[llm](./llm)** -- LLM chat and text completion with TEE-verified execution and x402 payment settlement (Base Sepolia OPG tokens)
13
+
-**[llm](./llm)** -- LLM chat and text completion with TEE-verified execution and x402 payment settlement (Base OPG tokens)
14
14
-**[model_hub](./model_hub)** -- Model repository management: create, version, and upload ML models
15
15
-**[alpha](./alpha)** -- Alpha Testnet features: on-chain ONNX model inference (VANILLA, TEE, ZKML modes), workflow deployment, and scheduled ML model execution (OpenGradient testnet gas tokens)
16
16
-**[twins](./twins)** -- Digital twins chat via OpenGradient verifiable inference
@@ -22,7 +22,7 @@ OpenGradient Client -- service modules for the SDK.
22
22
```python
23
23
import opengradient as og
24
24
25
-
# LLM inference (Base Sepolia OPG tokens)
25
+
# LLM inference (Base OPG tokens)
26
26
llm = og.LLM(private_key="0x...")
27
27
llm.ensure_opg_approval(min_allowance=5)
28
28
result =await llm.chat(model=og.TEE_LLM.CLAUDE_HAIKU_4_5, messages=[...])
By default, `LLM()` constructor automatically discovers active TEE endpoints from the on-chain TEE registry using the `rpc_url` parameter (defaults to the Base Sepolia testnet).
234
+
By default, `LLM()` constructor automatically discovers active TEE endpoints from the on-chain TEE registry using the `rpc_url` parameter (defaults to the OpenGradient devnet).
235
235
236
236
**Key Points:**
237
237
- The TEE endpoint is **dynamically discovered** from the registry
238
-
- x402 payments are always settled on **Base Sepolia**, regardless of which TEE endpoint serves your request
238
+
- x402 payments are always settled on **Base**, regardless of which TEE endpoint serves your request
239
239
- This is the recommended approach for production use
240
240
241
241
**Example:**
@@ -250,7 +250,7 @@ For development, testing, or self-hosted TEE servers, use `LLM.from_url()` with
250
250
251
251
**Key Points:**
252
252
- TLS certificate verification is disabled (suitable for self-signed certs)
253
-
- x402 payment settlement still occurs on Base Sepolia
253
+
- x402 payment settlement still occurs on Base
254
254
- Intended for non-production environments only
255
255
256
256
**Example:**
@@ -264,5 +264,5 @@ llm = og.LLM.from_url(
264
264
265
265
### Important: x402 Payment Settlement
266
266
267
-
Regardless of which TEE endpoint serves your inference request, **x402 payment settlement always occurs on Base Sepolia blockchain**. This ensures all payments are recorded on-chain for auditability and ensures consistent settlement across all TEE providers.
267
+
Regardless of which TEE endpoint serves your inference request, **x402 payment settlement always occurs on Base blockchain**. This ensures all payments are recorded on-chain for auditability and ensures consistent settlement across all TEE providers.
Copy file name to clipboardExpand all lines: docs/opengradient/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ inference was performed correctly.
19
19
20
20
The SDK operates across two chains with separate private keys:
21
21
22
-
-**[llm](./client/llm)** (``og.LLM``) -- LLM chat and completion with TEE-verified execution. Pays via x402 on **Base Sepolia** (requires OPG tokens).
22
+
-**[llm](./client/llm)** (``og.LLM``) -- LLM chat and completion with TEE-verified execution. Pays via x402 on **Base** (requires OPG tokens).
23
23
-**[alpha](./client/alpha)** (``og.Alpha``) -- On-chain ONNX model inference with VANILLA, TEE, or ZKML verification. Pays gas on the **OpenGradient alpha testnet**.
24
24
-**[model_hub](./client/model_hub)** (``og.ModelHub``) -- Model repository management: create, version, and upload ML models. Requires email/password auth.
25
25
-**[twins](./client/twins)** (``og.Twins``) -- Digital twins chat via verifiable inference. Requires a twins API key.
Copy file name to clipboardExpand all lines: examples/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Before running any examples, ensure you have:
8
8
9
9
1.**Installed the SDK**: `pip install opengradient`
10
10
2.**Set up your credentials**: Configure your OpenGradient account using environment variables:
11
-
-`OG_PRIVATE_KEY`: Private key funded with **Base Sepolia OPG tokens** for x402 LLM payments (can be obtained from our [faucet](https://faucet.opengradient.ai)). Also used for Alpha Testnet on-chain inference (requires **OpenGradient testnet gas tokens**).
11
+
-`OG_PRIVATE_KEY`: Private key funded with **Base OPG tokens** for x402 LLM payments.
12
12
-`OG_MODEL_HUB_EMAIL`: (Optional) Your Model Hub email for model uploads
13
13
-`OG_MODEL_HUB_PASSWORD`: (Optional) Your Model Hub password for model uploads
14
14
@@ -140,7 +140,7 @@ Each sub-client is created independently with the credentials it needs:
140
140
import os
141
141
import opengradient as og
142
142
143
-
# LLM inference (Base Sepolia OPG tokens for x402 payments)
143
+
# LLM inference (Base OPG tokens for x402 payments)
Copy file name to clipboardExpand all lines: integrationtest/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@ End-to-end tests that exercise the OpenGradient SDK against live services.
6
6
7
7
### LLM (`llm/`)
8
8
9
-
Tests LLM chat and streaming chat via the x402 payment flow on Base Sepolia.
9
+
Tests LLM chat and streaming chat via the x402 payment flow on Base.
10
10
11
11
Each run creates a **fresh Ethereum account**, funds it with ETH (for gas) and OPG tokens from a funder wallet, approves Permit2, and then runs chat requests against a TEE-verified model.
12
12
13
13
**Requirements:**
14
-
-`PRIVATE_KEY` env var — private key of a funded wallet on Base Sepolia that holds OPG tokens.
14
+
-`PRIVATE_KEY` env var — private key of a funded wallet on Base that holds OPG tokens.
Copy file name to clipboardExpand all lines: src/opengradient/__init__.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
11
11
The SDK operates across two chains with separate private keys:
12
12
13
-
- **`opengradient.client.llm`** (``og.LLM``) -- LLM chat and completion with TEE-verified execution. Pays via x402 on **Base Sepolia** (requires OPG tokens).
13
+
- **`opengradient.client.llm`** (``og.LLM``) -- LLM chat and completion with TEE-verified execution. Pays via x402 on **Base** (requires OPG tokens).
14
14
- **`opengradient.client.alpha`** (``og.Alpha``) -- On-chain ONNX model inference with VANILLA, TEE, or ZKML verification. Pays gas on the **OpenGradient alpha testnet**.
15
15
- **`opengradient.client.model_hub`** (``og.ModelHub``) -- Model repository management: create, version, and upload ML models. Requires email/password auth.
16
16
- **`opengradient.client.twins`** (``og.Twins``) -- Digital twins chat via verifiable inference. Requires a twins API key.
0 commit comments