# PaySponge LLM Text Completions

> PaySponge LLM Text Completions is a paid API for AI agents from api.paysponge.com, paid per call via x402, $0.010000/call, status unknown (last checked 2026-09-15).

Generates LLM text completions gated by on-chain crypto payments (USDC on Base or Solana SPL tokens) via the x402 payment protocol.

## Facts

- Endpoint: POST https://api.paysponge.com/x402/purchase/svc_d5zgtpg00dvssgj28/completions
- Price: $0.010000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-paysponge-com-ff1853f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cBWasCGEjUPJHNt1zcB6c

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 api-paysponge-com-ff1853f6 -d '<json body>'
```

Example prompt: Using PaySponge's pay-per-call completions endpoint, generate a short product description for a wireless ergonomic keyboard — pay with USDC on Base via the x402 protocol.

## When to prefer this

Choose this endpoint when your agent needs LLM text completions in a trustless, pay-per-use model using on-chain crypto payments (USDC on Base or Solana SPL tokens) without requiring traditional API keys or subscriptions, particularly in Web3-native or autonomous agent contexts using the x402 protocol.

## Known failure modes

- Payment not provided or expired receipt — 402 Payment Required response
- Insufficient USDC or SPL token balance — payment rejected
- Invalid or malformed POST body — 400 Bad Request
- Time-limited receipt expired before request processed — authentication failure
- Unsupported chain or token — payment method not accepted

## How this service works

Unlock LLM text completions via PaySponge payments, accepting on-chain USDC (eip155:8453) and Solana SPL token payments with exact, time-limited receipts.

## Output

A JSON response containing an LLM-generated text completion, returned after a valid on-chain USDC (Base/EIP-155:8453) or Solana SPL token payment is confirmed via the x402 protocol.

## Example request

```json
{
 "input": {
  "body": {
   "models": [
    "gpt-4o-mini"
   ],
   "prompt": "Hello",
   "max_tokens": 100
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "prompt",
      "models"
     ],
     "properties": {
      "models": {
       "type": "array",
       "items": {
        "type": "string"
       },
       "description": "List of model identifiers to use (e.g. OpenRouter model names like 'gpt-4o-mini')"
      },
      "prompt": {
       "type": "string",
       "description": "The input text prompt for LLM completion"
      },
      "max_tokens": {
       "type": "integer",
       "description": "Maximum number of tokens to generate in the completion. Should be set to a value the account can afford."
      }
     },
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "id",
  "object",
  "created",
  "model",
  "provider",
  "system_fingerprint",
  "choices",
  "usage"
 ],
 "properties": {
  "id": {
   "type": "string"
  },
  "model": {
   "type": "string"
  },
  "usage": {
   "type": "object",
   "required": [
    "prompt_tokens",
    "completion_tokens",
    "total_tokens",
    "cost",
    "is_byok",
    "prompt_tokens_details",
    "cost_details",
    "completion_tokens_details",
    "service_tier"
   ],
   "properties": {
    "cost": {
     "type": "number"
    },
    "is_byok": {
     "type": "boolean"
    },
    "cost_details": {
     "type": "object",
     "required": [
      "upstream_inference_cost",
      "upstream_inference_prompt_cost",
      "upstream_inference_completions_cost"
     ],
     "properties": {
      "upstream_inference_cost": {
       "type": "number"
      },
      "upstream_inference_prompt_cost": {
       "type": "number"
      },
      "upstream_inference_completions_cost": {
       "type": "number"
      }
     }
    },
    "service_tier": {
     "type": "null"
    },
    "total_tokens": {
     "type": "number"
    },
    "prompt_tokens": {
     "type": "number"
    },
    "completion_tokens": {
     "type": "number"
    },
    "prompt_tokens_details": {
     "type": "object",
     "required": [
      "cached_tokens",
      "cache_write_tokens",
      "audio_tokens",
      "video_tokens"
     ],
     "properties": {
      "audio_tokens": {
       "type": "number"
      },
      "video_tokens": {
       "type": "number"
      },
      "cached_tokens": {
       "type": "number"
      },
      "cache_write_tokens": {
       "type": "number"
      }
     }
    },
    "completion_tokens_details": {
     "type": "object",
     "required": [
      "reasoning_tokens",
      "image_tokens",
      "audio_tokens"
     ],
     "properties": {
      "audio_tokens": {
       "type": "number"
      },
      "image_tokens": {
       "type": "number"
      },
      "reasoning_tokens": {
       "type": "number"
      }
     }
    }
   }
  },
  "object": {
   "type": "string"
  },
  "choices": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "index",
     "text",
     "reasoning",
     "logprobs",
     "finish_reason",
     "native_finish_reason"
    ],
    "properties": {
     "text": {
      "type": "string"
     },
     "index": {
      "type": "number"
     },
     "logprobs": {
      "type": "null"
     },
     "reasoning": {
      "
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-paysponge-com-ff1853f6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.paysponge.com](https://www.zero.xyz/host/api.paysponge.com/llms.txt)
