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

Authorizations

TT-API-KEY
string
header
required

You can obtain your API key from the TTAPI Dashboard.

Body

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

Models supported by TTAPI, see Gemini Supported Models

stream
boolean
default:false

Whether to use server-sent events for progressive response transmission

Response

Successful response (stream=false returns JSON, stream=true returns Gemini stream)

choices
object[]

List of response results

created
integer

Response creation timestamp (seconds)

Example:

1757472417

id
string

Unique request identifier

Example:

"oebAaMTvMfCUjMcP_prYwAs"

model
string

Gemini model version used

Example:

"gemini-2.5-pro"

object
string

Response object type

Example:

"chat.completion"

usage
object

Token usage statistics

Last modified on July 15, 2026