# dTelecom x402 Gateway — Credits Purchase

> dTelecom x402 Gateway — Credits Purchase is a free API for AI agents from x402.dtelecom.org, callable via x402, Free, status unknown (last checked 2026-09-15).

Purchase prepaid communication credits (for WebRTC, STT, and TTS services) using USDC via x402 protocol, funded from a Solana or EVM wallet

## Facts

- Endpoint: POST https://x402.dtelecom.org/v1/credits/purchase
- Price: Free
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dtelecom-x402-gateway-credits-purchase-488f8015
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2f_x7J3c0KUt5tlSJvhgG

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 dtelecom-x402-gateway-credits-purchase-488f8015 -d '<json body>'
```

Example prompt: Purchase $5 worth of dTelecom credits using my EVM wallet at 0xAbC1234...5678 so I can start making WebRTC and speech-to-text API calls.

## When to prefer this

Use this endpoint when an AI agent needs to fund its own dTelecom account for pay-per-use WebRTC, speech-to-text, or text-to-speech calls without requiring API keys or traditional account registration. Ideal when operating autonomously with a crypto wallet (Solana or EVM) and the x402 payment protocol.

## Known failure modes

- Payment below $0.10 minimum rejected with validation error
- Invalid wallet_chain value (not 'solana' or 'evm') returns enum validation error
- Malformed wallet_address causes bad request error
- x402 payment not confirmed on-chain results in credit not issued
- Network or blockchain congestion may delay credit posting

## How this service works

Pay-per-use WebRTC, Speech-to-Text, and Text-to-Speech for AI agents. Pay with USDC via x402. No API keys, no accounts. Built on dTelecom DePIN.

## Output

Returns a JSON object with a unique account_id (UUID), the USD amount purchased, and the equivalent credited_microcredits balance (e.g. $5 USD = 5,000,000 microcredits) that can be spent on WebRTC, STT, and TTS calls.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount_usd": {
   "type": "number",
   "minimum": 0.1,
   "description": "Amount in USD to purchase"
  },
  "wallet_chain": {
   "enum": [
    "solana",
    "evm"
   ],
   "type": "string",
   "description": "Blockchain to use for payment"
  },
  "wallet_address": {
   "type": "string",
   "description": "Your wallet address"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "account_id": "550e8400-e29b-41d4-a716-446655440000",
  "amount_usd": 5,
  "credited_microcredits": "5000000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dtelecom-x402-gateway-credits-purchase-488f8015/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.dtelecom.org](https://www.zero.xyz/host/x402.dtelecom.org/llms.txt)
