# Groq via Locus x402 — Chat Completions

> Groq via Locus x402 — Chat Completions is a paid API for AI agents from groq.x402.paywithlocus.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Send OpenAI-compatible chat completion requests to ultra-fast Groq-hosted LLMs (Llama, GPT-OSS, Qwen, DeepSeek, Gemma) with per-call USDC micropayment via x402

## Facts

- Endpoint: POST https://groq.x402.paywithlocus.com/groq/chat?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/groq-via-locus-x402-chat-completions-b54b450e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iloy7ot7w0aGubDhoAr5i

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 groq-via-locus-x402-chat-completions-b54b450e -d '<json body>'
```

Example prompt: Using Groq's ultra-fast inference, send this conversation to Llama 3.3 — messages: [{"role":"user","content":"Summarize the main benefits of quantum computing in 3 bullet points"}] — with temperature 0.7 and a max of 512 output tokens, and pay the per-call fee automatically.

## When to prefer this

Choose this endpoint when you need the lowest-latency LLM inference available (Groq is industry-leading for tokens/sec), want OpenAI-compatible chat completions without a monthly subscription, need to pay per-call in USDC via x402 micropayments, or want access to open-source frontier models like Llama 3.3, GPT-OSS 120B, Qwen, or DeepSeek R1 without managing API keys. Prefer over standard OpenAI when speed is critical or when your agent runtime uses x402 payment rails.

## Known failure modes

- Insufficient USDC authorization — x402 payment header missing or amount below required $0.005
- max_completion_tokens not specified — required by x402 to set a hard ceiling on the signed authorization
- Invalid model ID — model not available on this public metered endpoint
- Messages array empty or malformed — API returns 400 bad request
- Token limit exceeded — response truncated or error if max_completion_tokens too low for the task
- Rate limiting — Groq upstream throttle returns 429
- Network timeout — real-time inference request exceeds gateway timeout

## How this service works

Ultra-fast LLM inference — Llama 3.3, DeepSeek R1, Gemma 2, GPT-OSS, Qwen, Whisper, and PlayAI TTS. OpenAI-compatible API with industry-leading speed.

## Output

Returns a JSON object with a 'data' field containing the OpenAI-compatible chat completion (including the assistant message, finish reason, and usage stats), a 'payment' object showing settled and authorized USDC amounts, a 'request' object with a UUID and status URL, and a 'success' boolean.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "number"
  },
  "stop": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "array",
     "items": {}
    }
   ]
  },
  "model": {
   "type": "string"
  },
  "tools": {
   "type": "array",
   "items": {}
  },
  "top_p": {
   "type": "number"
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role"
    ],
    "properties": {
     "name": {
      "type": "string"
     },
     "role": {
      "type": "string"
     },
     "content": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "type"
         ],
         "properties": {
          "text": {
           "type": "string"
          },
          "type": {
           "type": "string"
          },
          "image_url": {
           "type": "object",
           "required": [
            "url"
           ],
           "properties": {
            "url": {
             "type": "string"
            }
           },
           "additionalProperties": true
          }
         },
         "additionalProperties": true
        }
       },
       {
        "type": "null"
       }
      ]
     },
     "tool_calls": {
      "type": "array",
      "items": {
       "type": "object",
       "additionalProperties": true
      }
     },
     "tool_call_id": {
      "type": "string"
     }
    },
    "additionalProperties": true
   }
  },
  "temperature": {
   "type": "number"
  },
  "tool_choice": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "object",
     "additionalProperties": true
    }
   ]
  },
  "response_format": {
   "type": "object",
   "additionalProperties": true
  },
  "reasoning_format": {
   "type": "string"
  },
  "max_completion_tokens": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

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