# Google Gemini File Upload via Locus x402

> Google Gemini File Upload via Locus x402 is a paid API for AI agents from gemini.x402.paywithlocus.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Uploads a video file (base64 or S3 URL) to the Gemini multimodal AI service for subsequent processing such as vision analysis, transcription, or reasoning.

## Facts

- Endpoint: POST https://gemini.x402.paywithlocus.com/gemini/upload-file
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/google-gemini-file-upload-via-locus-x402-34192d5a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ud2hgrEAppc2ZT3apD_iK

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 google-gemini-file-upload-via-locus-x402-34192d5a -d '<json body>'
```

Example prompt: Upload this MP4 video from my S3 bucket — https://my-bucket.s3.amazonaws.com/meeting-recording.mp4 — to Gemini so I can ask it questions about the content; label it 'Q2 Meeting Recording'.

## When to prefer this

Use this endpoint when you need to stage a video file into Google Gemini before running multimodal analysis, vision queries, or reasoning tasks on it — especially when the source is an Amazon S3 URL (up to 100 MB) or a raw base64-encoded clip (up to 24 MB). Prefer the S3 URL path for larger files. This is distinct from Gemini chat or embedding endpoints; this is purely the file ingestion step in a multi-step Gemini workflow.

## Known failure modes

- Base64 payload exceeds 24 MB decoded limit — returns error indicating size constraint
- S3 URL exceeds 100 MB file size limit — rejected at ingestion
- Invalid or unsupported MIME type provided (must be video/mp4, video/quicktime, or video/webm) — returns validation error
- S3 URL is not publicly accessible or HTTPS — upload fails
- Payment authorization fails due to insufficient USDC balance — 402 payment required error
- Neither source_url nor data provided — missing required field error

## How this service works

Multimodal AI — chat, vision, PDF/document processing, thinking/reasoning, and embeddings.

## Output

A JSON response containing a file/data reference object, a unique request ID, a status URL to poll for completion, and payment settlement details showing the USDC amount charged and authorized — allowing the agent to subsequently reference the uploaded file in Gemini AI queries.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string"
  },
  "mime_type": {
   "type": "string"
  },
  "source_url": {
   "type": "string"
  },
  "display_name": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/google-gemini-file-upload-via-locus-x402-34192d5a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gemini.x402.paywithlocus.com](https://www.zero.xyz/host/gemini.x402.paywithlocus.com/llms.txt)
