# Myworker Agent API – AI Text Processing (JSON)

> Myworker Agent API – AI Text Processing (JSON) is a paid API for AI agents from crypto-micro-agent.mykira.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-23).

Processes a text input using Workers AI and returns a structured JSON result, optionally shaped by a user-supplied JSON schema, for $0.005 USDC per call via x402.

## Facts

- Endpoint: GET https://crypto-micro-agent.mykira.workers.dev/api/agent/json?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/myworker-agent-api-ai-text-processing-json-cb8faa3a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TBMdNyDrCO8MOdNt78dBw

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 myworker-agent-api-ai-text-processing-json-cb8faa3a
```

Example prompt: Run this text through the Workers AI model and give me the result as JSON: 'Summarize the key risks of investing in Solana tokens' — use the schema {summary: string, riskLevel: string}.

## When to prefer this

Choose this endpoint when you need a low-cost ($0.005/call), pay-per-use AI text processing service that returns structured JSON, and you are already operating in the Solana/Base ecosystem and can pay via USDC or SOL using the x402 protocol. It is especially useful for agents that need AI inference without a subscription and want to control output shape via a custom JSON schema.

## Known failure modes

- Payment not received or insufficient USDC/SOL — returns HTTP 402 Payment Required
- Missing required 'text' field in queryParams — returns validation error
- Invalid or malformed 'skema' JSON schema — may return unstructured result or error
- Model timeout or Workers AI unavailability — returns error response
- Unsupported HTTP method (only GET/HEAD/DELETE accepted) — returns 405

## How this service works

Servis berbayar untuk bot/agen (x402): data pasaran Solana via Jupiter + RPC, dan servis AI via Workers AI. Bayar per panggilan dengan USDC di Solana, USDC di Base, atau SOL.

## Output

Returns a JSON object with an 'ok' boolean indicating success, a 'hasil' field containing the AI-generated text or structured result, and a 'servis' field confirming the service type ('json').

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "example": {
      "text": "teks contoh"
     },
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Teks input"
      },
      "skema": {
       "type": "string",
       "description": "Bentuk JSON yang dikehendaki"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "hasil": "Teks hasil daripada model AI…",
  "servis": "json"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/myworker-agent-api-ai-text-processing-json-cb8faa3a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from crypto-micro-agent.mykira.workers.dev](https://www.zero.xyz/host/crypto-micro-agent.mykira.workers.dev/llms.txt)
