Generate content POST /v1beta/models/gemini-4-argon:generateContentAuthentication and headers Content-Type string
default: "application/json"
required
Request media type.
Request body Conversation history and the current user request. The final item must be a non-empty user turn.
Conversation role: user or model. Do not end the request with a model turn.
Content parts for the turn.
Text prompt or conversation content.
generationConfig.thinkingConfig.thinkingLevel Thinking level: low, medium, or high.
generationConfig.maxOutputTokens Maximum generated tokens for a synchronous request, from 1 through 32,768.
Successful response candidates[].content.parts[].text Generated text.
candidates[].finishReason Why generation stopped, such as STOP, MAX_TOKENS, or SAFETY.
candidates[].safetyRatings Safety assessments returned when the candidate is evaluated.
Input, output, reasoning, tool, cache, and total token counts.
Model version that produced the response.
Generate content POST /v1beta/models/gemini-4-argon:generateContentAuthentication and headers Content-Type string
default: "application/json"
required
Request media type.
Request body Conversation turns containing text and media.
Conversation role: user or model.
One or more text or media parts.
Instruction or question about the media.
contents[].parts[].inlineData Inline image, audio, video, or document data.
contents[].parts[].inlineData.mimeType Media MIME type, such as image/jpeg, audio/mpeg, video/mp4, or application/pdf.
contents[].parts[].inlineData.data Base64-encoded media bytes.
contents[].parts[].fileData Media or document supplied by URI.
contents[].parts[].fileData.mimeType Media MIME type.
contents[].parts[].fileData.fileUri Accessible media or document URI.
Successful response candidates[].content.parts[].text Text analysis of the supplied media.
candidates[].finishReason Reason generation stopped.
usageMetadata.promptTokensDetails Input token counts grouped by modality.
usageMetadata.candidatesTokensDetails Output token counts grouped by modality when returned.
Model version that produced the response.
Generate content POST /v1beta/models/gemini-4-argon:generateContentAuthentication and headers Content-Type string
default: "application/json"
required
Request media type.
Request body Conversation turns containing the extraction or generation instruction.
Instruction and source text.
generationConfig.responseMimeType Use application/json for JSON structured output or text/x.enum for a single enum value.
generationConfig.responseSchema Schema that constrains the generated JSON. Define explicit properties and required fields.
Successful response candidates[].content.parts[].text JSON serialized as text and conforming to the requested schema.
candidates[].finishReason Reason generation stopped.
Token accounting for the request.
Model version that produced the response.
Generate function call POST /v1beta/models/gemini-4-argon:generateContentAuthentication and headers Content-Type string
default: "application/json"
required
Request media type.
Request body Conversation turns containing the user request and, for later steps, previous model calls and function results.
tools[].functionDeclarations Functions available to the model.
tools[].functionDeclarations[].name Function name.
tools[].functionDeclarations[].description When and how the model should use the function.
tools[].functionDeclarations[].parameters JSON Schema for function arguments.
toolConfig.functionCallingConfig.mode AUTO, ANY, NONE, or VALIDATED.
toolConfig.functionCallingConfig.allowedFunctionNames Subset of declared functions the model may call.
contents[].parts[].functionResponse.name Function name when returning a tool result.
contents[].parts[].functionResponse.id Call ID returned by the model.
contents[].parts[].functionResponse.response Structured function result.
contents[].parts[].thoughtSignature Opaque signature returned by the model. Preserve it exactly in later requests.
Function-call response candidates[].content.parts[].functionCall Function requested by the model.
candidates[].content.parts[].functionCall.id Call ID to associate with a returned function result.
candidates[].content.parts[].functionCall.name Function name.
candidates[].content.parts[].functionCall.args Model-generated function arguments.
candidates[].content.parts[].thoughtSignature Opaque signature that must be preserved when the model turn is replayed.
usageMetadata.toolUsePromptTokenCount Tokens used for tool context when this metric is reported.
Generate grounded content POST /v1beta/models/gemini-4-argon:generateContentAuthentication and headers Content-Type string
default: "application/json"
required
Request media type.
Request body Conversation turns containing the tool-assisted request.
Ground the response with current Google Search results.
Ground location-related answers with Google Maps data.
Read and analyze URLs supplied in the prompt.
Allow the model to execute code.
Allow the model to propose computer-use actions. This tool is in Preview.
tools[].computerUse.environment Computer-use environment, such as ENVIRONMENT_BROWSER.
Grounded response candidates[].content.parts Text, executable code, code results, or other returned parts.
candidates[].groundingMetadata.webSearchQueries Search queries issued when grounding metadata is returned.
candidates[].groundingMetadata.searchEntryPoint.renderedContent Google-provided HTML and CSS for the search suggestions UI when returned.
candidates[].groundingMetadata.groundingChunks Web or Maps sources returned for the response.
candidates[].groundingMetadata.groundingSupports Links generated text segments to grounding sources when returned.
candidates[].content.parts[].executableCode Code returned when codeExecution is enabled and the model selects code execution.
candidates[].content.parts[].codeExecutionResult Execution outcome and output returned after code execution.
usageMetadata.toolUsePromptTokenCount Tokens used for tool context when this metric is reported.