---
title: "How to use ZeroGPU with your AI agent | ZeroClick"
url: https://zeroclick.ai/resources/how-to-use-zerogpu-with-your-ai-agent
fetched_at: 2026-11-06T19:56:58.522Z
---

# ZeroClick API catalog and pricing

## API reference, endpoint lookup and prices

**[ZeroClick API catalog: endpoints, request parameters, prices and payment methods](https://agents.zeroclick.ai/zcj/cyzbgmpw7p4c/zeroclick/agent/guide).** Tell the seller advisor what you want to accomplish. It returns the matching operation contract, known prices, authentication prerequisites and concrete next steps. It is read-only: no login, wallet, card or purchase approval is needed to look up an API. It never executes a sale.

Available API services: Agent readiness report, Demo booking.

**Suggested next request:** GET [task guide](https://agents.zeroclick.ai/zcj/cyzbgmpw7p4c/zeroclick/agent/guide?goal=URL_ENCODED_TASK). Use this URL directly with your web fetch tool; no preliminary document fetch is required. Include known inputs and desired output in the goal. Optional: quantity=API_CALL_COUNT, budgetUsd=TOTAL_USD, requirements=REQUIREMENTS, payment=x402|mpp|card, auth, identity, assertion and access state. Omit unknowns. Do not equate output items with API calls or guess a call count.

For private task details or known request arguments, POST https://agents.zeroclick.ai/zcj/cyzbgmpw7p4c/zeroclick/agent/guide with Content-Type: application/json. Example: {"intent":"quote","goal":"YOUR_TASK","purchase":{"budgetUsd":"5.00"}}. Replace the task and budget with known facts; budgetUsd is a string. Include known buyerState, paymentCapabilities and arguments. For execution planning use intent=execute and the authorized constraints. Exact fields: [request schema](https://agents.zeroclick.ai/zcj/cyzbgmpw7p4c/zeroclick/agent/schema). GET and POST are alternatives, not mandatory stages.

The advisor describes a recommended happy path, not the only allowed path. You may use the API reference, buyer SKILL and your own tools directly, including for catalog operations with failed probes. Missing guidance or an unverified probe is not a policy refusal. The returned requests are documented API calls; fill in the documented inputs. Check usage cost AND minimum cash required against the budget. For needs_input, supply only missing facts. Keep secrets local, and never put credentials or private payloads in URLs. Unknown does not mean absent.

For a human's credit or plan purchase, reuse an existing ZeroClick credential first. If the Link CLI is already installed and signed in for that person, you can use their Link account for identity as well as payment, sharing their email only if they agree: follow [Link identity setup](https://agents.zeroclick.ai/zcj/cyzbgmpw7p4c/auth.md#link-identity-preview) through issuance, presentation, registration and token exchange. Otherwise register anonymously; no Link setup is needed, and the person can claim the identity later.

Open the checkout URL in a browser: eligible Stripe pages support Link Pay Tokens (LPT) through WebMCP or the documented DOM flow. Follow this storefront's /payment/card.md to verify the same-frame token input and merchant binding before requesting an LPT. Token submission requires payment authorization. If unavailable, privately send the checkout URL to your human to pay.

When the selected route uses hosted checkout, follow [card checkout instructions](https://agents.zeroclick.ai/zcj/cyzbgmpw7p4c/payment/card.md) before requesting a token. LPT goes only to Stripe, never to the advisor or ZeroClick API. Poll the returned statusUrl before using credit or retrying delivery.

Verify delivery; a payment or HTTP 202 is not completion. For an unexpected result, POST the original input and continuation (version, stepId, outcome and sanitized error/accessId/paymentId). Reconcile uncertain payments or writes before retrying. Use raw HTTP for exact schemas and authenticated execution; do not reconstruct fields omitted by a summarizing web tool.

The human subscription prices on the requested page describe a separate channel. Use the API quote for per-unit pricing, funding minimums and commercial terms; tier names do not prove quality or licensing.

For an alternative documented path, use the [buyer SKILL](https://agents.zeroclick.ai/zcj/cyzbgmpw7p4c/SKILL.md) or [full direct workflow reference](https://agents.zeroclick.ai/zcj/cyzbgmpw7p4c/llms-full.txt). Confirm missing request details from seller documentation, stay within the existing catalog and what your user asked for, and respect actual access and payment requirements.
Terms: by completing a purchase through this endpoint, whether directly or through an AI agent acting on your behalf, you agree to be bound by the platform's buyer terms of service (https://www.zeroclick.ai/legal/buyer-terms-of-service). If the purchase is made by an agent, you represent and warrant that the agent is acting with your authorization, and you agree that the agent's actions, including its acceptance of these terms, are attributed to you and bind you as if you had taken them yourself. Paying a 402 challenge completes the purchase and constitutes your affirmative acceptance of the terms linked above. The link travels in every payment challenge and receipt as `terms`.

# How to use ZeroGPU with your AI agent

*Published October 8, 2026 · 10 min read · [ZeroClick](https://x.com/zeroclick)*

ZeroGPU runs PII redaction, classification, extraction, summarization, and chat inference for your AI agent on small and open-weight models, from $0.02 per million input tokens. ZeroGPU sells through ZeroClick. Your agent registers a free credential at the [ZeroGPU storefront](https://agents.zerogpu.ai), buys prepaid Credits from one cent over x402 or MPP (or from $0.50 by card), and then calls an OpenAI-compatible API against that balance.

**Key facts before you start:**

- Buy Credits first with `POST /plans/{planId}/purchase`. A call with no plan behind it is refused with a `401`, not priced.
- Most text models cost $0.02 per million input tokens and $0.05 per million output tokens. $1 of credit covers 50 million input tokens, before output.
- Send calls to `https://agents.zerogpu.ai/zeroclick/v1/responses` or `/zeroclick/v1/chat/completions` with `Authorization: Bearer <token>`. You do not need a ZeroGPU API key.
- If your agent registers anonymously, claim the credential to a real email address soon after buying. An unclaimed credential lapses within a few days, with its credit.

## What ZeroGPU is

ZeroGPU is an edge inference cloud for high-volume AI work. It runs purpose-built ZeroGPU Language Models (ZLMs) and popular open-weight models, and sends each workload to edge devices or to the cloud. ZeroGPU's network runs on more than a hundred thousand edge devices, with cloud fallback when edge execution is not a good fit. You can explore the models at [zerogpu.ai](https://zerogpu.ai/).

Most model calls in an agent's day are small and repetitive: screening a message, masking a phone number, tagging a ticket, condensing a thread. A frontier generalist is more than these jobs need. An agent with a budget wants the cheapest model that does the job well, and ZeroGPU builds specialized models for exactly these tasks. The full story of the partnership is in [ZeroGPU x ZeroClick: specialized inference any agent can buy](https://zeroclick.ai/blog/zerogpu-specialized-inference-any-agent-can-buy).

An agent storefront is the machine-readable version of a business. At one URL, an agent reads the catalog, the live prices, and the payment steps, then buys without a person filling in forms. It sits in front of ZeroGPU's own API and handles identity, payment, and forwarding. For how storefronts work, see [What is an agent storefront?](https://zeroclick.ai/resources/what-is-an-agent-storefront)

## What agents use ZeroGPU for

Each job below maps to a model in the storefront's catalog. Send the model's name in the `model` field.

| Job your agent is given | Model | Endpoint | What to send, what comes back |
|---|---|---|---|
| Detect and redact PII in support tickets or logs | gliner-multi-pii-v1 | `/zeroclick/v1/responses` | Text, plus `metadata` options such as `labels`, `threshold`, `mask`, and `replacement_char`. Covers 40+ entity types in six languages. |
| Extract entities or fill a JSON schema from messy text | gliner2-base-v1 | `/zeroclick/v1/responses` | Text with a label set or `schema` in `metadata`. |
| Classify or route text with your own labels | deberta-v3-small | `/zeroclick/v1/responses` | Text with `categories`. Returns a confidence score for each label. |
| Map a page or domain to the IAB taxonomy | zlm-v1-iab-classify-edge or zlm-v2-iab-classify-edge-enriched for text; zlm-v1-iab-domain-classifier for domains | `/zeroclick/v1/responses` | Text or a domain. Returns scored categories. The enriched model adds topics, keywords, and intent. |
| Suggest follow-up questions for an answer | zlm-v1-followup-questions-edge | `/zeroclick/v1/responses` | Content. Returns ready-to-render questions. |
| Summarize long reports, transcripts, or email threads | llama-3.1-8b-instruct-fast | either endpoint | Up to a 128K-token context in one pass. |
| Plan, reason, or call tools | LFM2.5-1.2B-Thinking, gpt-oss-120b, qwen3-30b-a3b-fp8, deepseek-v4-flash, glm-5.2 | responses for the first two; chat completions for the rest | Messages or input. The reasoning models return their reasoning with the answer. |

Content moderation runs on ZeroGPU's own API rather than through the storefront. The [API reference](https://agents.zerogpu.ai/openapi.json) lists every field for both endpoints.

## Prices

Calls draw down the Credits plan at these rates per million tokens.

| Model | Input | Output |
|---|---|---|
| gliner-multi-pii-v1, deberta-v3-small, gliner2-base-v1 | $0.02 | $0.05 |
| zlm-v1-iab-classify-edge, zlm-v2-iab-classify-edge-enriched, zlm-v1-iab-domain-classifier, zlm-v1-followup-questions-edge | $0.02 | $0.05 |
| LFM2.5-1.2B-Instruct, llama-3.1-8b-instruct-fast, LFM2.5-1.2B-Thinking | $0.02 | $0.05 |
| gpt-oss-120b | $0.03 | $0.10 |
| qwen3-30b-a3b-fp8 | $0.05 | $0.30 |
| deepseek-v4-flash | $0.07 | $0.14 |
| glm-5.2 | $1.10 | $3.50 |

At those rates, small jobs cost very little. Redacting PII in 10,000 support tickets of about 200 tokens each is 2 million input tokens, or $0.04 before output. One cent buys 500,000 input tokens on a $0.02 model, before output. Credit starts at $0.01 on a wallet rail and $0.50 by card.

Agent prices are the storefront's, not the ones on ZeroGPU's site. Read the live [price list](https://agents.zerogpu.ai/manifest.json) at call time.

## How to buy and call ZeroGPU from your agent

1. Point your agent at the [ZeroGPU storefront](https://agents.zerogpu.ai). Its [agent guide](https://agents.zerogpu.ai/llms.txt) links the catalog, the API reference, and the payment steps.
2. Match the task to a model from the table above. You can also ask the free task guide at `https://agents.zerogpu.ai/zeroclick/agent/guide?goal=URL_ENCODED_TASK`, which needs no wallet and never buys anything.
3. Reuse an existing ZeroClick agent credential, or register a free one with `POST /agent/identity`, following the [identity guide](https://agents.zerogpu.ai/auth.md).
4. Exchange the credential's stored assertion for a short-lived access token at `/oauth2/token`.
5. Read the Credits plan's id and `purchase.url` from the price list.
6. Send the purchase with your bearer token and an `amountUsd`. The 402 that comes back states the exact `payment.amountUsd`, so compare it with your budget before paying.
7. Pay the challenge over x402 (Base USDC) or MPP (Tempo USDC), and retry the same purchase with the proof attached.
8. Confirm the credit arrived with `GET /agent/entitlements` before making calls.
9. Call the model's endpoint with your bearer token, read the output, and watch `remainingCreditUsd` in the `zc-billing` header so you know when to top up.

## Example requests

Start with the purchase. Send it with your bearer token and a whole-cent amount:

```http
POST https://agents.zerogpu.ai/plans/{planId}/purchase
Authorization: Bearer <access token>
Content-Type: application/json

{"amountUsd": "5.000000"}
```

The storefront answers with a priced 402. Its body carries `payment.amountUsd`, the `plan`, and a `protocols` block with a challenge for each rail. The signable challenges also arrive as headers, so a standard x402 or MPP client can settle them without reading the body:

```http
HTTP/1.1 402 Payment Required
payment-required: <x402 challenge>
www-authenticate: <MPP challenge>
```

Sign the challenge and retry the same purchase, with the same amount, carrying the proof. On x402 the payload goes in `x-payment`. On MPP, send `Authorization: Payment <credential>` and move your token to `ZC-Agent-Authorization: Bearer <access token>`:

```http
POST https://agents.zerogpu.ai/plans/{planId}/purchase
Authorization: Bearer <access token>
x-payment: <signed x402 payload>
Content-Type: application/json

{"amountUsd": "5.000000"}
```

Then call against the balance. This request uses the API reference's own example:

```http
POST https://agents.zerogpu.ai/zeroclick/v1/responses
Authorization: Bearer <access token>
Content-Type: application/json

{"model": "LFM2.5-1.2B-Instruct", "input": "Summarize the following article: ...", "instructions": "You are a concise assistant."}
```

The reply is an OpenAI Responses object. The text is in `output[0].content[0].text`, and token counts are in `usage`. A `zc-billing` header comes with it, showing what the call debited and what is left:

```json
{
  "object": "response",
  "status": "completed",
  "model": "LFM2.5-1.2B-Instruct",
  "output": [{"type": "message", "role": "assistant", "content": [{"type": "output_text", "text": "<summary>"}]}],
  "usage": {"input_tokens": 0, "output_tokens": 0, "total_tokens": 0}
}
```

```http
zc-billing: {"fundingSource": "credit", "chargedUsd": "<debited>", "remainingCreditUsd": "<balance>"}
```

On `/zeroclick/v1/chat/completions`, send `model` and `messages` instead. A classification model there returns its result as a JSON string in `choices[0].message.content`.

To try the service with no registration, buy one cent of anonymous credit. Send `{ "amountUsd": "0.01" }` to the Credits purchase URL with no bearer and settle the wallet challenge. Then call with `Authorization: Receipt <receiptId>`. The receipt's balance is one cent, so a call it cannot cover needs a larger balance bought with a registered credential. The receipt cannot be topped up, and the credit is lost if you lose the receipt.

## If your agent has no wallet

Your agent still has four ways to pay:

- **Create a wallet.** Your agent can set one up itself, free and with no signup, then follow the steps above.
- **Buy Credits by card.** Send the purchase with your bearer token and `{"checkout": true}` to get an unpaid hosted checkout URL. A browser agent can pay it with Link Pay Tokens where the page supports them, or send the link to whoever approves the purchase. A card purchase must be at least $0.50 (`purchase.cardMinimumUsd`). Poll the returned `statusUrl` before using the credit.
- **Use a shared payment token.** Card-eligible 402s carry a `method="stripe"` challenge, which you answer with the `spt_` credential in `Authorization` and your token in `ZC-Agent-Authorization`.
- **Hand off to a person.** Share any ZeroGPU page as `https://agents.zerogpu.ai/outclick?url={URL-encoded seller page}` so the referral is recorded.

## What to know

**What the storefront covers.** It sells the text models above, more than a dozen of them, on one plan: Credits. ZeroGPU describes embeddings and reranking, and its site lists speech models. None of these is in the storefront's catalog, so do not plan calls for them here. The responses endpoint accepts `text` output format only, and it rejects `json`.

**What is charged, and when.** Paying the purchase 402 completes that purchase under ZeroGPU's terms and ZeroClick's buyer terms. Top-ups are paid the same way. Each call then debits your balance for the tokens it actually used. A delivered response with no `zc-billing` header billed nothing. To top up, send `POST /extend` with an amount. The [payment guide](https://agents.zerogpu.ai/payment.md) covers each rail in detail.

**Keep the credential.** If nobody claims an anonymous credential, it lapses within a few days, taking any credit bought with it. Claiming it to a real email address keeps purchases recoverable. Access tokens last minutes, so get a fresh one from the stored assertion when one expires.

**Errors worth handling.** The [error reference](https://agents.zerogpu.ai/errors.md) lists every code. These are the ones you are most likely to meet:

| Error | What to do |
|---|---|
| `bearer_required` (401) | Register a credential, then retry with the bearer. |
| `plan_required` (403) | Buy one of the plans listed in the body, then retry. |
| `usage_exhausted` | The balance ran out. Top up with `POST /extend`. |
| `amount_below_card_minimum` | Raise a card purchase to $0.50, or pay the smaller amount on a wallet rail. |
| `settlement_failed` | Fix the wallet, then start over for a fresh challenge. |
| `payment_provider_unavailable` | Retry unchanged, with backoff. This is the only payment error to retry as-is. |

## Frequently asked questions

### Can my agent call ZeroGPU without buying anything first?

No. Every call draws on prepaid credit, so your agent buys Credits first: from one cent over x402 or MPP, or from $0.50 by card.

### How much does ZeroGPU cost per token?

The specialized and small models cost $0.02 per million input tokens and $0.05 per million output tokens. Larger open-weight models range from $0.03 (gpt-oss-120b) to $1.10 (glm-5.2) per million input tokens.

### Does ZeroGPU work with x402?

Yes. The Credits purchase returns an x402 challenge in the `payment-required` header for Base USDC, and your agent retries the purchase with the signed payload in `x-payment`.

### What is the best ZeroGPU model for PII redaction?

Use gliner-multi-pii-v1. It detects more than 40 PII entity types across English, French, German, Spanish, Italian, and Portuguese, and it redacts them with label or character masks.

### Is the ZeroGPU storefront API OpenAI-compatible?

Yes. The storefront serves OpenAI-style Responses and Chat Completions endpoints at `/zeroclick/v1/responses` and `/zeroclick/v1/chat/completions`, with the model chosen in the `model` field.

### Do I have to use an AI agent to use ZeroGPU?

No. A person can sign up at [zerogpu.ai](https://zerogpu.ai/), copy an API key from the ZeroGPU dashboard, and call ZeroGPU's OpenAI-compatible API directly, on ZeroGPU's own usage-based pricing.

---

*More in this series: [How to use PickPoint with your AI agent](https://zeroclick.ai/resources/how-to-use-pickpoint-with-your-ai-agent) · [How to use Unsiloed AI with your AI agent](https://zeroclick.ai/resources/how-to-use-unsiloed-with-your-ai-agent) · [How to use Vimmerse with your AI agent](https://zeroclick.ai/resources/how-to-use-vimmerse-with-your-ai-agent)*

*[All resources](https://zeroclick.ai/resources) · [Documentation](https://zeroclick.ai/docs) · [Get started](https://zeroclick.ai/get-started)*
