{"uid":"cap_x4AYKVVHp2Y9VFoK7RkRb","slug":"groq-chat-0362cf4f","name":"Groq Chat Completion","description":"Create a chat completion with ultra-fast inference. Supports tool use, JSON mode, reasoning, web search, and document context. OpenAI-compatible format.","url":"https://groq.mpp.paywithlocus.com/groq/chat?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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":{"type":"string","description":"Reasoning output: \"hidden\", \"raw\", or \"parsed\""},"max_completion_tokens":{"type":"number","description":"Maximum output tokens. Required for x402 so the signed authorization has a hard ceiling."}},"additionalProperties":true},"responseSchema":null,"example":{"request":{"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},"response":{"data":{"id":"chatcmpl-ff682e2a-6ee6-47e3-8670-ba365b70af95","model":"llama-3.3-70b-versatile","usage":{"queue_time":0.025028095,"total_time":0.476001342,"prompt_time":0.00394371,"total_tokens":262,"prompt_tokens":46,"completion_time":0.472057632,"completion_tokens":216},"object":"chat.completion","x_groq":{"id":"req_01ksrnp6jte1mve7f5we1tqmse","seed":2098097076},"choices":[{"index":0,"message":{"role":"assistant","content":"The top 3 benefits of intermittent fasting are:\n\n1. **Weight Loss**: Intermittent fasting can lead to significant weight loss, as it reduces overall calorie intake and increases fat burning. By restricting the times when you can eat, you tend to eat fewer calories and make healthier food choices.\n\n2. **Improved Insulin Sensitivity and Reduced Risk of Chronic Diseases**: Intermittent fasting has been shown to improve insulin sensitivity, which can help prevent or manage type 2 diabetes. It may also reduce the risk of other chronic diseases, such as heart disease, certain types of cancer, and neurodegenerative disorders like Alzheimer's and Parkinson's.\n\n3. **Increased Autophagy and Cellular Renewal**: Intermittent fasting can stimulate autophagy, a natural process in which the body breaks down and recycles damaged or dysfunctional cells and proteins. This can lead to increased cellular renewal, improved cellular function, and a reduced risk of age-related diseases. Autophagy can also help to boost the immune system and promote overall health and well-being."},"logprobs":null,"finish_reason":"stop"}],"created":1780018256,"service_tier":"on_demand","usage_breakdown":null,"system_fingerprint":"fp_0761e44d7b"},"success":true}},"exampleRequest":{"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},"tags":["llm","fast-inference","llama","gemma","deepseek","ai"],"displayCostAmount":"0.008","displayCostAsset":"USDC","priceDynamic":true,"priceHint":"$0.005 – $0.10 (varies by model and tokens)","priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":4,"rating":{"score":"0.21","successRate":"0.58","reviews":4,"stars":"1.8","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"dynamic","summary":"$0.005 – $0.10 (varies by model and tokens) (dynamic)","primary":{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EPImlaxiGgylonD2va6rk","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x20c000000000000000000000b9537d11c60e8b50","unit":"request","depositMicros":null,"planRef":null}],"brandName":"Groq","brandSlug":"groq","brandBaseUrl":"https://groq.com","brandDocsUrl":"https://console.groq.com/docs","whatItDoes":"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","exampleAgentPrompt":"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?'","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":"This chat completion service shows mixed reliability, with a majority of reviewed calls returning HTTP 502 upstream failures despite charges being applied. One successful call produced accurate, statistics-grounded output at fair value, but three out of four attempts failed at the provider level. The pattern of charging for failed requests is a notable concern for cost-sensitive workloads.","reviewSummaryHighlights":["Capable of producing accurate, grounded responses when calls succeed","Reasonable per-token pricing when the service functions correctly"],"reviewSummaryConcerns":["Frequent HTTP 502 upstream failures across multiple independent requests","Charges applied even when requests fail, with no apparent automatic refund","Reliability is inconsistent — identical requests can succeed or fail within minutes of each other"],"reviewSummaryGeneratedAt":"2026-07-17T22:15:51.808Z","activationCount":114,"lastUsedAt":"2026-07-18T00:35:56.839Z","lastSuccessfullyRanAt":"2026-07-18T00:35:56.839Z","lastHealthCheckAt":"2026-10-12T06:31:20.595Z","isFirstParty":false,"canonicalSlug":"groq-chat-0362cf4f"}