# Yog x402 Ping

> Yog x402 Ping is a paid API for AI agents from api.gosyog.lol, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Free-tier liveness check that returns server status, UTC timestamp, and Unix time for the Yog LLM-as-a-service API

## Facts

- Endpoint: GET https://api.gosyog.lol/api/service/yog/ping?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yog-x402-ping-9bd2da11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lv4QZQ61KpnEH2bBrOvsm

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 yog-x402-ping-9bd2da11
```

Example prompt: Can you ping the Yog API to check if it's live and grab the current server time?

## When to prefer this

Use this endpoint to verify Yog API availability before making paid calls (classify_text, json_repair, extract_fields) to avoid paying for failed requests. Prefer this over the paid endpoints whenever you only need a liveness check or server timestamp — it is free-tier and has no x402 payment requirement.

## Known failure modes

- Service down: ok:false or non-200 HTTP response if the Yog backend is unavailable
- Network timeout: no response if the host api.gosyog.lol is unreachable
- Malformed request: unexpected behavior if the ping boolean is omitted or wrong type

## How this service works

Yog x402 is a paid LLM-as-a-service API with three text capabilities plus a free-tier liveness ping, all paid via x402 USDC on Base. classify_text ($0.01) classifies text into one of your supplied labels — sentiment tagging, routing support tickets, labeling data for ML pipelines. json_repair ($0.02) fixes malformed/messy text into valid JSON — cleaning up LLM output or scraped JSON that's slightly malformed before further processing. extract_fields ($0.03) pulls named fields from source text and will not fabricate values — structured extraction from unstructured text (name/date/amount from invoices or emails).

## Output

Returns a JSON object with a top-level ok boolean, and a result object containing: ok (boolean), utc (ISO 8601 UTC timestamp string), unix (Unix epoch integer), and service name string 'yog-ping'.

## 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",
     "properties": {}
    },
    "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",
     "required": [
      "ok",
      "result"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "result": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "result": {
   "ok": true,
   "utc": "2026-09-11T00:00:00Z",
   "unix": 0,
   "service": "yog-ping"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yog-x402-ping-9bd2da11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gosyog.lol](https://www.zero.xyz/host/api.gosyog.lol/llms.txt)
