Skip to content
onelayer.
All tools

Tool detail

Text-to-speech (lite)

Converts up to 800 characters of text to speech with a Kokoro voice mapped from one of 10 named presets, returned as base64 mp3 or pcm.

Categories: Speech audio

Use when

  • convert short text to speech cheaply for high-volume narration
  • generate agent notification audio where cost matters more than voice quality

Not for

  • not for text over 800 characters in one call
  • not the closest OpenAI-tier voice timbre — use /api/tts or /api/tts-hd for that

Inputs

POST JSON body: { text: string ≤800 chars (required) }; voice (10 named options), format (mp3/pcm, default mp3) (optional)

Admitted input schema

{
  "type": "object",
  "properties": {
    "format": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Audio format: mp3 or pcm (default: mp3). The other formats are on /api/tts"
    },
    "text": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Text to convert to speech (max 800 chars)"
    },
    "voice": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Voice: alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer (default: alloy) - mapped to the nearest Kokoro voice, which is named back in the response"
    }
  },
  "required": [
    "text"
  ],
  "additionalProperties": false
}

Endpoint

Method
POST
URL
https://agent402.tools/api/tts-lite

Payment

Protocol
x402
Listed price
0.005 USDC per call on Base
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
POST https://agent402.tools/api/tts-lite
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z