Latenode

Kokoro TTS orchestration

This template accepts text on a Latenode webhook, shapes the payload in JavaScript, and posts it to your Kokoro HTTP API so speech stays on the host you run.

It then writes request id, duration, and the audio URL or path to the Latenode database. Put the Kokoro API key in the HTTP request node. Point your app at the webhook URL.

Updated Sep 16, 2026Est. run: 8sEst. cost: $0.0005
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Turns webhook text into Kokoro speech on the host you run
  • Shapes the request in JavaScript, then posts with HTTP
  • Keeps the Kokoro API key in the HTTP request node
  • Logs request id and audio path in the Latenode database

How it works

1
Trigger

Receive the text

A webhook starts the scenario when your product posts text, voice, and format.

2
Logic

Shape the Kokoro request

JavaScript caps length and builds the JSON body Kokoro expects.

3
Action

Call the Kokoro HTTP API

An HTTP request node posts to your Kokoro URL. Put the Kokoro API key in that HTTP request node.

4
Action

Log the run

The Latenode database stores request id, duration, and the audio URL or path.

Setup guide

1

Add a webhook trigger

Add a webhook trigger and copy its URL. Have your product POST text, voice, and output format to that URL.

2

Reach the Kokoro HTTP API

Publish Kokoro so Latenode can POST to it. In JavaScript, cap string length and build the JSON body. Add an HTTP request node aimed at that Kokoro URL and put the Kokoro API key there.

3

Log in the Latenode database

Create a database object with request id, duration, and the audio URL or path returned by Kokoro. Send a test POST and confirm audio plus the log row.

Requirements

A Kokoro HTTP API Latenode can reach
A Kokoro API key stored in the HTTP request node
An app that can POST text to the Latenode webhook
A Latenode database table for request id, duration, and audio path

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.