# Groq Chat Completion

> Groq Chat Completion is a paid API for AI agents from Groq at groq.mpp.paywithlocus.com, paid per call via MPP, $0.005 – $0.10 (varies by model and tokens) (dynamic), status unknown (last checked 2026-10-12, last successful call 2026-07-18).

Runs ultra-fast LLM chat completions using Groq-hosted models including Llama 3.3, DeepSeek R1, Gemma 2, and Qwen via an OpenAI-compatible API

## Facts

- Endpoint: POST https://groq.mpp.paywithlocus.com/groq/chat?utm_source=zero.xyz
- Price: $0.005 – $0.10 (varies by model and tokens) (dynamic)
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-12
- Last successful call: 2026-07-18
- Success rate: 58% of calls made through Zero
- Rating: 1.8 / 5 from 4 reviews
- Activations on Zero: 114
- Provider: Groq
- Docs: https://console.groq.com/docs
- Website: https://groq.com
- Tags: llm, fast-inference, llama, gemma, deepseek, ai
- Canonical page: https://www.zero.xyz/c/groq-chat-0362cf4f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x4AYKVVHp2Y9VFoK7RkRb

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-chat-0362cf4f -d '<json body>'
```

Example prompt: Using Groq's fast inference with llama-3.3-70b-versatile, answer this question and return the response as plain text: 'What are the top 3 benefits of intermittent fasting?'

## When to prefer this

Choose this endpoint when you need ultra-low-latency LLM inference with OpenAI API compatibility, especially for Llama 3.3, DeepSeek R1, Gemma 2, or Qwen models. Ideal when speed is critical, when you need structured JSON output, function/tool calling, or reasoning model outputs. Prefer over OpenAI directly when cost-per-token or inference speed is a priority.

## Known failure modes

- Invalid or unsupported model ID returns a 400 error
- Messages array is empty or malformed, causing a validation error
- max_completion_tokens set too low, resulting in truncated output
- Temperature out of range (0-2) causes parameter validation failure
- Tool definitions exceed 128 limit, returning an error
- Rate limit exceeded returns a 429 response
- Payment not completed or insufficient USDC balance blocks the request

## How this service works

Create a chat completion with ultra-fast inference. Supports tool use, JSON mode, reasoning, web search, and document context. OpenAI-compatible format.

## Output

Returns an assistant message containing the model's generated text response, along with token usage statistics, finish reason, and optionally tool call payloads or structured JSON depending on the response_format and tools configuration.

## Example request

```json
{
 "model": "llama-3.3-70b-versatile",
 "messages": [
  {
   "role": "user",
   "content": "What are the top 3 benefits of intermittent fasting?"
  }
 ],
 "temperature": 0.7,
 "max_completion_tokens": 500
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "model",
  "messages",
  "max_completion_tokens"
 ],
 "properties": {
  "seed": {
   "type": "number",
   "description": "Seed for deterministic sampling"
  },
  "stop": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "array",
     "items": {}
    }
   ],
   "description": "Stop sequences (up to 4)"
  },
  "model": {
   "type": "string",
   "description": "Model or system ID. Public metered x402 supports Llama 3.1/3.3, GPT-OSS 20B/120B, Llama 4 Scout, and Qwen 3.6 27B."
  },
  "tools": {
   "type": "array",
   "items": {},
   "description": "Tool/function definitions (max 128)"
  },
  "top_p": {
   "type": "number",
   "description": "Nucleus sampling (0-1)"
  },
  "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
   },
   "description": "Conversation messages array"
  },
  "temperature": {
   "type": "number",
   "description": "Sampling temperature (0-2)"
  },
  "tool_choice": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "object",
     "additionalProperties": true
    }
   ],
   "description": "Tool selection: \"auto\", \"none\", \"required\", or specific function"
  },
  "response_format": {
   "type": "object",
   "description": "Output format: json_object, json_schema, or text",
   "additionalProperties": true
  },
  "reasoning_format":
… (truncated)
```

## More

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