Skip to main content
POST
Generate content using a Gemini-compatible AIsa model

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

model
string
required

The AIsa model ID to use, for example: gemini-3.5-flash.

Example:

"gemini-3.5-flash"

Body

application/json
contents
object[]
required

Content of the conversation, required

tools
object[]

Optional tools the model can use

toolConfig
object

Optional tool configuration

safetySettings
object[]
systemInstruction
object
generationConfig
object
cachedContent
string

Optional cached content ID

Response

Successful content generation

candidates
object[]
usageMetadata
object
modelVersion
string
responseId
string