# X402 Cloud Gemini Flash Text Inference

> X402 Cloud Gemini Flash Text Inference is a paid API for AI agents from api.x402cloud.space, paid per call via x402, $0.009217/call, status unknown (last checked 2026-09-14).

Sends a text prompt to a Gemini Flash model and returns AI-generated text, JSON, or structured output via x402 micropayment-gated inference.

## Facts

- Endpoint: GET https://api.x402cloud.space/v1beta/models/gemini-3.5-flash:generateContent
- Price: $0.009217/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-cloud-gemini-flash-text-inference-a39cf6db
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9NxV77Mso9FnWsWL3b7FD

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 x402-cloud-gemini-flash-text-inference-a39cf6db
```

Example prompt: Use Gemini Flash to summarize the following text in bullet points, returning structured JSON with up to 512 output tokens: 'Retrieval-augmented generation (RAG) is a technique that combines a retrieval system with a generative model to produce more accurate and grounded responses.'

## When to prefer this

Prefer this endpoint when you need pay-per-call Gemini Flash inference without managing an API key or subscription — ideal for autonomous agents, RAG pipelines, or workflows that use x402 micropayments. Choose this over direct Google Gemini APIs when operating in a trustless, agent-native payment context.

## Known failure modes

- Payment not included or rejected — returns HTTP 402 with payment requirements
- Prompt exceeds 32,000 character limit — returns validation error
- maxOutputTokens out of range (must be 1–8192) — returns schema validation error
- Model unavailable or overloaded — returns 503 or timeout
- Malformed contents array — returns 400 bad request

## How this service works

Gemini 3.5 Flash x402 text inference endpoint for AI agents, RAG, coding, analysis, summarization and structured JSON.

## Output

Returns an AI-generated text completion or structured JSON object from the Gemini Flash model, based on the input prompt. The response follows the Gemini generateContent response format with candidates and content parts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Alias for prompt."
  },
  "prompt": {
   "type": "string",
   "maxLength": 32000,
   "minLength": 1,
   "description": "Plain text prompt for agent-friendly calls."
  },
  "contents": {
   "type": "array",
   "description": "Gemini generateContent contents array."
  },
  "maxOutputTokens": {
   "type": "integer",
   "default": 256,
   "maximum": 8192,
   "minimum": 1
  },
  "generationConfig": {
   "type": "object",
   "description": "Generation controls such as maxOutputTokens."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-cloud-gemini-flash-text-inference-a39cf6db/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402cloud.space](https://www.zero.xyz/host/api.x402cloud.space/llms.txt)
