Skip to main content
text to speech

Kokoro-82M

by hexgrad

license: apache-2.0

12,034,824 downloads7,368 likes
Get API Key

API Usage

Endpoint

POST https://api.gpu.fm/v1/inference

Request

curl -X POST https://api.gpu.fm/v1/inference \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hexgrad/Kokoro-82M",
    "inputs": "Your input here",
    "parameters": {
      "max_new_tokens": 256
    }
  }'

Response

{
  "result": "Model output",
  "usage": {
    "inputTokens": 12,
    "outputTokens": 128
  },
  "pricing": {
    "total": "0.000018"
  }
}

Python SDK

import requests

response = requests.post(
    "https://api.gpu.fm/v1/inference",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "model": "hexgrad/Kokoro-82M",
        "inputs": "Your input here",
        "parameters": {"max_new_tokens": 256}
    }
)

result = response.json()
print(result["result"])

Model Documentation

Full documentation available on HuggingFace →

Pricing

Billed from your prepaid credits. No minimum commitment.

Details

Model ID
hexgrad/Kokoro-82M
Pipeline
text to speech
Updated
4/10/2025

Tags

text-to-speechenarxiv:2306.07691arxiv:2203.02395base_model:yl4579/StyleTTS2-LJSpeechbase_model:finetune:yl4579/StyleTTS2-LJSpeechdoi:10.57967/hf/4329license:apache-2.0region:us