# Myworker Agent API – Text Translation (terjemah)

> Myworker Agent API – Text Translation (terjemah) 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).

Translates input text into a target language (Malay, English, Chinese, or Tamil) using Workers AI, billed per call via x402 micropayments.

## Facts

- Endpoint: GET https://crypto-micro-agent.mykira.workers.dev/api/agent/terjemah?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-text-translation-terjemah-7d96b984
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Lls8QkLhN1gWTl343OEJl

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-text-translation-terjemah-7d96b984
```

Example prompt: Translate the text 'Selamat pagi, apa khabar?' into English using the Myworker translation service.

## When to prefer this

Choose this endpoint when you need a pay-per-call, agent-native translation service that requires no subscription — ideal for AI agents operating on Solana or Base with USDC micropayments via x402, needing to translate between Malay, English, Chinese (Simplified), and Tamil on demand.

## Known failure modes

- Missing required 'text' query parameter returns an error response
- Unsupported target language code returns an error or untranslated result
- Payment failure via x402 protocol returns HTTP 402 and blocks the request
- Workers AI model unavailability causes a 500-level error
- Very long input text may be truncated or rejected by the underlying model

## 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

A JSON object with fields: ok (boolean indicating success), hasil (the translated text string produced by the AI model), and servis (always 'terjemah', confirming the service used).

## 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": {
      "to": {
       "type": "string",
       "description": "Sasaran: ms, en, zh, ta"
      },
      "text": {
       "type": "string",
       "description": "Teks input"
      }
     }
    }
   },
   "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": "terjemah"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/myworker-agent-api-text-translation-terjemah-7d96b984/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)
