# GEDX402 Memory Sessions – x402 Database Session Initializer

> GEDX402 Memory Sessions – x402 Database Session Initializer is a paid API for AI agents from db.gedx402.com, paid per call via x402, $0.69/call, status unknown (last checked 2026-09-16).

Creates a prepaid database session (with SQL query and exec credits) by paying via x402/USDC, returning a session token and credit balance

## Facts

- Endpoint: GET https://db.gedx402.com/v1/memory/sessions
- Price: $0.69/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-memory-sessions-x402-database-session-initializer-1ea7ffa5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o4FfKxVLvMT8_qotx9iqN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gedx402-memory-sessions-x402-database-session-initializer-1ea7ffa5
```

Example prompt: Start a new GEDX402 database session for me with 10 prepaid read queries and 5 write operations — I want to pay with USDC on Base without needing an API key.

## When to prefer this

Choose this endpoint when you need keyless, crypto-native SQL database access via the x402 payment protocol, especially for serverless or agent workflows where managing API keys is undesirable. Ideal when you want to prepay for a fixed number of SQL read and write operations using USDC on a supported chain (Base, Polygon, Arbitrum, World, Solana) and receive a session token to use for subsequent queries.

## Known failure modes

- Payment failure or insufficient USDC balance — x402 payment not accepted, session not created
- Invalid budget values (max_queries or max_exec_ops out of range 0–256 or 0–64 respectively) — validation error
- Unsupported payment network — chain not among Base, Polygon, Arbitrum, World, or Solana
- Session creation timeout — upstream Cloudflare Worker unavailable
- Rate limiting or quota exceeded on the server side

## How this service works

Single-hop SQL memory session on db.gedx402.com — one x402 payment prepays sql/exec write and sql/query read credits. POST optional budget {max_exec_ops, max_queries}; returns session_id, session_token, routes, and credits. $0.69 USDC wire settlement (budget caps apply). Send session_token on query/exec (header X-Memory-Session-Token or body) — no 402 until credits exhausted. Bundle hero: GET /v1/models?bundle=memory.

## Output

Returns a JSON object containing a unique session_id, a session_token for authenticating subsequent SQL requests, the routes for exec and query endpoints, and the remaining credit counts (queries_remaining and exec_ops_remaining) based on the budget specified at creation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "budget": {
   "type": "object",
   "additionalProperties": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-memory-sessions-x402-database-session-initializer-1ea7ffa5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from db.gedx402.com](https://www.zero.xyz/host/db.gedx402.com/llms.txt)
