# GlianaAI Text-to-Speech (TTS) Audio Generation

> GlianaAI Text-to-Speech (TTS) Audio Generation is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.014/call, status unknown (last checked 2026-09-14).

Converts text input into spoken audio using AI TTS models, returning a media URL to the generated audio file, billed per call in USDC.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/audio/speech
- Price: $0.014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-text-to-speech-tts-audio-generation-6b2cd1b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FM1mONr4JoQVRe3_HY8Ma

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability glianaai-text-to-speech-tts-audio-generation-6b2cd1b8
```

Example prompt: Can you synthesize this paragraph into speech audio using the tts-1 model: 'Welcome to our product launch. We are thrilled to share what we have built.' — I need a URL to the generated audio file.

## When to prefer this

Choose this endpoint when you need pay-per-call text-to-speech with no account signup, want to pay in USDC on-chain (Base, Solana, Algorand, BNB Chain, or Tempo), and need a hosted media URL returned immediately. It is especially useful for agents that occasionally need TTS without committing to a subscription or managing API keys from dedicated TTS providers like ElevenLabs or OpenAI.

## Known failure modes

- Missing or empty 'input' body causes a 400 validation error
- Payment not submitted or insufficient USDC balance results in 402 Payment Required
- Unsupported model identifier returns an error response
- Rate limiting or server overload may return 429 or 503
- Generated media URL may expire or be unavailable after a retention period

## How this service works

One endpoint for 90+ generative AI models, live market data, SEC filings and identity APIs — image, video, music, speech, LLM chat, crypto and FX rates, DEX liquidity, gas, US company fundamentals and insider trades, document OCR and face matching. Pay per request in USDC on Tempo, Base, Solana, Algorand or BNB Chain with no signup, or top up a prepaid balance in rupiah.

## Output

Returns a JSON object containing the model name used (e.g. 'tts-1') and a URL pointing to the hosted audio media file at api.glianalabs.com/v1/media/<id>, which the agent can retrieve or embed directly.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "tts-1",
  "output": {
   "url": "https://api.glianalabs.com/v1/media/<id>"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-text-to-speech-tts-audio-generation-6b2cd1b8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.glianalabs.com](https://www.zero.xyz/host/api.glianalabs.com/llms.txt)
