capabilities / voice
V

Text to speech

Voice API · Text → MP3. Providers: edge (free), elevenlabs ($0.15/1k chars), cosyvoice ($0.0105/1k chars). Metered by characters; cost returned in X-Cost-Usd.

POST /tts/synthesize
routes through:Voice·avg cost $0.0072·p95 6.5s· public
Request
API keyrequired
Auto-filled from your SpareAPI account — paste another to override.
text
prefer_provider
voice
Forwards to the live spareai-hub gateway and returns the operator's real result — charged per call against your balance.
Response
Run the capability to see a response
POST /api/scrape
Payload · application/json
POST /api/scrape
{
  "service": "voice",
  "endpointPath": "/tts/synthesize",
  "params": {
    "text": "SpareAPI metered billing test, should debit now.",
    "prefer_provider": "elevenlabs",
    "voice": "21m00Tcm4TlvDq8ikWAM"
  }
}