73trust / 100

En Zh Cdrama Subtitles

by cdrama-episode-en-zh in Markets & finance

x402 APIPassing, checked 5 h ago

Translate a short-drama episode, retaining subtitle cue identity and timing. A private series key carries approved terminology into later episodes and unambiguous renderings into the reverse direction. Output is a draft with mechanical checks and requires review before production approval.

POST
https://market.561.group/v1/translate/en-zh/cdrama-subtitles
Price
$0.01
per call in USDC
Uptime
100%
last 30 days
Response time
989 ms
1.8 s slowest 5%
Last check
Passed
5 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://market.561.group/v1/translate/en-zh/cdrama-subtitles

Each call costs $0.01 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://market.561.group/v1/translate/en-zh/cdrama-subtitles
content-type: application/json

{
  "approvedTerms": [
    {
      "direction": "en-zh",
      "source": "Mr. Gu",
      "target": "顾总裁"
    }
  ],
  "episodeId": "episode-1",
  "subtitles": "1\n00:00:00,800 --> 00:00:02,200\nMr. Gu, your coffee.\n"
}

Parameters

ParameterTypeRequiredDescription
approvedTermsarray of objectNoOptional approved terminology when creating a series; existing series terminology is changed through review.
episodeIdstringNoStable episode slug; reusing it with the same source returns the recorded draft.
productionContextstringNoOptional scene and character context, at most 1000 characters.
seriesKeystringNoPrivate bearer key returned by the first episode. Omit to create a new series.
subtitlesstringNoSRT or WebVTT source; send this or text.
textstringNoSource script paragraphs; send this or subtitles.

Example response

The provider's example. We can't check it without paying.

Example response, 41 lines
{
  "checks": {
    "issues": [],
    "scope": "mechanical-only"
  },
  "cues": [
    {
      "end": 2200,
      "id": "1",
      "index": 0,
      "issues": [],
      "source": "顾总裁,您的咖啡。",
      "start": 800,
      "target": "Mr. Gu, your coffee."
    }
  ],
  "direction": "en-zh",
  "episodeId": "episode-1",
  "format": "srt",
  "kind": "cdrama.episode-translation/v1",
  "model": [
    "@cf/zai-org/glm-4.7-flash"
  ],
  "productionContext": "",
  "reviewHistory": [],
  "reviewRequired": true,
  "seriesId": "sha256-of-private-series-key",
  "seriesKey": "returned-on-first-episode-only",
  "seriesRevision": 0,
  "seriesTerms": [
    {
      "direction": "zh-en",
      "source": "顾总裁",
      "target": "Mr. Gu"
    }
  ],
  "sourceDigest": "sha256-of-source",
  "status": "draft",
  "termCandidates": [],
  "translation": "1\n00:00:00,800 --> 00:00:02,200\n顾先生,您的咖啡。\n"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://market.561.group/v1/translate/en-zh/cdrama-subtitles' \
  -H 'content-type: application/json' \
  --data-raw '{"approvedTerms":[{"direction":"en-zh","source":"Mr. Gu","target":"\u987e\u603b\u88c1"}],"episodeId":"episode-1","subtitles":"1\n00:00:00,800 --> 00:00:02,200\nMr. Gu, your coffee.\n"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://market.561.group/v1/translate/en-zh/cdrama-subtitles' \
  -H 'content-type: application/json' \
  --data-raw '{"approvedTerms":[{"direction":"en-zh","source":"Mr. Gu","target":"\u987e\u603b\u88c1"}],"episodeId":"episode-1","subtitles":"1\n00:00:00,800 --> 00:00:02,200\nMr. Gu, your coffee.\n"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fmarket.561.group%2Fv1%2Ftranslate%2Fen-zh%2Fcdrama-subtitles&method=POST
const res = await pay("https://market.561.group/v1/translate/en-zh/cdrama-subtitles", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "approvedTerms": [
      {
        "direction": "en-zh",
        "source": "Mr. Gu",
        "target": "\u987e\u603b\u88c1"
      }
    ],
    "episodeId": "episode-1",
    "subtitles": "1\n00:00:00,800 --> 00:00:02,200\nMr. Gu, your coffee.\n"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://market.561.group/v1/translate/en-zh/cdrama-subtitles",
        json={
            "approvedTerms": [
                {
                    "direction": "en-zh",
                    "source": "Mr. Gu",
                    "target": "\u987e\u603b\u88c1",
                },
            ],
            "episodeId": "episode-1",
            "subtitles": "1\n00:00:00,800 --> 00:00:02,200\nMr. Gu, your coffee.\n",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed4021.1 s$0.01
10 h agoPassed402258 ms$0.01
15 h agoPassed4021.1 s$0.01
20 h agoPassed4021.1 s$0.01
24 h agoPassed4021.0 s$0.01
Show 10 older checks
29 h agoPassed4021.1 s$0.01
34 h agoPassed402918 ms$0.01
38 h agoPassed402748 ms$0.01
42 h agoPassed4021.6 s$0.01
46 h agoPassed4021.8 s$0.01
2 days agoPassed4021.8 s$0.01
2 days agoPassed402894 ms$0.01
2 days agoPassed4021.1 s$0.01
3 days agoPassed402140 ms$0.01
3 days agoPassed4021.3 s$0.01