# three.ws OpenAI-Compatible Chat API for 3D AI Agents

> three.ws OpenAI-Compatible Chat API for 3D AI Agents 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).

Sends a chat message to a 3D AI agent powered by IBM watsonx.ai (Granite), returning a conversational response via an OpenAI-compatible endpoint with per-call micropayment billing.

## Facts

- Endpoint: POST https://three.ws/api/v1/x/openai/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-openai-compatible-chat-api-for-3d-ai-agents-b55201c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SHRdm4geK3bMWbwtMd4Gj

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-openai-compatible-chat-api-for-3d-ai-agents-b55201c7 -d '<json body>'
```

Example prompt: Chat with my three.ws 3D AI agent — send it the message 'What services do you offer?' and get the agent's response back; this is a POST with a JSON body and I'm okay paying the $0.005 USDC per-call fee.

## When to prefer this

Choose this endpoint when you need to interact conversationally with a three.ws 3D AI agent that is embedded on a website, especially when the agent was created from a selfie and powered by IBM watsonx.ai Granite. Prefer this over generic OpenAI endpoints when you need the micropayment-gated x402 billing model or when integrating with a 3D avatar-based agent experience.

## Known failure modes

- Payment not provided or insufficient USDC — returns 402 Payment Required
- Malformed request body missing required fields (input, type, method, bodyType, body) — returns 400 Bad Request
- Invalid method enum value (not POST/PUT/PATCH) — returns 400 validation error
- Agent not found or misconfigured — returns 404 or 500
- watsonx.ai backend unavailable — returns 503 or timeout
- Invalid bodyType enum value — returns 400 validation error

## 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 object containing the AI agent's conversational reply, formatted in an OpenAI-compatible chat completion structure, generated by IBM watsonx.ai Granite running under the three.ws 3D agent layer.

## 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-openai-compatible-chat-api-for-3d-ai-agents-b55201c7/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)
