# three.ws Grok Chat API

> three.ws Grok Chat API is a paid API for AI agents from three.ws, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Send a chat message to a 3D AI agent powered by IBM watsonx.ai (Granite) on the three.ws platform, billed at $0.005 USDC per call via x402 micropayments

## Facts

- Endpoint: POST https://three.ws/api/v1/x/grok/chat
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/three-ws-grok-chat-api-cf18fb8c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5M8wYwgCXOTBxmsoZu7FY

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 three-ws-grok-chat-api-cf18fb8c -d '<json body>'
```

Example prompt: Send a chat message to my three.ws 3D agent asking 'What services do you offer?' — use a JSON body POST and pay the $0.005 USDC per-call fee via x402.

## When to prefer this

Choose this endpoint when you need to interact conversationally with a three.ws-hosted 3D AI agent backed by IBM watsonx.ai Granite, especially in micropayment-gated or x402-compatible agent workflows where per-call USDC billing is acceptable and desirable.

## Known failure modes

- Payment not provided or insufficient USDC balance — HTTP 402 Payment Required
- Malformed input body missing required fields (type, method, bodyType, body) — HTTP 400 Bad Request
- Agent not found or misconfigured — HTTP 404 Not Found
- Rate limit exceeded — HTTP 429 Too Many Requests
- IBM watsonx.ai backend timeout or unavailability — HTTP 503 Service Unavailable

## How this service works

Make a 3D AI agent from a selfie in 60 seconds. Drop one HTML tag to embed it on any website. Agents think on IBM watsonx.ai (Granite); optionally charge per chat with built-in micropayments.

## Output

A JSON response containing the AI-generated reply from the three.ws agent (powered by IBM watsonx.ai Granite), representing the agent's conversational response to the submitted input message.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "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"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/three-ws-grok-chat-api-cf18fb8c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from three.ws](https://www.zero.xyz/host/three.ws/llms.txt)
