How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Groq Chat API

The Chat API from Groq — 1 operation(s) for chat.

Groq Chat API is one of 9 APIs that Groq publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Chat. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and an AsyncAPI specification.

This API exposes 1 operation across 1 path, and defines 43 schemas. It is described by OpenAPI 3.2.0, at version 2.1.

Requests are made against a single base URL, https://api.groq.com.

1 operations 1 paths 43 schemas 1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
2.1
Base URL
https://api.groq.com/openai/v1
Authentication
HTTP Bearer
Terms of Service
Resource Areas
1

Authentication & Security 1

Groq Chat API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (apiKey) (api_key). By default, every request must be authenticated.

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.

Chat 1
POST
/openai/v1/chat/completions
Creates a model response for the given chat conversation.
createChatCompletion body → 200

Schemas 43

The contract defines 43 schemas that model the data the API accepts and returns. The most detailed are CreateChatCompletionRequest (35 properties), Chart (13 properties), ChartElement (12 properties), CreateChatCompletionResponse (11 properties). Each schema is shown below with its type and property counts.

CreateChatCompletionResponse
object
Represents a chat completion response returned by model, based on the provided input.
11 properties 5 required
ChatCompletionRequestFunctionMessage
object
3 properties 3 required
XGroqNonStreaming
object
Groq-specific metadata for non-streaming chat completion responses.
4 properties 1 required
ChartElement
object
12 properties 1 required
ChatCompletionRequestMessageContentPartDocument
object
2 properties 2 required
ChatCompletionDocumentSource
The source of the document. Only text and JSON sources are currently supported.
ChatCompletionRequestToolMessage
object
3 properties 3 required
ChatCompletionResponseMessage
object
A chat completion message generated by the model.
7 properties 2 required
ChatCompletionMessageToolCalls
array
The tool calls generated by the model, such as function calls.
ResponseFormatJsonObject
object
JSON object response format. An older method of generating JSON responses. Using jsonschema is recommended for models that support it. Note that the model will…
1 property 1 required
ChatCompletionToolChoiceOption
Controls which (if any) tool is called by the model. none means the model will not call any tool and instead generates a message. auto means the model can pick…
ChatCompletionDocumentSourceJSON
object
A document whose contents are provided inline as JSON data.
2 properties 2 required
FunctionCitation
object
A citation referencing the result of a function or tool call.
3 properties 3 required
DebugData
object
Debug information including input and output token IDs and strings. Only present when debug=true in the request.
4 properties
ChatCompletionUsageBreakdown
object
Usage statistics for compound AI completion requests.
1 property 1 required
ChatCompletionRequestAssistantMessage
object
6 properties 1 required
ChatCompletionRequestSystemMessage
object
3 properties 2 required
ChatCompletionMessageToolCall
object
3 properties 3 required
CreateChatCompletionRequest
object
35 properties 2 required
ChatCompletionTokenLogprob
object
4 properties 4 required
FunctionObject
object
4 properties 1 required
ChatCompletionRequestMessageContentPartText
object
2 properties 2 required
ChatCompletionTool
object
2 properties 1 required
ChatCompletionDocument
object
A document that can be referenced by the model while generating responses.
2 properties 1 required
ChatCompletionRequestMessageContentPart
ChatCompletionRequestMessageContentPartImage
object
2 properties 2 required
ResponseFormatJsonSchemaSchema
object
The schema for the response format, described as a JSON Schema object. Learn how to build JSON schemas [here](https://json-schema.org/).
ResponseFormatJsonSchema
object
JSON Schema response format. Used to generate structured JSON responses.
2 properties 2 required
CompletionUsage
object
Usage statistics for the completion request.
9 properties 3 required
CodeExecutionResult
object
4 properties
BrowserResult
object
4 properties 2 required
Chart
object
13 properties 2 required
ChatCompletionRequestMessage
ChatCompletionNamedToolChoice
object
Specifies a tool the model should use. Use to force the model to call a specific function.
2 properties 2 required
ChatCompletionFunctionCallOption
object
Specifying a particular function via {"name": "myfunction"} forces the model to call that function.
1 property 1 required
ChatCompletionRequestUserMessage
object
3 properties 2 required
ResponseFormatText
object
Default response format. Used to generate text responses.
1 property 1 required
FunctionParameters
object
Function parameters defined as a JSON Schema object. Refer to https://json-schema.org/understanding-json-schema/ for schema documentation.
ChatCompletionFunctions
object
3 properties 1 required
ChatCompletionMessageExecutedTools
array
A list of tools that were executed during the chat completion for compound AI systems.
DocumentCitation
object
A citation referencing a specific document that was provided in the request.
3 properties 3 required
Annotation
object
An annotation that provides citations or references for content in a message.
3 properties 1 required
ChatCompletionDocumentSourceText
object
A document whose contents are provided inline as text.
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

groq-chat-api-openapi.yml Raw ↑

Other APIs Groq publishes across the network.

Groq Audio API
Groq Batch API
Groq Embeddings API
Groq Files API
Groq Fine Tuning API
Groq Models API
Groq Reranking API
Groq Responses API
Where this information came from

This is an independent, third-party profile of Groq Chat API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.