# GlianaAI Gemini 3.1 Flash TTS — Pay-Per-Call Text-to-Speech

> GlianaAI Gemini 3.1 Flash TTS — Pay-Per-Call Text-to-Speech is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.0174/call, status unknown (last checked 2026-09-13).

Converts text to speech using Gemini 3.1 Flash TTS, billed per call at $0.018 USDC via x402 with no API key required.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/gemini-3.1-flash-tts
- Price: $0.0174/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-gemini-3-1-flash-tts-pay-per-call-text-to-speech-3ad8389e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CmeCr09sp0lQ8jfIXfjv1

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-gemini-3-1-flash-tts-pay-per-call-text-to-speech-3ad8389e
```

Example prompt: Can you read this aloud using Gemini 3.1 Flash TTS: 'Welcome to our product demo. Today we'll walk you through the key features of our platform.' — pay the $0.018 per-call fee and give me the audio URL.

## When to prefer this

Choose this endpoint when you need Gemini 3.1 Flash TTS specifically, want to avoid API key registration, need per-call USDC micropayment billing via x402 on Base or Solana, or are building an autonomous agent that needs to pay programmatically without a subscription.

## Known failure modes

- Payment failure — insufficient USDC balance or unsupported payment method returns a 402 Payment Required
- Invalid or missing prompt field returns a 400 Bad Request
- Model temporarily unavailable returns a 503 Service Unavailable
- Malformed x402 payment header causes authentication failure
- Text too long or unsupported characters may cause a 422 Unprocessable Entity

## How this service works

GlianaAI - pay-per-call AI: LLM chat (OpenAI-compatible), image, video, music, speech - 90+ models, no signup, USDC. This resource: gemini-3.1-flash-tts (Text-to-Speech). https://ai.glianalabs.com

## Output

Returns a JSON object containing the model name ('gemini-3.1-flash-tts'), an output object with a media URL or JSON payload holding the synthesized audio, and the costMicroUsd integer indicating the exact amount charged for the call.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-gemini-3-1-flash-tts-pay-per-call-text-to-speech-3ad8389e/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)
