# GEDX402 Gemma 300M Text Embedding

> GEDX402 Gemma 300M Text Embedding is a paid API for AI agents from embed.gedx402.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Converts text into a numerical embedding vector using a Gemma 300M model, payable via USDC on multiple chains with no API keys required.

## Facts

- Endpoint: GET https://embed.gedx402.com/v1/embed/embeddinggemma-300m
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Success rate: 0% of calls made through Zero
- Rating: 4.0 / 5 from 1 review
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-gemma-300m-text-embedding-a1f8a13d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QJL0xXQULVib2Tkx04T0X

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 gedx402-gemma-300m-text-embedding-a1f8a13d
```

Example prompt: Embed the following sentence using the Gemma 300M model so I can store it in my vector database: 'The quick brown fox jumps over the lazy dog'.

## When to prefer this

Choose this endpoint when you need text embeddings without managing API keys, want to pay per-call in USDC on Base, Polygon, Arbitrum, World, or Solana, and are building with x402 payment-native infrastructure. Ideal for crypto-native agents or pipelines that require no OAuth or API key provisioning.

## Known failure modes

- Payment not provided or insufficient USDC — HTTP 402 response requiring payment
- Invalid input: text field missing or wrong type — likely 400 or unprocessable response
- Empty input string may produce zero or degenerate embedding vector
- Batch too large may hit size or rate limits
- Network timeout on slow connections
- Unsupported chain for USDC payment

## How this service works

x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.

## Output

A JSON object with a 'data' array where each element contains an 'index' and an 'embedding' (a float array representing the dense vector for the input text). Supports both single string and batched inputs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "UTF-8 text to embed (single string)."
  },
  "texts": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Optional batch of strings to embed in one request."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "index": 0,
    "embedding": [
     0.01,
     -0.02
    ]
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-gemma-300m-text-embedding-a1f8a13d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from embed.gedx402.com](https://www.zero.xyz/host/embed.gedx402.com/llms.txt)
