Kokoro American English
Usage-based pricing
ae_kokoro_american_english
Turn text into American English speech with a choice of voices and speaking speeds.
Usage-based pricing
Pricing
The charge per call is (max(24 × Input characters, 0)) AE credits. All applicable conditions are combined to calculate the total.
Input characters are measured in thousands of characters in the submitted text. The same rate applies to all voice and speed choices.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
request_body | object | Yes | No parameter description. | — |
request_body.speed | number | No | Speed of the generated audio. Default is 1.0. | 1 |
request_body.voice | enum (af_heart | af_alloy | af_aoede | af_bella | af_jessica | af_kore | af_nicole | af_nova | af_river | af_sarah | af_sky | am_adam | am_echo | am_eric | am_fenrir | am_liam | am_michael | am_onyx | am_puck | am_santa) | No | Voice ID for the desired voice. | af_heart |
request_body.prompt | string | No | No parameter description. | "" |
Invocation example
Copy the request and explore its response example.
POST
/agent-api/v1/tool/executeX-Api-KeySubmit first, then query with the returned task_id until the task completes.
Request coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_kokoro_american_english' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"request_body": {
"prompt": "Can you help them?",
"speed": 0.78,
"voice": "af_heart"
}
}
}'Response exampleresponse.json
{
"description": "task accepted; poll the result via query_tool with this task_id",
"query_tool": "ae_get_result",
"status": "created",
"task_id": "9c88f941-3a13-4a2a-b742-904d50c985fb"
}




