# Locus x402 Groq Models API

> Locus x402 Groq Models API is a paid API for AI agents from groq.x402.stage.paywithlocus.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Pay-per-use HTTP proxy to Groq's model inference API, billed per call via x402 micropayments

## Facts

- Endpoint: POST https://groq.x402.stage.paywithlocus.com/groq/models
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/locus-x402-groq-models-api-ba3d6ebe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x_MdhutKx55O1gCX3IELy

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 locus-x402-groq-models-api-ba3d6ebe -d '<json body>'
```

Example prompt: Using the Locus x402 Groq proxy, send a POST request with a JSON body to run a chat completion — ask the model 'What are three creative names for a coffee shop?' and charge my wallet the per-call USDC fee.

## When to prefer this

Choose this endpoint when you need on-demand, pay-per-use access to Groq's model inference without a subscription or API key commitment, and your agent or wallet supports the x402 micropayment protocol. Ideal for low-volume, bursty, or experimental workloads where per-call USDC billing is preferable to flat-rate plans.

## Known failure modes

- Insufficient USDC balance causes payment failure and request rejection
- Malformed JSON body results in 400 Bad Request
- Invalid or unsupported Groq model parameters cause downstream inference error
- x402 payment protocol negotiation failure if client does not support x402
- Network timeout on the staging environment
- Missing required 'input' fields (type, method, bodyType, body) cause schema validation error

## How this service works

Locus public pay-per-use API

## Output

Returns the raw Groq model inference response (e.g. chat completion or generation output) as a JSON body, after the x402 micropayment of $0.005 USDC has been settled per call.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {},
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/locus-x402-groq-models-api-ba3d6ebe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from groq.x402.stage.paywithlocus.com](https://www.zero.xyz/host/groq.x402.stage.paywithlocus.com/llms.txt)
