# Brandfetch Agent Access — Purchase API Credits

> Brandfetch Agent Access — Purchase API Credits is a paid API for AI agents from api.brandfetch.io, paid per call via x402, $1/call, status unknown (last checked 2026-10-12).

Converts a USD payment into prepaid Brandfetch API credits and returns a new API key for agent use

## Facts

- Endpoint: POST https://api.brandfetch.io/v2/agents/access?utm_source=zero.xyz
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brandfetch-agent-access-purchase-api-credits-e4f60346
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5c4-IWlU46LvuF5Oo2LWy

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 brandfetch-agent-access-purchase-api-credits-e4f60346 -d '<json body>'
```

Example prompt: I need to start pulling brand assets from Brandfetch — go ahead and purchase $20 worth of prepaid API credits so I get a fresh API key I can use for brand lookups.

## When to prefer this

Use this endpoint when an agent needs to programmatically provision Brandfetch API credentials and fund them with prepaid credits in a single step, especially in automated workflows where no pre-existing API key is available. Prefer this over manual Brandfetch dashboard sign-up when operating in a headless, agentic context that supports x402 micropayments.

## Known failure modes

- Payment failure — insufficient funds or unsupported payment method returns an error with no key issued
- Invalid USD amount — value outside 1–500 range returns a validation error
- Duplicate or replay payment — may result in an error if the payment is already processed
- Service unavailable — Brandfetch backend downtime returns a 5xx error with no credentials

## How this service works

Brandfetch is a brand data platform that provides instant access to logos, colors, fonts, and brand assets for millions of companies worldwide.

## Output

Returns a Brandfetch API key (prefixed 'bf_…') along with the credit balance and the amount of credits granted, plus the organization URN associated with the new agent key. The agent can then use this key for subsequent brand data API calls against Brandfetch.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "usd": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "description": "Whole US dollars to convert into prepaid API credits."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "apiKey": {
   "key": "bf_…",
   "name": "Agent Key"
  },
  "credits": {
   "balance": 20,
   "granted": 20
  },
  "organization": {
   "urn": "urn:brandfetch:organization:…"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brandfetch-agent-access-purchase-api-credits-e4f60346/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.brandfetch.io](https://www.zero.xyz/host/api.brandfetch.io/llms.txt)
