# PrimeAPI Barcode Generator

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

Generates a barcode image from a given input string or product code

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/tools/barcode/generate
- Price: $0.052905/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-barcode-generator-4370f917
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hSxqEL4oEBxtCyb7clwtj

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-barcode-generator-4370f917 -d '<json body>'
```

Example prompt: Generate a barcode for the product code '012345678905' — I need a scannable barcode image I can use on a retail label.

## When to prefer this

Use this endpoint when you need to programmatically generate a barcode image from a product code, SKU, or arbitrary string without needing an API key — particularly useful in automated agent workflows that pay per call in USDC on Base.

## Known failure modes

- Invalid or empty query string returns an error
- Unsupported barcode format returns a format error
- Payment failure (402) if USDC payment not attached
- Malformed request body returns 400 bad request
- Server-side generation failure returns 500

## 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 a barcode image or image data (likely base64-encoded or a URL) representing the encoded input string, suitable for printing or embedding in product labels.

## 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-barcode-generator-4370f917/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)
