# GlianaAI Gemini 3.1 Pro Text Generation

> GlianaAI Gemini 3.1 Pro Text Generation is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.017204/call, status unknown (last checked 2026-09-14).

Runs a text generation request against Google's Gemini 3.1 Pro model via a pay-per-call, no-signup API endpoint using USDC micropayments

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/gemini-3.1-pro
- Price: $0.017204/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-gemini-3-1-pro-text-generation-8fc41a8a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WzUEV2wOiwbA29jDgjLWP

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-pro-text-generation-8fc41a8a
```

Example prompt: Use GlianaAI's Gemini 3.1 Pro endpoint to answer this question — I'll pay the ~$0.02 USDC fee per call: 'Explain the key differences between transformer and state-space model architectures in three paragraphs.'

## When to prefer this

Choose this endpoint when you need Google Gemini 3.1 Pro's text generation capabilities without a Google Cloud account or API key, and you want to pay per call in USDC with no subscription. Ideal for autonomous agents making occasional or unpredictable LLM calls where pay-per-use economics are preferred over flat-rate subscriptions.

## Known failure modes

- Payment not provided or insufficient USDC — returns 402 Payment Required
- Model unavailable or overloaded — returns 503 or timeout
- Malformed input body — returns 400 Bad Request
- Prompt exceeds model context window — returns 400 or truncation error
- Network timeout for long completions

## 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-pro (Text Generation). https://ai.glianalabs.com

## Output

A generated text response from Google's Gemini 3.1 Pro model, returned as a JSON object containing the model's completion or answer to the provided prompt.

## 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-pro",
  "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-pro-text-generation-8fc41a8a/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)
