Text2TextResponse
Array [
]
text stringrequired
The generated text response from the model
reasoning string
The model's internal reasoning process, returned when thinking mode is enabled and the model supports it
tokens number
Total number of tokens used by the request, including input and output tokens
toolCalls
object[]
Tool calls requested by the model. Present when the model decides to use one or more of the provided tools instead of, or in addition to, generating text
toolName stringrequired
The name of the tool the model has chosen to call
toolCallId stringrequired
A unique identifier for this tool call
args
The arguments the model wants to pass to the tool
creditsUsed numberrequired