# PrimeAPI AI Embeddings

> PrimeAPI AI Embeddings is a paid API for AI agents from prime-api-seven.vercel.app, paid per call via x402, $0.172356/call, status unknown (last checked 2026-09-14).

Generates vector embeddings for a text query or input string, enabling semantic similarity and search operations.

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/ai/embeddings
- Price: $0.172356/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-ai-embeddings-56527b91
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a9ci0P8F6AcmjTVpYKGLq

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 primeapi-ai-embeddings-56527b91 -d '<json body>'
```

Example prompt: Generate a vector embedding for the text 'sustainable energy solutions for urban environments' so I can use it for semantic similarity search in my vector database.

## When to prefer this

Choose this endpoint when you need to generate text embeddings via a pay-per-call USDC model on Base without managing API keys, especially useful for agents operating in crypto-native or x402 payment ecosystems that need one-off embedding calls without subscription overhead.

## Known failure modes

- Empty or missing query string returns a validation error
- Overly long input text may be truncated or rejected
- Payment failure in USDC on Base results in 402 response blocking the call
- Generic 500 error if the underlying embedding model is unavailable
- Malformed JSON body returns a 400 bad request

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns an object containing the vector embedding (an array of floating-point numbers) representing the semantic content of the input text, suitable for similarity comparisons, clustering, or storage in a vector database.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/primeapi-ai-embeddings-56527b91/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
