# GlianaAI TTS-2 Text-to-Speech

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

Converts a text prompt into synthesized speech audio using the TTS-2 model, billed per call at $0.039 USDC via x402 with no API key required.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/tts-2
- Price: $0.038/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-tts-2-text-to-speech-6bfd8f25
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FIiuePVJ0-fTxiLMYJ_wS

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-tts-2-text-to-speech-6bfd8f25
```

Example prompt: Use GlianaAI's TTS-2 model to read this aloud: 'Welcome to our platform. Your order has been confirmed and will arrive in three business days.' — pay per call in USDC, no API key needed.

## When to prefer this

Choose this endpoint when your AI agent needs to synthesize speech on-demand without pre-registering an API key, and when you want per-call micropayment billing in USDC via x402. It is ideal for serverless or autonomous agent pipelines that need TTS without subscription overhead.

## Known failure modes

- Payment insufficient or rejected — x402 payment header missing or underfunded
- Prompt field missing — 400 error if required 'prompt' body field is omitted
- Model unavailable — upstream TTS-2 service outage returns 5xx
- Prompt too long — may exceed model token/character limits
- Unsupported language or characters in prompt — model returns partial or empty audio output

## How this service works

GlianaAI — tts-2 (tts)

## Output

Returns a JSON object with the model name ('tts-2'), an output object containing a media URL or JSON payload with the synthesized audio, and a costMicroUsd integer indicating how much was charged for the request.

## 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-2",
  "output": {
   "url": "https://api.glianalabs.com/v1/media/<id>"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-tts-2-text-to-speech-6bfd8f25/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)
