Skip to main content
POST
cURL

Query Parameters

key
string
required

AnyFast API key.

Body

application/json
contents
object[]
required

Conversation turns. The final turn must contain non-empty user content; model-response prefilling is not supported.

Minimum array length: 1
systemInstruction
object
generationConfig
object

Generation configuration. temperature, topP, topK, candidateCount, and thinkingBudget are not supported by Gemini 3.8 Flash.

tools
object[]

Function declarations or supported built-in Gemini tools.

toolConfig
object

Tool execution and function-calling configuration.

safetySettings
object[]

Per-category content safety thresholds.

Response

Content generated successfully.

candidates
object[]
usageMetadata
object
modelVersion
string
Example:

"gemini-3.8-flash"

responseId
string
quota
integer

AnyFast quota usage reported for the request.