Api Endpoint

Voice agent

Voice agent. One turn of a voice assistant: send the user's voice note (or text), your instructions and the earlier turns; get back what was heard, a short reply, the reply spoken in English, Spanish, French, Chinese, Japanese or Korean and the updated history to send next time. Speech up to 2 minutes (MP3/WAV, or 1 MB of other formats); replies up to 600 characters. Use for voice bots in Telegram or WhatsApp, phone menus, kiosks and hands-free helpers.

Open interactive test console

Offering

Provider
agent-data-tools.revmesh2074.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://agent-data-tools.revmesh2074.workers.dev/voice/agent
MIME type
application/json
First seen
2026-11-21T18:33:03.004Z
Last seen
Tags
voice-agent, voice-assistant, conversational-ai, speech-to-text, text-to-speech

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.05 USDC
Atomic price: 50000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.05 USDC
Atomic price: 50000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 3
0.05 USDC
Atomic price: 50000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Payment option 4
0.05 USDC
Atomic price: 50000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "50000",
    "payTo": "0x6293ded2684F1A76E26bEcef87c137D691Fbf800"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "50000",
    "payTo": "0x6293ded2684F1A76E26bEcef87c137D691Fbf800"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "50000",
    "payTo": "0x6293ded2684F1A76E26bEcef87c137D691Fbf800"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "50000",
    "payTo": "82wfSCZhCmZA7zwqqt6Q3FG8nqYBwUvbThP6M97fa9Q6"
  }
]

Observed health

Status
Healthy
Latest latency
176 ms
Average latency
145 ms
HTTP status
402
Last checked
Reachability
100% over 4 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "The user's turn as text (or send audio with url or a POSTed file)",
          "examples": [
            "What time do you open on Saturday?"
          ]
        },
        "url": {
          "type": "string",
          "description": "Absolute http(s) URL of the user's spoken turn (MP3/WAV up to 2 minutes, other formats up to 1 MB); or POST the file; or send text instead",
          "examples": [
            "https://upload.wikimedia.org/wikipedia/commons/7/77/Tofino_pronunciation.mp3"
          ]
        },
        "instructions": {
          "type": "string",
          "description": "Who the assistant is and what it knows (up to 2,000 characters)",
          "examples": [
            "You answer for a bakery. Open Monday to Saturday 7 to 17, closed Sunday."
          ]
        },
        "history": {
          "type": "string",
          "description": "Earlier turns as a JSON array of {role, content}, as returned in history by the last call",
          "examples": [
            "[]"
          ]
        },
        "lang": {
          "type": "string",
          "description": "Reply language and voice: en or es (Aura-2 MP3); fr, zh, ja and ko are retired, so a request for them is a 422 (MeloTTS was removed from Workers AI, 20 Nov 2026); default en",
          "enum": [
            "en",
            "es"
          ],
          "examples": [
            "en"
          ]
        },
        "voice": {
          "type": "string",
          "description": "Aura-2 voice for an en or es reply (default luna for en, aquila for es)",
          "examples": [
            "luna"
          ]
        }
      },
      "required": [
        "text"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "heard": {
          "type": "string"
        },
        "reply": {
          "type": "string"
        },
        "contentType": {
          "type": "string"
        },
        "audioBase64": {
          "type": "string"
        },
        "audioBytes": {
          "type": "number"
        },
        "voice": {
          "type": "string"
        },
        "lang": {
          "type": "string"
        },
        "history": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "role": {
                "type": "string"
              },
              "content": {
                "type": "string"
              }
            }
          }
        },
        "model": {
          "type": "string"
        },
        "speechModel": {
          "type": "string"
        }
      }
    }
  },
  "required": [
    "type"
  ]
}