# GEDX402 Micro Chat (IBM Granite 4.0)

> GEDX402 Micro Chat (IBM Granite 4.0) is a paid API for AI agents from ged-x402-chat.jvalamis.workers.dev, paid per call via x402, $0.0035/call, status unknown (last checked 2026-09-15).

Send a chat conversation to IBM Granite 4.0 Micro via Cloudflare Workers AI and receive a text reply, paying per-call with USDC on multiple chains — no API key required.

## Facts

- Endpoint: GET https://ged-x402-chat.jvalamis.workers.dev/v1/chat/micro
- Price: $0.0035/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-micro-chat-ibm-granite-4-0-606afa6b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TNDJQBjN2tbqRSC0dM0_Q

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-micro-chat-ibm-granite-4-0-606afa6b
```

Example prompt: Ask IBM Granite 4.0 Micro via the x402 workers endpoint: 'What are three practical tips for improving sleep quality?' — use up to 256 tokens for the reply and pay with USDC on Base.

## When to prefer this

Choose this endpoint when you need a low-cost, permissionless LLM inference call without API key registration, especially in agentic workflows that already handle x402 USDC micropayments. It is ideal for short chat completions where the IBM Granite 4.0 Micro model's efficiency is sufficient and you want to pay per-call rather than subscribe. Prefer alternatives if you need streaming, very large context, or a specific non-Granite model.

## Known failure modes

- Payment not included or insufficient USDC — returns HTTP 402 Payment Required
- Invalid message format (missing 'role' or 'content') — returns a validation error
- max_tokens out of range (must be 1–4096) — returns a 400 error
- Network or Workers runtime failure — returns 5xx error
- Unsupported payment chain — payment rejected, 402 returned

## How this service works

x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.

## Output

A JSON object containing the model identifier ('model': '@cf/ibm-granite/granite-4.0-h-micro') and the assistant's generated text reply ('response': '...'). No streaming; the full reply is returned in one response after the micropayment is settled.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "messages": {
   "type": "array",
   "items": {
    "type": "object"
   }
  },
  "max_tokens": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "@cf/ibm-granite/granite-4.0-h-micro",
  "response": "Hello!"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-micro-chat-ibm-granite-4-0-606afa6b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ged-x402-chat.jvalamis.workers.dev](https://www.zero.xyz/host/ged-x402-chat.jvalamis.workers.dev/llms.txt)
