Skip to main content
POST
cURL
The request and response fields follow the official Responses API format. For details, refer to the Grok official documentation.

Authorizations

Authorization
string
header
required

You can obtain your API key from the TTAPI Dashboard.

Body

application/json
messages
object[]
required
Example:
model
string
required

Model to use, see Supported Models

stream
boolean
default:false

Whether to use server-sent events for progressive response transmission

Response

Successful response

id
string
Example:

"chatcmpl-9ugiTupGJUmeRNqyqUvYO34GOUzyv"

object
string
Example:

"chat.completion"

created
integer
Example:

1723297597

model
string
Example:

"gpt-3.5-turbo-0125"

choices
object[]
usage
object
Last modified on July 15, 2026