Select the Gemini text model to call via {model} in the path (see the reference table for the model parameter for all available values).
Uses the Google native API format and returns conversation content synchronously
Plain text / multimodal input: mixed text + image / audio / video input
Streaming: replace generateContent in the path with streamGenerateContent (append ?alt=sse to receive SSE)
Model specs and differences
3.8 behavior: compared with 3.7, it improves software engineering, agents, multi-step reasoning, and multimodal accuracy; it may consume more reasoning / output tokens, especially at high. Use low for latency-sensitive workloads, the default medium for general use, and high for complex code, long video, or multi-step reasoning.
Gemini 4 Argon behavior: thinking is controlled only through thinkingConfig.thinkingLevel, with low / medium / high available; when omitted, the model determines how much to think. minimal is not supported (returns 400; use low instead), and neither is thinkingBudget (returns 400). temperature / topP outside the valid range return 400. In multi-turn function calling, the thoughtSignature returned in the previous turn must be sent back unchanged, otherwise the request returns 400. Input supports text / images / audio / video / PDF.
Sampling parameterstemperature / topP / topK: consistent across the entire Gemini 3.x series, custom values do not affect the output; topK is ignored and has no effect, and a temperature / topP value outside the valid range returns a 400.
Thinking control: the Gemini 3.x / 4 series uses thinkingConfig.thinkingLevel (see the thinkingLevel parameter for the levels supported and the default of each model); the Gemini 2.5 series uses thinkingConfig.thinkingBudget (an integer, 0=off). The two are mutually exclusive. gemini-3.8-flash / gemini-3.7-flash and the Pro models do not support minimal; a passed value is automatically downgraded to low.
Function calling: for Gemini 3.x, the FunctionResponse must echo back the id and name matching the corresponding FunctionCall, otherwise the request errors.
Last-turn role: the role of the last message must not be model (Gemini 3.5+ will error).
Token limits: gemini-3.8-flash / gemini-3.7-flash / gemini-3.6-flash / gemini-3.5-flash-lite have a 1,048,576-token context and a maximum output of 65,536. gemini-4-argon shares a 1,048,576-token context across input, thinking, and output; each streaming request returns up to 65,536 tokens, or 32,768 non-streaming, including thinking and the answer. Use continuation for longer output; cumulative thinking and answer tokens are limited to the context space remaining after input. See “Long-output continuation” on this page. Other models follow their own specifications.
Gemini 2.5 IDs: from 2026-10-19, gemini-2.5-pro / gemini-2.5-flash / gemini-2.5-flash-lite are served by gemini-3.8-flash / gemini-3.5-flash-lite / gemini-3.1-flash-lite-preview and billed at their rates; responses show the new model ID, and parameter behavior follows the new model. thinkingBudget is converted to a level (see the thinkingBudget parameter).
Streaming: Replace generateContent with streamGenerateContent in the URL. Keep the request body unchanged; responses arrive in chunks. Append ?alt=sse to request SSE format.
BaseURL: The default BaseURL is https://direct.evolink.ai, which has better support for text models and long-lived connections. https://api.evolink.ai is the primary endpoint for multimodal services and serves as a fallback address for text models.
A single gemini-4-argon streaming request returns up to 65,536 tokens; a non-streaming request returns up to 32,768. Both limits include thinking and answer tokens. Use continuation requests for longer output. Input, thinking, and the answer share a 1,048,576-token context window, so cumulative thinking and answer tokens can only use the space remaining after the input. Only the native API supports continuation; the OpenAI-compatible format does not.
Streaming streamGenerateContent
Non-streaming generateContent
Maximum output per request
65,536
32,768
Continuation token at completion
In the final chunk: candidates[0].continuationToken
candidates[0].continuationToken
Set the client read timeout to 1,200 seconds (20 minutes) for long responses. This is a client configuration recommendation, not a guarantee of server request duration.Procedure:
Set generationConfig.maxOutputTokens above the per-request cap: above 65,536 for streaming or 32,768 for non-streaming. The parameter accepts up to 1,048,576, but actual output is still limited by the shared context. This is the cumulative thinking and answer budget across all continuation requests.
When candidates[0].finishReason is CONTINUATION, generation is not finished. The same candidate includes a continuationToken.
Resend the original request with the same contents, systemInstruction, tools, and generationConfig. Add only a top-level continuationToken containing the latest returned token.
Repeat step 3 only while finishReason is CONTINUATION; stop for any other finish reason. STOP means normal completion, and MAX_TOKENS means the cumulative budget is exhausted. Each response contains only newly generated content; concatenate it in order.
Do not append partial output to contents or send a new prompt such as “continue”.
A request may spend its entire budget on thinking and return empty answer text. Continue if the finish reason is CONTINUATION.
MAX_TOKENS may also include a continuationToken. To resume, manually raise maxOutputTokens and resend the original request with the latest token. Keeping the exhausted budget returns 400. See “Resume after budget exhaustion” below.
For multi-turn conversations, wait for STOP and then add the combined answer as a single model message to the history.
If the previous response ended with CONTINUATION, send the same request again with a top-level continuationToken:
curl -X POST "https://direct.evolink.ai/v1beta/models/gemini-4-argon:generateContent" \ -H "Authorization: Bearer $EVOLINK_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contents": [ { "role": "user", "parts": [{ "text": "Write a complete design document for a Rust async runtime, including the architecture, scheduler, I/O driver, timers, and complete example code." }] } ], "generationConfig": { "maxOutputTokens": 262144, "thinkingConfig": { "thinkingLevel": "high" } }, "continuationToken": "<continuationToken from the previous response>" }'
This Python function automatically handles CONTINUATION and returns on completion or budget exhaustion. It preserves the latest token and does not raise the budget automatically on MAX_TOKENS:
import osfrom copy import deepcopyimport requestsURL = "https://direct.evolink.ai/v1beta/models/gemini-4-argon:generateContent"HEADERS = {"Authorization": f"Bearer {os.environ['EVOLINK_API_KEY']}"}def generate_with_continuation(body): request_body = deepcopy(body) pieces = [] while True: # Client read timeout: 1,200 seconds; this does not guarantee a 20-minute server connection. resp = requests.post(URL, headers=HEADERS, json=request_body, timeout=1200) resp.raise_for_status() candidates = resp.json().get("candidates", []) if not candidates: raise RuntimeError("No candidates in the response; check promptFeedback.") candidate = candidates[0] for part in candidate.get("content", {}).get("parts", []): if not part.get("thought"): pieces.append(part.get("text", "")) reason = candidate.get("finishReason") token = candidate.get("continuationToken") if reason == "CONTINUATION": if not token: raise RuntimeError("The response requests continuation but has no continuationToken.") request_body["continuationToken"] = token # Keep all other fields unchanged continue return { "text": "".join(pieces), "finishReason": reason, "continuationToken": token, }body = { "contents": [ {"role": "user", "parts": [{"text": "Write a complete design document for a Rust async runtime, including the architecture, scheduler, I/O driver, timers, and complete example code."}]} ], "generationConfig": {"maxOutputTokens": 262144, "thinkingConfig": {"thinkingLevel": "high"}},}result = generate_with_continuation(body)print(result["text"])print("finishReason:", result["finishReason"])if result["finishReason"] == "MAX_TOKENS": print("The cumulative output budget is exhausted. If a token was returned, you can manually raise maxOutputTokens to resume.")
This example reuses generate_with_continuation, URL, and HEADERS above. It generates a number list with a small budget, then explicitly raises the total budget from 64 to 2,048. Keep the original contents and other settings unchanged; add the token and raise the budget to resume at the cutoff.
body = { "contents": [ {"role": "user", "parts": [{"text": "Output integers 1 through 100, one per line. Start immediately."}]} ], "generationConfig": {"maxOutputTokens": 64, "thinkingConfig": {"thinkingLevel": "low"}},}first = generate_with_continuation(body)print(first["text"], end="")if first["finishReason"] == "MAX_TOKENS" and first["continuationToken"]: body["continuationToken"] = first["continuationToken"] body["generationConfig"]["maxOutputTokens"] = 2048 # The caller explicitly raises the cumulative budget resumed = generate_with_continuation(body) print(resumed["text"], end="") print("\nfinishReason:", resumed["finishReason"])else: print("\nfinishReason:", first["finishReason"])
For streaming, read the final chunk containing finishReason: on CONTINUATION, resend the latest token with unchanged settings; on MAX_TOKENS, manually raise the cumulative budget if you want to resume; STOP means normal completion.
Each request is billed separately. Continuation requests count the original input and all previously generated content as input again. Portions that hit implicit caching are billed at the cache rate.
Each response’s usageMetadata covers only that request. Add usage across requests for the total. Streaming usage is cumulative within a request: use only the final usageMetadata, rather than adding cumulative values from the same stream.
For the native API, the output pre-authorization estimate uses the smaller of maxOutputTokens and 65,536, including for non-streaming requests; input is estimated separately. Non-streaming output is actually capped at 32,768 per request, so budgets above 32,768 may reserve more than an estimate based on the actual per-request cap. Final charges use the response usage.
Invalid tokens return 400. A well-formed but invalid token may return Invalid continuation token., while malformed tokens may produce another parameter error. Other models ignore continuationToken.
Resuming after MAX_TOKENS with a token but without raising the exhausted maxOutputTokens also returns 400.
Long reports and large coding tasks; up to 65,536 tokens per streaming request / 32,768 non-streaming; native API continuation is limited by the shared context
Tools the model may call. Three kinds are supported:
functionDeclarations: function calling
codeExecution: code execution
googleSearch: web search (Google Search grounding). Pass {"googleSearch": {}} (camelCase; snake_case google_search returns 400); available on all Gemini text models. candidates[].groundingMetadata in the response carries the queries and sources; billed per call
Long-output continuation token (gemini-4-argon only). Put the latest candidates[0].continuationToken at the top level of the request. Preserve the original contents, systemInstruction, and tools; do not append partial output.
CONTINUATION: keep every generation setting unchanged and resend the token.
MAX_TOKENS: a token may also be returned; manually raise cumulative maxOutputTokens before resuming, leaving other settings unchanged. Keeping the exhausted budget returns 400.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"EvoLink.AI","colors":{"primary":"#1E90FF","light":"#1E90FF","dark":"#1565C0"},"favicon":"https://mintcdn.com/muyutechnology/M6WD8GX6z2spTJCk/logo/favicon.svg?fit=max\u0026auto=format\u0026n=M6WD8GX6z2spTJCk\u0026q=85\u0026s=7c4e0fca04c5437dea1a135215d02f40","api":{"examples":{"prefill":true}},"navbar":{"links":[{"icon":"discord","href":"https://discord.gg/P9xzmJWndW","label":"Discord"},{"icon":"github","href":"https://github.com/EvoLinkAI","label":"GitHub"},{"icon":"x-twitter","href":"https://x.com/EvoLinkAi","label":"Twitter"}],"primary":{"type":"button","label":"Dashboard","href":"https://evolink.ai/dashboard"}},"footer":{"socials":{}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"en/api-manual/image-series/gpt-image-2.6/gpt-image-2.6-image-generation"},{"language":"cn","href":"cn/api-manual/image-series/gpt-image-2.6/gpt-image-2.6-image-generation"},{"language":"de","href":"de/api-manual/image-series/gpt-image-2.6/gpt-image-2.6-image-generation"},{"language":"fr","href":"fr/api-manual/image-series/gpt-image-2.6/gpt-image-2.6-image-generation"},{"language":"ja","href":"ja/api-manual/image-series/gpt-image-2.6/gpt-image-2.6-image-generation"},{"language":"ko","href":"ko/api-manual/image-series/gpt-image-2.6/gpt-image-2.6-image-generation"},{"language":"es","href":"es/api-manual/image-series/gpt-image-2.6/gpt-image-2.6-image-generation"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"muyutechnology","hasAudioNarration":false,"actualSubdomain":"muyutechnology","customDomains":["evolink.ai"],"gitSource":{"type":"github","owner":"pharmacist9527","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6aecee6b952236052928ac28","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"cn","tag":"API手册","count":230},{"language":"de","tag":"API-Handbuch","count":230},{"language":"en","tag":"API Manual","count":230},{"language":"es","tag":"Manual de API","count":230},{"language":"fr","tag":"Manuel API","count":230},{"language":"ja","tag":"APIマニュアル","count":230},{"language":"ko","tag":"API 매뉴얼","count":230},{"language":"cn","tag":"视频系列","count":112},{"language":"de","tag":"Videoserie","count":112},{"language":"en","tag":"Video Series","count":112},{"language":"es","tag":"Serie de videos","count":112},{"language":"fr","tag":"Série Vidéo","count":112},{"language":"ja","tag":"動画シリーズ","count":112},{"language":"ko","tag":"비디오 시리즈","count":112},{"language":"cn","tag":"图像系列","count":57},{"language":"de","tag":"Bildserie","count":57},{"language":"en","tag":"Image Series","count":57},{"language":"es","tag":"Serie de imágenes","count":57},{"language":"fr","tag":"Série Image","count":57},{"language":"ja","tag":"画像シリーズ","count":57},{"language":"ko","tag":"이미지 시리즈","count":57},{"language":"cn","tag":"语言系列","count":47},{"language":"de","tag":"Textserie","count":47},{"language":"en","tag":"Text Series","count":47},{"language":"es","tag":"Serie de texto","count":47},{"language":"fr","tag":"Série Texte","count":47},{"language":"ja","tag":"テキストシリーズ","count":47},{"language":"ko","tag":"텍스트 시리즈","count":47},{"language":"cn","tag":"Midjourney","count":28},{"language":"de","tag":"Midjourney","count":28},{"language":"en","tag":"Midjourney","count":28},{"language":"es","tag":"Midjourney","count":28},{"language":"fr","tag":"Midjourney","count":28},{"language":"ja","tag":"Midjourney","count":28},{"language":"ko","tag":"Midjourney","count":28},{"language":"cn","tag":"CLI/MCP","count":27},{"language":"en","tag":"CLI/MCP","count":27},{"language":"cn","tag":"Kling","count":22},{"language":"de","tag":"Kling","count":22},{"language":"en","tag":"Kling","count":22},{"language":"es","tag":"Kling","count":22},{"language":"fr","tag":"Kling","count":22},{"language":"ja","tag":"Kling","count":22},{"language":"ko","tag":"Kling","count":22},{"language":"cn","tag":"Wan","count":18},{"language":"de","tag":"Wan","count":18},{"language":"en","tag":"Wan","count":18},{"language":"es","tag":"Wan","count":18},{"language":"fr","tag":"Wan","count":18},{"language":"ja","tag":"Wan","count":18},{"language":"ko","tag":"Wan","count":18},{"language":"cn","tag":"Gemini Omni Flash","count":17},{"language":"de","tag":"Gemini Omni Flash","count":17},{"language":"en","tag":"Gemini Omni Flash","count":17},{"language":"es","tag":"Gemini Omni Flash","count":17},{"language":"fr","tag":"Gemini Omni Flash","count":17},{"language":"ja","tag":"Gemini Omni Flash","count":17},{"language":"ko","tag":"Gemini Omni Flash","count":17},{"language":"de","tag":"Chat Completions API","count":14},{"language":"en","tag":"Chat Completions API","count":14},{"language":"es","tag":"Chat Completions API","count":14},{"language":"fr","tag":"Chat Completions API","count":14},{"language":"ja","tag":"Chat Completions API","count":14},{"language":"ko","tag":"Chat Completions API","count":14},{"language":"cn","tag":"集成指南","count":13},{"language":"de","tag":"Responses API","count":13},{"language":"es","tag":"Responses API","count":13},{"language":"fr","tag":"Responses API","count":13},{"language":"ja","tag":"Responses API","count":13},{"language":"ko","tag":"Responses API","count":13}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"img[src*=\"/images/\"]{border-radius:12px!important}@media (min-width: 1024px){html{--scroll-mt: 9.5rem !important}}:where(h1,h2,h3,h4)[id],.prose :where(h1,h2,h3,h4):not(:where([class~=\"not-prose\"],[class~=\"not-prose\"] *)){scroll-margin-top:calc(var(--scroll-mt) - 10px)!important}.step-container,.tab-container,.param-head{scroll-margin-top:calc(var(--scroll-mt) - 10px)!important}.kilo-warning code:not(pre *){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding-left:0!important;padding-right:0!important}.cc-switch-warning code:not(pre *){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding-left:0!important;padding-right:0!important}#footer a[href*=\"utm_campaign=poweredBy\"]{display:none!important}"}],"page":{"pagePath":"en/api-manual/language-series/gemini/native-api/native-api-reference","slug":"/en/api-manual/language-series/gemini/native-api/native-api-reference","pageMetadata":{"title":"Gemini All-Model API - Native API Format","openapi":"en/api-manual/language-series/gemini/native-api/native-api-reference.json POST /v1beta/models/{model}:generateContent","description":"Select the Gemini text model to call via `{model}` in the path (see the reference table for the `model` parameter for all available values).\n\n- Uses the Google native API format and returns conversation content synchronously\n- **Plain text / multimodal input**: mixed text + image / audio / video input\n- **Streaming**: replace `generateContent` in the path with `streamGenerateContent` (append `?alt=sse` to receive SSE)\n\n---\n\n**Model specs and differences**\n- **3.8 behavior**: compared with 3.7, it improves software engineering, agents, multi-step reasoning, and multimodal accuracy; it may consume more reasoning / output tokens, especially at `high`. Use `low` for latency-sensitive workloads, the default `medium` for general use, and `high` for complex code, long video, or multi-step reasoning.\n- **Gemini 4 Argon behavior**: thinking is controlled only through `thinkingConfig.thinkingLevel`, with `low` / `medium` / `high` available; when omitted, the model determines how much to think. `minimal` is not supported (returns 400; use `low` instead), and neither is `thinkingBudget` (returns 400). `temperature` / `topP` outside the valid range return 400. In multi-turn function calling, the `thoughtSignature` returned in the previous turn must be sent back unchanged, otherwise the request returns 400. Input supports text / images / audio / video / PDF.\n- **Sampling parameters** `temperature` / `topP` / `topK`: consistent across the entire Gemini 3.x series, custom values do not affect the output; `topK` is ignored and has no effect, and a `temperature` / `topP` value outside the valid range returns a 400.\n- **Thinking control**: the Gemini 3.x / 4 series uses `thinkingConfig.thinkingLevel` (see the `thinkingLevel` parameter for the levels supported and the default of each model); the Gemini 2.5 series uses `thinkingConfig.thinkingBudget` (an integer, `0`=off). The two are mutually exclusive. `gemini-3.8-flash` / `gemini-3.7-flash` and the Pro models do not support `minimal`; a passed value is automatically downgraded to `low`.\n- **Function calling**: for Gemini 3.x, the `FunctionResponse` must echo back the `id` and `name` matching the corresponding `FunctionCall`, otherwise the request errors.\n- **Last-turn role**: the `role` of the last message must not be `model` (Gemini 3.5+ will error).\n- **Token limits**: `gemini-3.8-flash` / `gemini-3.7-flash` / `gemini-3.6-flash` / `gemini-3.5-flash-lite` have a 1,048,576-token context and a maximum output of 65,536. `gemini-4-argon` shares a 1,048,576-token context across input, thinking, and output; each streaming request returns up to 65,536 tokens, or 32,768 non-streaming, including thinking and the answer. Use continuation for longer output; cumulative thinking and answer tokens are limited to the context space remaining after input. See “Long-output continuation” on this page. Other models follow their own specifications.\n- **Gemini 2.5 IDs**: from 2026-10-19, `gemini-2.5-pro` / `gemini-2.5-flash` / `gemini-2.5-flash-lite` are served by `gemini-3.8-flash` / `gemini-3.5-flash-lite` / `gemini-3.1-flash-lite-preview` and billed at their rates; responses show the new model ID, and parameter behavior follows the new model. `thinkingBudget` is converted to a level (see the `thinkingBudget` parameter).","href":"/en/api-manual/language-series/gemini/native-api/native-api-reference"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n hr: \"hr\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Select the Gemini text model to call via \", _jsx(_components.code, {\n children: \"{model}\"\n }), \" in the path (see the reference table for the \", _jsx(_components.code, {\n children: \"model\"\n }), \" parameter for all available values).\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Uses the Google native API format and returns conversation content synchronously\"\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Plain text / multimodal input\"\n }), \": mixed text + image / audio / video input\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Streaming\"\n }), \": replace \", _jsx(_components.code, {\n children: \"generateContent\"\n }), \" in the path with \", _jsx(_components.code, {\n children: \"streamGenerateContent\"\n }), \" (append \", _jsx(_components.code, {\n children: \"?alt=sse\"\n }), \" to receive SSE)\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.hr, {}), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Model specs and differences\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"3.8 behavior\"\n }), \": compared with 3.7, it improves software engineering, agents, multi-step reasoning, and multimodal accuracy; it may consume more reasoning / output tokens, especially at \", _jsx(_components.code, {\n children: \"high\"\n }), \". Use \", _jsx(_components.code, {\n children: \"low\"\n }), \" for latency-sensitive workloads, the default \", _jsx(_components.code, {\n children: \"medium\"\n }), \" for general use, and \", _jsx(_components.code, {\n children: \"high\"\n }), \" for complex code, long video, or multi-step reasoning.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Gemini 4 Argon behavior\"\n }), \": thinking is controlled only through \", _jsx(_components.code, {\n children: \"thinkingConfig.thinkingLevel\"\n }), \", with \", _jsx(_components.code, {\n children: \"low\"\n }), \" / \", _jsx(_components.code, {\n children: \"medium\"\n }), \" / \", _jsx(_components.code, {\n children: \"high\"\n }), \" available; when omitted, the model determines how much to think. \", _jsx(_components.code, {\n children: \"minimal\"\n }), \" is not supported (returns 400; use \", _jsx(_components.code, {\n children: \"low\"\n }), \" instead), and neither is \", _jsx(_components.code, {\n children: \"thinkingBudget\"\n }), \" (returns 400). \", _jsx(_components.code, {\n children: \"temperature\"\n }), \" / \", _jsx(_components.code, {\n children: \"topP\"\n }), \" outside the valid range return 400. In multi-turn function calling, the \", _jsx(_components.code, {\n children: \"thoughtSignature\"\n }), \" returned in the previous turn must be sent back unchanged, otherwise the request returns 400. Input supports text / images / audio / video / PDF.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Sampling parameters\"\n }), \" \", _jsx(_components.code, {\n children: \"temperature\"\n }), \" / \", _jsx(_components.code, {\n children: \"topP\"\n }), \" / \", _jsx(_components.code, {\n children: \"topK\"\n }), \": consistent across the entire Gemini 3.x series, custom values do not affect the output; \", _jsx(_components.code, {\n children: \"topK\"\n }), \" is ignored and has no effect, and a \", _jsx(_components.code, {\n children: \"temperature\"\n }), \" / \", _jsx(_components.code, {\n children: \"topP\"\n }), \" value outside the valid range returns a 400.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Thinking control\"\n }), \": the Gemini 3.x / 4 series uses \", _jsx(_components.code, {\n children: \"thinkingConfig.thinkingLevel\"\n }), \" (see the \", _jsx(_components.code, {\n children: \"thinkingLevel\"\n }), \" parameter for the levels supported and the default of each model); the Gemini 2.5 series uses \", _jsx(_components.code, {\n children: \"thinkingConfig.thinkingBudget\"\n }), \" (an integer, \", _jsx(_components.code, {\n children: \"0\"\n }), \"=off). The two are mutually exclusive. \", _jsx(_components.code, {\n children: \"gemini-3.8-flash\"\n }), \" / \", _jsx(_components.code, {\n children: \"gemini-3.7-flash\"\n }), \" and the Pro models do not support \", _jsx(_components.code, {\n children: \"minimal\"\n }), \"; a passed value is automatically downgraded to \", _jsx(_components.code, {\n children: \"low\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Function calling\"\n }), \": for Gemini 3.x, the \", _jsx(_components.code, {\n children: \"FunctionResponse\"\n }), \" must echo back the \", _jsx(_components.code, {\n children: \"id\"\n }), \" and \", _jsx(_components.code, {\n children: \"name\"\n }), \" matching the corresponding \", _jsx(_components.code, {\n children: \"FunctionCall\"\n }), \", otherwise the request errors.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Last-turn role\"\n }), \": the \", _jsx(_components.code, {\n children: \"role\"\n }), \" of the last message must not be \", _jsx(_components.code, {\n children: \"model\"\n }), \" (Gemini 3.5+ will error).\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Token limits\"\n }), \": \", _jsx(_components.code, {\n children: \"gemini-3.8-flash\"\n }), \" / \", _jsx(_components.code, {\n children: \"gemini-3.7-flash\"\n }), \" / \", _jsx(_components.code, {\n children: \"gemini-3.6-flash\"\n }), \" / \", _jsx(_components.code, {\n children: \"gemini-3.5-flash-lite\"\n }), \" have a 1,048,576-token context and a maximum output of 65,536. \", _jsx(_components.code, {\n children: \"gemini-4-argon\"\n }), \" shares a 1,048,576-token context across input, thinking, and output; each streaming request returns up to 65,536 tokens, or 32,768 non-streaming, including thinking and the answer. Use continuation for longer output; cumulative thinking and answer tokens are limited to the context space remaining after input. See “Long-output continuation” on this page. Other models follow their own specifications.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Gemini 2.5 IDs\"\n }), \": from 2026-10-19, \", _jsx(_components.code, {\n children: \"gemini-2.5-pro\"\n }), \" / \", _jsx(_components.code, {\n children: \"gemini-2.5-flash\"\n }), \" / \", _jsx(_components.code, {\n children: \"gemini-2.5-flash-lite\"\n }), \" are served by \", _jsx(_components.code, {\n children: \"gemini-3.8-flash\"\n }), \" / \", _jsx(_components.code, {\n children: \"gemini-3.5-flash-lite\"\n }), \" / \", _jsx(_components.code, {\n children: \"gemini-3.1-flash-lite-preview\"\n }), \" and billed at their rates; responses show the new model ID, and parameter behavior follows the new model. \", _jsx(_components.code, {\n children: \"thinkingBudget\"\n }), \" is converted to a level (see the \", _jsx(_components.code, {\n children: \"thinkingBudget\"\n }), \" parameter).\"]\n }), \"\\n\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Streaming`}),`: Replace `,_jsx(_components.code,{children:`generateContent`}),` with `,_jsx(_components.code,{children:`streamGenerateContent`}),` in the URL. Keep the request body unchanged; responses arrive in chunks. Append `,_jsx(_components.code,{children:`?alt=sse`}),` to request SSE format.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`BaseURL`}),`: The default BaseURL is `,_jsx(_components.code,{children:`https://direct.evolink.ai`}),`, which has better support for text models and long-lived connections. `,_jsx(_components.code,{children:`https://api.evolink.ai`}),` is the primary endpoint for multimodal services and serves as a fallback address for text models.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`long-output-continuation-gemini-4-argon`,children:`Long-output continuation (Gemini 4 Argon)`}),`\n`,_jsxs(_components.p,{children:[`A single `,_jsx(_components.code,{children:`gemini-4-argon`}),` streaming request returns up to 65,536 tokens; a non-streaming request returns up to 32,768. Both limits include thinking and answer tokens. Use continuation requests for longer output. Input, thinking, and the answer share a 1,048,576-token context window, so cumulative thinking and answer tokens can only use the space remaining after the input. Only the native API supports continuation; the OpenAI-compatible format does not.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsxs(_components.th,{children:[`Streaming `,_jsx(_components.code,{children:`streamGenerateContent`})]}),_jsxs(_components.th,{children:[`Non-streaming `,_jsx(_components.code,{children:`generateContent`})]})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Maximum output per request`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`65,536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`32,768`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Continuation token at completion`}),_jsxs(_components.td,{children:[`In the final chunk: `,_jsx(_components.code,{children:`candidates[0].continuationToken`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`candidates[0].continuationToken`})})]})]})]}),`\n`,_jsx(_components.p,{children:`Set the client read timeout to 1,200 seconds (20 minutes) for long responses. This is a client configuration recommendation, not a guarantee of server request duration.`}),`\n`,_jsx(_components.p,{children:`Procedure:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Set `,_jsx(_components.code,{children:`generationConfig.maxOutputTokens`}),` above the per-request cap: above 65,536 for streaming or 32,768 for non-streaming. The parameter accepts up to 1,048,576, but actual output is still limited by the shared context. This is the cumulative thinking and answer budget across all continuation requests.`]}),`\n`,_jsxs(_components.li,{children:[`When `,_jsx(_components.code,{children:`candidates[0].finishReason`}),` is `,_jsx(_components.code,{children:`CONTINUATION`}),`, generation is not finished. The same candidate includes a `,_jsx(_components.code,{children:`continuationToken`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Resend the original request with the same `,_jsx(_components.code,{children:`contents`}),`, `,_jsx(_components.code,{children:`systemInstruction`}),`, `,_jsx(_components.code,{children:`tools`}),`, and `,_jsx(_components.code,{children:`generationConfig`}),`. Add only a top-level `,_jsx(_components.code,{children:`continuationToken`}),` containing the latest returned token.`]}),`\n`,_jsxs(_components.li,{children:[`Repeat step 3 only while `,_jsx(_components.code,{children:`finishReason`}),` is `,_jsx(_components.code,{children:`CONTINUATION`}),`; stop for any other finish reason. `,_jsx(_components.code,{children:`STOP`}),` means normal completion, and `,_jsx(_components.code,{children:`MAX_TOKENS`}),` means the cumulative budget is exhausted. Each response contains only newly generated content; concatenate it in order.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Do not append partial output to `,_jsx(_components.code,{children:`contents`}),` or send a new prompt such as “continue”.`]}),`\n`,_jsxs(_components.li,{children:[`A request may spend its entire budget on thinking and return empty answer text. Continue if the finish reason is `,_jsx(_components.code,{children:`CONTINUATION`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`MAX_TOKENS`}),` may also include a `,_jsx(_components.code,{children:`continuationToken`}),`. To resume, manually raise `,_jsx(_components.code,{children:`maxOutputTokens`}),` and resend the original request with the latest token. Keeping the exhausted budget returns 400. See “Resume after budget exhaustion” below.`]}),`\n`,_jsxs(_components.li,{children:[`For multi-turn conversations, wait for `,_jsx(_components.code,{children:`STOP`}),` and then add the combined answer as a single `,_jsx(_components.code,{children:`model`}),` message to the history.`]}),`\n`]})}),`\n`,_jsx(Heading,{level:`3`,id:`examples`,children:`Examples`}),`\n`,_jsx(_components.p,{children:`First request:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://direct.evolink.ai/v1beta/models/gemini-4-argon:generateContent\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$EVOLINK_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"contents\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"role\": \"user\", \"parts\": [{ \"text\": \"Write a complete design document for a Rust async runtime, including the architecture, scheduler, I/O driver, timers, and complete example code.\" }] }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"generationConfig\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"maxOutputTokens\": 262144,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"thinkingConfig\": { \"thinkingLevel\": \"high\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`If generation reaches the per-request cap with budget remaining, the response may look like this (only continuation-related fields are shown):`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"candidates\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"parts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"# Rust async runtime design`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`## 1. Architecture`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`…\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"finishReason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CONTINUATION\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"continuationToken\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003ca long opaque string; preserve it exactly>\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If the previous response ended with `,_jsx(_components.code,{children:`CONTINUATION`}),`, send the same request again with a top-level `,_jsx(_components.code,{children:`continuationToken`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://direct.evolink.ai/v1beta/models/gemini-4-argon:generateContent\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$EVOLINK_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"contents\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"role\": \"user\", \"parts\": [{ \"text\": \"Write a complete design document for a Rust async runtime, including the architecture, scheduler, I/O driver, timers, and complete example code.\" }] }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"generationConfig\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"maxOutputTokens\": 262144,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"thinkingConfig\": { \"thinkingLevel\": \"high\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"continuationToken\": \"\u003ccontinuationToken from the previous response>\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`This Python function automatically handles `,_jsx(_components.code,{children:`CONTINUATION`}),` and returns on completion or budget exhaustion. It preserves the latest token and does not raise the budget automatically on `,_jsx(_components.code,{children:`MAX_TOKENS`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`49`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`49`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` copy `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` deepcopy`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`URL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://direct.evolink.ai/v1beta/models/gemini-4-argon:generateContent\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`HEADERS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'EVOLINK_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` generate_with_continuation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` request_body `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` deepcopy(body)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pieces `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` []`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` while`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Client read timeout: 1,200 seconds; this does not guarantee a 20-minute server connection.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` resp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`URL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`HEADERS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`request_body, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` resp.raise_for_status()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` candidates `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` resp.json().get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"candidates\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, [])`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` not`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` candidates:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` raise`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` RuntimeError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No candidates in the response; check promptFeedback.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` candidate `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` candidates[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` part `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` candidate.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {}).get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"parts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, []):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` not`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` part.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"thought\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pieces.append(part.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` reason `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` candidate.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"finishReason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` token `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` candidate.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"continuationToken\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` reason `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"CONTINUATION\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` not`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` token:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` raise`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` RuntimeError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The response requests continuation but has no continuationToken.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` request_body[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"continuationToken\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` token `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Keep all other fields unchanged`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` continue`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.join(pieces),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"finishReason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: reason,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"continuationToken\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: token,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`body `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"contents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"parts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Write a complete design document for a Rust async runtime, including the architecture, scheduler, I/O driver, timers, and complete example code.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}]}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"generationConfig\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"maxOutputTokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`262144`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"thinkingConfig\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"thinkingLevel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"high\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` generate_with_continuation(body)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(result[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"finishReason:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, result[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"finishReason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"finishReason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"MAX_TOKENS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The cumulative output budget is exhausted. If a token was returned, you can manually raise maxOutputTokens to resume.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`resume-after-budget-exhaustion`,children:`Resume after budget exhaustion`}),`\n`,_jsxs(_components.p,{children:[`This example reuses `,_jsx(_components.code,{children:`generate_with_continuation`}),`, `,_jsx(_components.code,{children:`URL`}),`, and `,_jsx(_components.code,{children:`HEADERS`}),` above. It generates a number list with a small budget, then explicitly raises the total budget from 64 to 2,048. Keep the original `,_jsx(_components.code,{children:`contents`}),` and other settings unchanged; add the token and raise the budget to resume at the cutoff.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`body `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"contents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"parts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Output integers 1 through 100, one per line. Start immediately.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}]}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"generationConfig\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"maxOutputTokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`64`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"thinkingConfig\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"thinkingLevel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"low\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`first `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` generate_with_continuation(body)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(first[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`end`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` first[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"finishReason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"MAX_TOKENS\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` and`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` first[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"continuationToken\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` body[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"continuationToken\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` first[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"continuationToken\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` body[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"generationConfig\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"maxOutputTokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2048`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # The caller explicitly raises the cumulative budget`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` resumed `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` generate_with_continuation(body)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(resumed[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`end`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`finishReason:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, resumed[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"finishReason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`finishReason:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, first[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"finishReason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`For streaming, read the final chunk containing `,_jsx(_components.code,{children:`finishReason`}),`: on `,_jsx(_components.code,{children:`CONTINUATION`}),`, resend the latest token with unchanged settings; on `,_jsx(_components.code,{children:`MAX_TOKENS`}),`, manually raise the cumulative budget if you want to resume; `,_jsx(_components.code,{children:`STOP`}),` means normal completion.`]}),`\n`,_jsx(Heading,{level:`3`,id:`billing-and-errors`,children:`Billing and errors`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Each request is billed separately. Continuation requests count the original input and all previously generated content as input again. Portions that hit implicit caching are billed at the cache rate.`}),`\n`,_jsxs(_components.li,{children:[`Each response’s `,_jsx(_components.code,{children:`usageMetadata`}),` covers only that request. Add usage across requests for the total. Streaming usage is cumulative within a request: use only the final `,_jsx(_components.code,{children:`usageMetadata`}),`, rather than adding cumulative values from the same stream.`]}),`\n`,_jsxs(_components.li,{children:[`For the native API, the output pre-authorization estimate uses the smaller of `,_jsx(_components.code,{children:`maxOutputTokens`}),` and 65,536, including for non-streaming requests; input is estimated separately. Non-streaming output is actually capped at 32,768 per request, so budgets above 32,768 may reserve more than an estimate based on the actual per-request cap. Final charges use the response usage.`]}),`\n`,_jsxs(_components.li,{children:[`Invalid tokens return 400. A well-formed but invalid token may return `,_jsx(_components.code,{children:`Invalid continuation token.`}),`, while malformed tokens may produce another parameter error. Other models ignore `,_jsx(_components.code,{children:`continuationToken`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Resuming after `,_jsx(_components.code,{children:`MAX_TOKENS`}),` with a token but without raising the exhausted `,_jsx(_components.code,{children:`maxOutputTokens`}),` also returns 400.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Gemini All-Model API - Native API Format","openapi":"en/api-manual/language-series/gemini/native-api/native-api-reference.json POST /v1beta/models/{model}:generateContent","description":"Select the Gemini text model to call via `{model}` in the path (see the reference table for the `model` parameter for all available values).\n\n- Uses the Google native API format and returns conversation content synchronously\n- **Plain text / multimodal input**: mixed text + image / audio / video input\n- **Streaming**: replace `generateContent` in the path with `streamGenerateContent` (append `?alt=sse` to receive SSE)\n\n---\n\n**Model specs and differences**\n- **3.8 behavior**: compared with 3.7, it improves software engineering, agents, multi-step reasoning, and multimodal accuracy; it may consume more reasoning / output tokens, especially at `high`. Use `low` for latency-sensitive workloads, the default `medium` for general use, and `high` for complex code, long video, or multi-step reasoning.\n- **Gemini 4 Argon behavior**: thinking is controlled only through `thinkingConfig.thinkingLevel`, with `low` / `medium` / `high` available; when omitted, the model determines how much to think. `minimal` is not supported (returns 400; use `low` instead), and neither is `thinkingBudget` (returns 400). `temperature` / `topP` outside the valid range return 400. In multi-turn function calling, the `thoughtSignature` returned in the previous turn must be sent back unchanged, otherwise the request returns 400. Input supports text / images / audio / video / PDF.\n- **Sampling parameters** `temperature` / `topP` / `topK`: consistent across the entire Gemini 3.x series, custom values do not affect the output; `topK` is ignored and has no effect, and a `temperature` / `topP` value outside the valid range returns a 400.\n- **Thinking control**: the Gemini 3.x / 4 series uses `thinkingConfig.thinkingLevel` (see the `thinkingLevel` parameter for the levels supported and the default of each model); the Gemini 2.5 series uses `thinkingConfig.thinkingBudget` (an integer, `0`=off). The two are mutually exclusive. `gemini-3.8-flash` / `gemini-3.7-flash` and the Pro models do not support `minimal`; a passed value is automatically downgraded to `low`.\n- **Function calling**: for Gemini 3.x, the `FunctionResponse` must echo back the `id` and `name` matching the corresponding `FunctionCall`, otherwise the request errors.\n- **Last-turn role**: the `role` of the last message must not be `model` (Gemini 3.5+ will error).\n- **Token limits**: `gemini-3.8-flash` / `gemini-3.7-flash` / `gemini-3.6-flash` / `gemini-3.5-flash-lite` have a 1,048,576-token context and a maximum output of 65,536. `gemini-4-argon` shares a 1,048,576-token context across input, thinking, and output; each streaming request returns up to 65,536 tokens, or 32,768 non-streaming, including thinking and the answer. Use continuation for longer output; cumulative thinking and answer tokens are limited to the context space remaining after input. See “Long-output continuation” on this page. Other models follow their own specifications.\n- **Gemini 2.5 IDs**: from 2026-10-19, `gemini-2.5-pro` / `gemini-2.5-flash` / `gemini-2.5-flash-lite` are served by `gemini-3.8-flash` / `gemini-3.5-flash-lite` / `gemini-3.1-flash-lite-preview` and billed at their rates; responses show the new model ID, and parameter behavior follows the new model. `thinkingBudget` is converted to a level (see the `thinkingBudget` parameter).","href":"/en/api-manual/language-series/gemini/native-api/native-api-reference"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Long-output continuation (Gemini 4 Argon)","slug":"long-output-continuation-gemini-4-argon","depth":2,"children":[{"title":"Examples","slug":"examples","depth":3,"children":[]},{"title":"Resume after budget exhaustion","slug":"resume-after-budget-exhaustion","depth":3,"children":[]},{"title":"Billing and errors","slug":"billing-and-errors","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Gemini Content Generation (All Models)","description":"Select the Gemini text model to call via `{model}` in the path (see the reference table for the `model` parameter for all available values).\n\n- Uses the Google native API format and returns conversation content synchronously\n- **Plain text / multimodal input**: mixed text + image / audio / video input\n- **Streaming**: replace `generateContent` in the path with `streamGenerateContent` (append `?alt=sse` to receive SSE)\n\n---\n\n**Model specs and differences**\n- **3.8 behavior**: compared with 3.7, it improves software engineering, agents, multi-step reasoning, and multimodal accuracy; it may consume more reasoning / output tokens, especially at `high`. Use `low` for latency-sensitive workloads, the default `medium` for general use, and `high` for complex code, long video, or multi-step reasoning.\n- **Gemini 4 Argon behavior**: thinking is controlled only through `thinkingConfig.thinkingLevel`, with `low` / `medium` / `high` available; when omitted, the model determines how much to think. `minimal` is not supported (returns 400; use `low` instead), and neither is `thinkingBudget` (returns 400). `temperature` / `topP` outside the valid range return 400. In multi-turn function calling, the `thoughtSignature` returned in the previous turn must be sent back unchanged, otherwise the request returns 400. Input supports text / images / audio / video / PDF.\n- **Sampling parameters** `temperature` / `topP` / `topK`: consistent across the entire Gemini 3.x series, custom values do not affect the output; `topK` is ignored and has no effect, and a `temperature` / `topP` value outside the valid range returns a 400.\n- **Thinking control**: the Gemini 3.x / 4 series uses `thinkingConfig.thinkingLevel` (see the `thinkingLevel` parameter for the levels supported and the default of each model); the Gemini 2.5 series uses `thinkingConfig.thinkingBudget` (an integer, `0`=off). The two are mutually exclusive. `gemini-3.8-flash` / `gemini-3.7-flash` and the Pro models do not support `minimal`; a passed value is automatically downgraded to `low`.\n- **Function calling**: for Gemini 3.x, the `FunctionResponse` must echo back the `id` and `name` matching the corresponding `FunctionCall`, otherwise the request errors.\n- **Last-turn role**: the `role` of the last message must not be `model` (Gemini 3.5+ will error).\n- **Token limits**: `gemini-3.8-flash` / `gemini-3.7-flash` / `gemini-3.6-flash` / `gemini-3.5-flash-lite` have a 1,048,576-token context and a maximum output of 65,536. `gemini-4-argon` shares a 1,048,576-token context across input, thinking, and output; each streaming request returns up to 65,536 tokens, or 32,768 non-streaming, including thinking and the answer. Use continuation for longer output; cumulative thinking and answer tokens are limited to the context space remaining after input. See “Long-output continuation” on this page. Other models follow their own specifications.\n- **Gemini 2.5 IDs**: from 2026-10-19, `gemini-2.5-pro` / `gemini-2.5-flash` / `gemini-2.5-flash-lite` are served by `gemini-3.8-flash` / `gemini-3.5-flash-lite` / `gemini-3.1-flash-lite-preview` and billed at their rates; responses show the new model ID, and parameter behavior follows the new model. `thinkingBudget` is converted to a level (see the `thinkingBudget` parameter).","operationId":"geminiGenerateContent","tags":["Content Generation"],"requestBody":"9f693468-7208-4b17-b9bf-44fc2c383972","responses":{"200":"e45f3bec-ffd3-4ac5-ab77-eaf78e6f276f","400":"f593a6ba-0a9c-45a4-88a9-237def0698f8","401":"aa05e057-3691-4ec9-980b-0234ae4275fe","402":"0e48d659-6460-48f0-9437-4a24b05bbf07","403":"b7ab7f6b-3415-41b8-b5c3-0637b1bbb717","404":"8fd3c7c4-0ef2-44b0-b14c-eced6f30ca08","413":"816dedb5-1540-4598-a255-f28d67fbad7c","429":"58c1a76e-5d97-4a12-a8da-f8f7efd31cee","500":"5b315c9f-6918-41a9-94f1-01cd783719f3","502":"d63b5484-d74c-448c-a3db-ca674845d376","503":"b0f420a9-bd83-4de6-9db9-c5140891772d"},"parameters":["3f980165-deab-44cd-86ec-b5105383bcd5"],"method":"post","type":"path","servers":["11940688-df12-4299-b044-36d5af7d9f0e","70f5d1ef-1569-402b-bf6a-7447bbaf1d9f"],"security":["a4559cd0-e3d1-41f9-ab0c-7c41708b108f"],"path":"/v1beta/models/{model}:generateContent","baseUrlOptions":["https://direct.evolink.ai","https://api.evolink.ai"],"title":"Gemini Content Generation (All Models)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.contents.items.0.role":"user","body.contents.items.0.parts.items.0.oneOf.0.text":"What is the weather in Shanghai today?","body.tools.items.0":{"googleSearch":{}}},{"body.contents.items.0.role":"user","body.contents.items.0.parts.items.0.oneOf.0.text":"Please introduce yourself"},{"body.contents.items.0.role":"user","body.contents.items.0.parts.items.0.oneOf.0.text":"What is Python?","body.contents.items.1.role":"model","body.contents.items.1.parts.items.0.oneOf.0.text":"Python is a high-level programming language...","body.contents.items.2.role":"user","body.contents.items.2.parts.items.0.oneOf.0.text":"What are its advantages?"},{"body.contents.items.0.role":"user","body.contents.items.0.parts.items.0.oneOf.0.text":"Please analyze this song audio and answer: 1. Song source and artist 2. Song mood 3. Complete lyrics output","body.contents.items.0.parts.items.1.oneOf.1.fileData.mimeType":"audio/mp3","body.contents.items.0.parts.items.1.oneOf.1.fileData.fileUri":"https://example.com/audio.mp3"},{"body.contents.items.0.role":"user","body.contents.items.0.parts.items.0.oneOf.0.text":"Please describe the scene and main elements in this image in detail","body.contents.items.0.parts.items.1.oneOf.1.fileData.mimeType":"image/jpeg","body.contents.items.0.parts.items.1.oneOf.1.fileData.fileUri":"https://example.com/image.jpg"},{"body.contents.items.0.role":"user","body.contents.items.0.parts.items.0.oneOf.0.text":"Compare the relationship between these two images and this audio","body.contents.items.0.parts.items.1.oneOf.1.fileData.mimeType":"image/jpeg","body.contents.items.0.parts.items.1.oneOf.1.fileData.fileUri":"https://example.com/image1.jpg","body.contents.items.0.parts.items.2.oneOf.1.fileData.mimeType":"image/png","body.contents.items.0.parts.items.2.oneOf.1.fileData.fileUri":"https://example.com/image2.png","body.contents.items.0.parts.items.3.oneOf.1.fileData.mimeType":"audio/mp3","body.contents.items.0.parts.items.3.oneOf.1.fileData.fileUri":"https://example.com/audio.mp3"},{"body.contents.items.0.role":"user","body.contents.items.0.parts.items.0.oneOf.0.text":"Write a complete design document for a Rust async runtime, including the architecture, scheduler, I/O driver, timers, and complete example code.","body.generationConfig.maxOutputTokens":262144,"body.generationConfig.thinkingConfig.thinkingLevel":"high","body.continuationToken":"Copy candidates[0].continuationToken from the previous response exactly"}]},"dependencies":{"parameters":{"3f980165-deab-44cd-86ec-b5105383bcd5":{"name":"model","in":"path","required":true,"description":"Select the Gemini text model to call:\n\n| Model ID | Series | Positioning |\n|---|---|---|\n| `gemini-4-argon` | 4 Argon | Long reports and large coding tasks; up to 65,536 tokens per streaming request / 32,768 non-streaming; native API continuation is limited by the shared context |\n| `gemini-3.8-flash` | 3.8 Flash | Enhanced software engineering / agents / multi-step reasoning / multimodal accuracy |\n| `gemini-3.7-flash` | 3.7 Flash | Pro-level agentic / code generation / terminal execution |\n| `gemini-3.6-flash` | 3.6 Flash | Multi-step orchestration / code refactoring / general reasoning |\n| `gemini-3.5-flash` | 3.5 Flash | General-purpose Flash |\n| `gemini-3.5-flash-lite` | 3.5 Flash-Lite | Low cost / high throughput / lightweight agent |\n| `gemini-3.1-pro-preview` | 3.1 Pro (Preview) | Advanced reasoning |\n| `gemini-3.1-pro-preview-customtools` | 3.1 Pro · CustomTools | Advanced reasoning + custom tools |\n| `gemini-3.1-flash-lite-preview` | 3.1 Flash-Lite (Preview) | Low cost |\n| `gemini-3-pro-preview` | 3.0 Pro (Preview) | Advanced reasoning |\n| `gemini-3-flash-preview` | 3.0 Flash (Preview) | General-purpose Flash |\n| `gemini-2.5-pro` | 2.5 Pro | Legacy ID; from 2026-10-19 served by `gemini-3.8-flash` and billed at its rates |\n| `gemini-2.5-flash` | 2.5 Flash | Legacy ID; from 2026-10-19 served by `gemini-3.5-flash-lite` and billed at its rates |\n| `gemini-2.5-flash-lite` | 2.5 Flash-Lite | Legacy ID; from 2026-10-19 served by `gemini-3.1-flash-lite-preview` and billed at its rates |","schema":{"type":"string","enum":["gemini-4-argon","gemini-3.8-flash","gemini-3.7-flash","gemini-3.6-flash","gemini-3.5-flash","gemini-3.5-flash-lite","gemini-3.1-pro-preview","gemini-3.1-pro-preview-customtools","gemini-3.1-flash-lite-preview","gemini-3-pro-preview","gemini-3-flash-preview","gemini-2.5-pro","gemini-2.5-flash","gemini-2.5-flash-lite"],"example":"gemini-3.6-flash","isRequired":true,"description":"Select the Gemini text model to call:\n\n| Model ID | Series | Positioning |\n|---|---|---|\n| `gemini-4-argon` | 4 Argon | Long reports and large coding tasks; up to 65,536 tokens per streaming request / 32,768 non-streaming; native API continuation is limited by the shared context |\n| `gemini-3.8-flash` | 3.8 Flash | Enhanced software engineering / agents / multi-step reasoning / multimodal accuracy |\n| `gemini-3.7-flash` | 3.7 Flash | Pro-level agentic / code generation / terminal execution |\n| `gemini-3.6-flash` | 3.6 Flash | Multi-step orchestration / code refactoring / general reasoning |\n| `gemini-3.5-flash` | 3.5 Flash | General-purpose Flash |\n| `gemini-3.5-flash-lite` | 3.5 Flash-Lite | Low cost / high throughput / lightweight agent |\n| `gemini-3.1-pro-preview` | 3.1 Pro (Preview) | Advanced reasoning |\n| `gemini-3.1-pro-preview-customtools` | 3.1 Pro · CustomTools | Advanced reasoning + custom tools |\n| `gemini-3.1-flash-lite-preview` | 3.1 Flash-Lite (Preview) | Low cost |\n| `gemini-3-pro-preview` | 3.0 Pro (Preview) | Advanced reasoning |\n| `gemini-3-flash-preview` | 3.0 Flash (Preview) | General-purpose Flash |\n| `gemini-2.5-pro` | 2.5 Pro | Legacy ID; from 2026-10-19 served by `gemini-3.8-flash` and billed at its rates |\n| `gemini-2.5-flash` | 2.5 Flash | Legacy ID; from 2026-10-19 served by `gemini-3.5-flash-lite` and billed at its rates |\n| `gemini-2.5-flash-lite` | 2.5 Flash-Lite | Legacy ID; from 2026-10-19 served by `gemini-3.1-flash-lite-preview` and billed at its rates |","uniqueKey":"","typeLabel":"enum\u003cstring>"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["contents"],"properties":{"contents":{"type":"array","description":"List of conversation contents, supports multi-turn dialogue and multimodal input","items":{"type":"object","required":["role","parts"],"properties":{"role":{"type":"string","description":"Content role\n\n- `user`: User input\n- `model`: AI model's reply (for multi-turn conversation)","enum":["user","model"],"example":"user","isRequired":true,"uniqueKey":"contents.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"parts":{"type":"array","description":"Content parts list, supports text, file data, inline data, function calls, function responses, and code execution results","items":{"oneOf":[{"type":"object","title":"Text Input","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["text"],"properties":{"text":{"type":"string","description":"Text content","example":"Hello! I'm pleased to introduce myself.\n\nI'm a large language model, trained and developed by Google...","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.0.text","typeLabel":"string"},"thought":{"type":"boolean","description":"Whether this is thought content","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.0.thought","typeLabel":"boolean"},"thoughtSignature":{"type":"string","description":"Thought signature, must be echoed back in the next turn","example":"\u003cSignature_A>","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.0.thoughtSignature","typeLabel":"string"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.0","typeLabel":"Text Input · object"},{"type":"object","title":"Multimodal Input","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["fileData"],"properties":{"fileData":{"type":"object","required":["mimeType","fileUri"],"properties":{"mimeType":{"type":"string","description":"File MIME type\n\n**Supported types**:\n\n**Image**:\n- `image/jpeg`, `image/png`\n- Maximum size per image: 10 MB\n\n**Audio**:\n- `audio/mp3`\n- Maximum size per file: 10 MB\n- Recommended duration: no more than 10 minutes\n\n**Video**:\n- `video/mp4`\n- Maximum size per file: 50 MB\n- Recommended duration: no more than 180 seconds\n\n**Document**:\n- `application/pdf`\n- Maximum size per file: 20 MB","example":"audio/mp3","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.1.fileData.mimeType","typeLabel":"string"},"fileUri":{"type":"string","format":"uri","description":"File URI address\n\n**Requirements**:\n- Must be a publicly accessible URL\n- URL should end with file extension (e.g., .mp3, .jpg) and should match the mimeType parameter","example":"https://example.com/audio.mp3","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.1.fileData.fileUri","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.1.fileData","typeLabel":"object"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.1","typeLabel":"Multimodal Input · object"},{"type":"object","title":"Inline Data","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["inlineData"],"properties":{"inlineData":{"type":"object","properties":{"mimeType":{"type":"string","description":"IANA MIME type","example":"image/png","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.2.inlineData.mimeType","typeLabel":"string"},"data":{"type":"string","format":"byte","description":"Base64-encoded raw media data","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.2.inlineData.data","typeLabel":"string\u003cbyte>"}},"required":["mimeType","data"],"isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.2.inlineData","typeLabel":"object"},"thought":{"type":"boolean","description":"Whether this is thought content","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.2.thought","typeLabel":"boolean"},"thoughtSignature":{"type":"string","description":"Thought signature, must be echoed back in the next turn","example":"\u003cSignature_A>","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.2.thoughtSignature","typeLabel":"string"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.2","typeLabel":"Inline Data · object"},{"type":"object","title":"Function Call","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["functionCall"],"properties":{"functionCall":{"type":"object","required":["name","args"],"properties":{"name":{"type":"string","description":"Function name","example":"get_weather","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.3.functionCall.name","typeLabel":"string"},"args":{"type":"object","description":"Function arguments","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.3.functionCall.args","typeLabel":"object"},"id":{"type":"string","description":"Call ID. Generated by the model for Gemini 3.x, used to pair up parallel function calls.","example":"fc-abc123","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.3.functionCall.id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.3.functionCall","typeLabel":"object"},"thought":{"type":"boolean","description":"Whether this is thought content","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.3.thought","typeLabel":"boolean"},"thoughtSignature":{"type":"string","description":"Thought signature, must be echoed back in the next turn","example":"\u003cSignature_A>","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.3.thoughtSignature","typeLabel":"string"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.3","typeLabel":"Function Call · object"},{"type":"object","title":"Function Response","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["functionResponse"],"properties":{"functionResponse":{"type":"object","required":["name","response"],"properties":{"name":{"type":"string","description":"Function name","example":"get_weather","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.4.functionResponse.name","typeLabel":"string"},"response":{"type":"object","description":"Function response payload","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.4.functionResponse.response","typeLabel":"object"},"parts":{"type":"array","description":"Optional multimodal response parts","items":{"type":"object","required":["inlineData"],"properties":{"inlineData":{"type":"object","properties":{"mimeType":{"type":"string","description":"IANA MIME type","example":"image/png","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX].inlineData.mimeType","typeLabel":"string"},"data":{"type":"string","format":"byte","description":"Base64-encoded raw media data","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX].inlineData.data","typeLabel":"string\u003cbyte>"}},"required":["mimeType","data"],"isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX].inlineData","typeLabel":"object"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.4.functionResponse.parts","typeLabel":"object[]"},"id":{"type":"string","description":"The call ID of the corresponding `FunctionCall` (some docs / SDKs call it `call_id`). **Must be echoed back for Gemini 3.x**, used together with `name` for pairing, otherwise the request errors.","example":"fc-abc123","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.4.functionResponse.id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.4.functionResponse","typeLabel":"object"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.4","typeLabel":"Function Response · object"},{"type":"object","title":"Generated Code","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["executableCode"],"properties":{"executableCode":{"type":"object","required":["language","code"],"properties":{"language":{"type":"string","description":"Code language","example":"python","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.5.executableCode.language","typeLabel":"string"},"code":{"type":"string","description":"Generated code","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.5.executableCode.code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.5.executableCode","typeLabel":"object"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.5","typeLabel":"Generated Code · object"},{"type":"object","title":"Code Execution Result","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["codeExecutionResult"],"properties":{"codeExecutionResult":{"type":"object","required":["outcome"],"properties":{"outcome":{"type":"string","description":"Code execution result","enum":["OUTCOME_UNSPECIFIED","OUTCOME_OK","OUTCOME_FAILED","OUTCOME_DEADLINE_EXCEEDED"],"example":"OUTCOME_OK","isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.6.codeExecutionResult.outcome","typeLabel":"enum\u003cstring>"},"output":{"type":"string","description":"Standard output, error output, or other description","uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.6.codeExecutionResult.output","typeLabel":"string"}},"isRequired":true,"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.6.codeExecutionResult","typeLabel":"object"}},"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX].oneOf.6","typeLabel":"Code Execution Result · object"}],"uniqueKey":"contents.items.[INDEX].parts.items.[INDEX]","typeLabel":"Text Input · object | Multimodal Input · object | Inline Data · object | Function Call · object | Function Response · object | Generated Code · object | Code Execution Result · object"},"minItems":1,"isRequired":true,"uniqueKey":"contents.items.[INDEX].parts","typeLabel":"(Text Input · object | Multimodal Input · object | Inline Data · object | Function Call · object | Function Response · object | Generated Code · object | Code Execution Result · object)[]"}},"uniqueKey":"contents.items.[INDEX]","typeLabel":"object"},"minItems":1,"isRequired":true,"uniqueKey":"contents","typeLabel":"object[]"},"systemInstruction":{"type":"object","required":["role","parts"],"properties":{"role":{"type":"string","description":"Content role\n\n- `user`: User input\n- `model`: AI model's reply (for multi-turn conversation)","enum":["user","model"],"example":"user","isRequired":true,"uniqueKey":"systemInstruction.role","typeLabel":"enum\u003cstring>"},"parts":{"type":"array","description":"Content parts list, supports text, file data, inline data, function calls, function responses, and code execution results","items":{"oneOf":[{"type":"object","title":"Text Input","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["text"],"properties":{"text":{"type":"string","description":"Text content","example":"Hello! I'm pleased to introduce myself.\n\nI'm a large language model, trained and developed by Google...","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.0.text","typeLabel":"string"},"thought":{"type":"boolean","description":"Whether this is thought content","uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.0.thought","typeLabel":"boolean"},"thoughtSignature":{"type":"string","description":"Thought signature, must be echoed back in the next turn","example":"\u003cSignature_A>","uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.0.thoughtSignature","typeLabel":"string"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.0","typeLabel":"Text Input · object"},{"type":"object","title":"Multimodal Input","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["fileData"],"properties":{"fileData":{"type":"object","required":["mimeType","fileUri"],"properties":{"mimeType":{"type":"string","description":"File MIME type\n\n**Supported types**:\n\n**Image**:\n- `image/jpeg`, `image/png`\n- Maximum size per image: 10 MB\n\n**Audio**:\n- `audio/mp3`\n- Maximum size per file: 10 MB\n- Recommended duration: no more than 10 minutes\n\n**Video**:\n- `video/mp4`\n- Maximum size per file: 50 MB\n- Recommended duration: no more than 180 seconds\n\n**Document**:\n- `application/pdf`\n- Maximum size per file: 20 MB","example":"audio/mp3","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.1.fileData.mimeType","typeLabel":"string"},"fileUri":{"type":"string","format":"uri","description":"File URI address\n\n**Requirements**:\n- Must be a publicly accessible URL\n- URL should end with file extension (e.g., .mp3, .jpg) and should match the mimeType parameter","example":"https://example.com/audio.mp3","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.1.fileData.fileUri","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.1.fileData","typeLabel":"object"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.1","typeLabel":"Multimodal Input · object"},{"type":"object","title":"Inline Data","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["inlineData"],"properties":{"inlineData":{"type":"object","properties":{"mimeType":{"type":"string","description":"IANA MIME type","example":"image/png","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.2.inlineData.mimeType","typeLabel":"string"},"data":{"type":"string","format":"byte","description":"Base64-encoded raw media data","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.2.inlineData.data","typeLabel":"string\u003cbyte>"}},"required":["mimeType","data"],"isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.2.inlineData","typeLabel":"object"},"thought":{"type":"boolean","description":"Whether this is thought content","uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.2.thought","typeLabel":"boolean"},"thoughtSignature":{"type":"string","description":"Thought signature, must be echoed back in the next turn","example":"\u003cSignature_A>","uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.2.thoughtSignature","typeLabel":"string"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.2","typeLabel":"Inline Data · object"},{"type":"object","title":"Function Call","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["functionCall"],"properties":{"functionCall":{"type":"object","required":["name","args"],"properties":{"name":{"type":"string","description":"Function name","example":"get_weather","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.3.functionCall.name","typeLabel":"string"},"args":{"type":"object","description":"Function arguments","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.3.functionCall.args","typeLabel":"object"},"id":{"type":"string","description":"Call ID. Generated by the model for Gemini 3.x, used to pair up parallel function calls.","example":"fc-abc123","uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.3.functionCall.id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.3.functionCall","typeLabel":"object"},"thought":{"type":"boolean","description":"Whether this is thought content","uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.3.thought","typeLabel":"boolean"},"thoughtSignature":{"type":"string","description":"Thought signature, must be echoed back in the next turn","example":"\u003cSignature_A>","uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.3.thoughtSignature","typeLabel":"string"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.3","typeLabel":"Function Call · object"},{"type":"object","title":"Function Response","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["functionResponse"],"properties":{"functionResponse":{"type":"object","required":["name","response"],"properties":{"name":{"type":"string","description":"Function name","example":"get_weather","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.4.functionResponse.name","typeLabel":"string"},"response":{"type":"object","description":"Function response payload","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.4.functionResponse.response","typeLabel":"object"},"parts":{"type":"array","description":"Optional multimodal response parts","items":{"type":"object","required":["inlineData"],"properties":{"inlineData":{"type":"object","properties":{"mimeType":{"type":"string","description":"IANA MIME type","example":"image/png","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX].inlineData.mimeType","typeLabel":"string"},"data":{"type":"string","format":"byte","description":"Base64-encoded raw media data","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX].inlineData.data","typeLabel":"string\u003cbyte>"}},"required":["mimeType","data"],"isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX].inlineData","typeLabel":"object"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.4.functionResponse.parts","typeLabel":"object[]"},"id":{"type":"string","description":"The call ID of the corresponding `FunctionCall` (some docs / SDKs call it `call_id`). **Must be echoed back for Gemini 3.x**, used together with `name` for pairing, otherwise the request errors.","example":"fc-abc123","uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.4.functionResponse.id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.4.functionResponse","typeLabel":"object"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.4","typeLabel":"Function Response · object"},{"type":"object","title":"Generated Code","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["executableCode"],"properties":{"executableCode":{"type":"object","required":["language","code"],"properties":{"language":{"type":"string","description":"Code language","example":"python","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.5.executableCode.language","typeLabel":"string"},"code":{"type":"string","description":"Generated code","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.5.executableCode.code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.5.executableCode","typeLabel":"object"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.5","typeLabel":"Generated Code · object"},{"type":"object","title":"Code Execution Result","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["codeExecutionResult"],"properties":{"codeExecutionResult":{"type":"object","required":["outcome"],"properties":{"outcome":{"type":"string","description":"Code execution result","enum":["OUTCOME_UNSPECIFIED","OUTCOME_OK","OUTCOME_FAILED","OUTCOME_DEADLINE_EXCEEDED"],"example":"OUTCOME_OK","isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.6.codeExecutionResult.outcome","typeLabel":"enum\u003cstring>"},"output":{"type":"string","description":"Standard output, error output, or other description","uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.6.codeExecutionResult.output","typeLabel":"string"}},"isRequired":true,"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.6.codeExecutionResult","typeLabel":"object"}},"uniqueKey":"systemInstruction.parts.items.[INDEX].oneOf.6","typeLabel":"Code Execution Result · object"}],"uniqueKey":"systemInstruction.parts.items.[INDEX]","typeLabel":"Text Input · object | Multimodal Input · object | Inline Data · object | Function Call · object | Function Response · object | Generated Code · object | Code Execution Result · object"},"minItems":1,"isRequired":true,"uniqueKey":"systemInstruction.parts","typeLabel":"(Text Input · object | Multimodal Input · object | Inline Data · object | Function Call · object | Function Response · object | Generated Code · object | Code Execution Result · object)[]"}},"description":"System instruction (optional), mainly text content","uniqueKey":"systemInstruction","typeLabel":"object"},"tools":{"type":"array","items":{"type":"object","uniqueKey":"tools.items.[INDEX]","typeLabel":"object"},"description":"Tools the model may call. Three kinds are supported:\n\n- `functionDeclarations`: function calling\n- `codeExecution`: code execution\n- `googleSearch`: web search (Google Search grounding). Pass `{\"googleSearch\": {}}` (camelCase; snake_case `google_search` returns 400); available on all Gemini text models. `candidates[].groundingMetadata` in the response carries the queries and sources; billed per call","example":[{"googleSearch":{}}],"uniqueKey":"tools","typeLabel":"object[]"},"toolConfig":{"type":"object","description":"Tool calling configuration (optional)","uniqueKey":"toolConfig","typeLabel":"object"},"safetySettings":{"type":"array","items":{"type":"object","uniqueKey":"safetySettings.items.[INDEX]","typeLabel":"object"},"description":"Safety settings list (optional)","uniqueKey":"safetySettings","typeLabel":"object[]"},"generationConfig":{"type":"object","description":"Generation configuration parameters (optional)","properties":{"temperature":{"type":"number","description":"Sampling temperature, controls output randomness\n\n**Description**:\n- Lower values (e.g., 0.2): More deterministic, focused output\n- Higher values (e.g., 1.5): More random, creative output\n\n**Consistent across the entire Gemini 3.x series** (does not vary by model): custom values within the valid range do not affect the output; a value outside this parameter's valid range returns a 400 rather than being silently ignored.","minimum":0,"maximum":2,"example":0.7,"uniqueKey":"generationConfig.temperature","typeLabel":"number"},"maxOutputTokens":{"type":"integer","description":"Maximum generated tokens, including thinking and the answer.\n\n- A small value may truncate the response.\n- `gemini-3.8-flash` / `gemini-3.7-flash` / `gemini-3.6-flash` / `gemini-3.5-flash-lite` support up to 65,536 tokens; other models follow their own specifications.\n- For `gemini-4-argon`, this is the cumulative budget across continuation requests. The parameter accepts up to 1,048,576, but input, thinking, and output share that context window, so actual output is limited by remaining space. A single streaming request returns up to 65,536 tokens; non-streaming returns up to 32,768. Use token-based continuation for longer output.\n- `CONTINUATION` means the per-request cap was reached with budget left; `MAX_TOKENS` means the cumulative budget is exhausted. If a token is returned, manually raise the budget to resume.","minimum":1,"example":2000,"uniqueKey":"generationConfig.maxOutputTokens","typeLabel":"integer"},"topP":{"type":"number","description":"Nucleus Sampling parameter\n\n**Description**:\n- Controls sampling from tokens within the top cumulative probability\n- For example, 0.9 means selecting from tokens whose cumulative probability reaches 90%\n- Default: 0.95\n\n**Recommendation**: Do not adjust temperature and topP simultaneously\n\n**Consistent across the entire Gemini 3.x series** (does not vary by model): custom values within the valid range do not affect the output; a value outside this parameter's valid range returns a 400 rather than being silently ignored.","minimum":0,"maximum":1,"example":0.9,"uniqueKey":"generationConfig.topP","typeLabel":"number"},"topK":{"type":"integer","description":"Top-K sampling parameter\n\n**Description**:\n- For example, 10 means limiting each sampling step to only consider the 10 most probable tokens\n- Smaller values make the output more focused\n- Default: 64\n\nThis parameter is ignored and has no effect on any Gemini 3.x model.","minimum":1,"example":40,"uniqueKey":"generationConfig.topK","typeLabel":"integer"},"responseMimeType":{"type":"string","description":"MIME type of generated candidate content, for example text/plain or application/json","example":"application/json","uniqueKey":"generationConfig.responseMimeType","typeLabel":"string"},"responseSchema":{"type":"object","description":"Output schema definition for generated content (JSON mode / structured output)","uniqueKey":"generationConfig.responseSchema","typeLabel":"object"},"responseJsonSchema":{"type":"object","description":"JSON Schema for generated content (useful for more complex structured output)","uniqueKey":"generationConfig.responseJsonSchema","typeLabel":"object"},"thinkingConfig":{"type":"object","description":"Thinking configuration that controls the model's reasoning behavior.\n\n- **Gemini 3.x / 4 series**: use `thinkingLevel` (see the `thinkingLevel` parameter for the levels supported and the default of each model)\n- **Gemini 2.5 series**: use `thinkingBudget`\n\n`thinkingLevel` and `thinkingBudget` are mutually exclusive; passing both will cause an error.","properties":{"thinkingLevel":{"type":"string","enum":["minimal","low","medium","high"],"description":"Thinking level, controlling reasoning depth (case-insensitive):\n- `minimal`: near-zero thinking, aimed at high-throughput / low-latency scenarios (classification, extraction, routing, etc.)\n- `low`: less thinking, suitable for simple tasks\n- `medium`: balanced quality and speed, suitable for moderately complex tasks\n- `high`: deep multi-step reasoning, suitable for complex reasoning, math, and coding\n\n**Supported by the Gemini 3.x / 4 series**, with different supported levels and defaults per model (the Gemini 2.5 series uses `thinkingBudget` instead):\n\n| Model | Supported levels | Default |\n|---|---|---|\n| `gemini-4-argon` | `low` / `medium` / `high` | Long reports and large coding tasks; up to 65,536 tokens per streaming request / 32,768 non-streaming; native API continuation is limited by the shared context |\n| `gemini-3.8-flash` | `low` / `medium` / `high` | `medium` |\n| `gemini-3.7-flash` | `low` / `medium` / `high` | `medium` |\n| `gemini-3.6-flash` | `minimal` / `low` / `medium` / `high` | `medium` |\n| `gemini-3.5-flash` | `minimal` / `low` / `medium` / `high` | `medium` |\n| `gemini-3.5-flash-lite` | `minimal` / `low` / `medium` / `high` | `minimal` |\n| `gemini-3.1-flash-lite-preview` | `minimal` / `low` / `medium` / `high` | `minimal` |\n| `gemini-3-flash-preview` | `minimal` / `low` / `medium` / `high` | `medium` |\n| `gemini-3.1-pro-preview` | `low` / `medium` / `high` | `high` |\n| `gemini-3.1-pro-preview-customtools` | `low` / `medium` / `high` | `high` |\n| `gemini-3-pro-preview` | `low` / `medium` / `high` | `high` |\n\nPassing a level a model does not support (e.g., passing `minimal` to a Pro model or to `gemini-3.8-flash` / `gemini-3.7-flash`) is automatically downgraded to `low` and does not raise an error.\n\n`gemini-4-argon` does not support `minimal`: passing it returns 400; use `low` instead.","example":"minimal","uniqueKey":"generationConfig.thinkingConfig.thinkingLevel","typeLabel":"enum\u003cstring>"},"thinkingBudget":{"type":"integer","description":"Thinking token budget, used by the **Gemini 2.5 series** (`gemini-2.5-flash` / `gemini-2.5-flash-lite` / `gemini-2.5-pro`): `0`=disable thinking, `-1`=dynamic budget, a positive integer=fixed budget (the exact range depends on the specific model). Mutually exclusive with `thinkingLevel`. `gemini-4-argon` does not support this parameter; passing it returns 400.\n\nFrom 2026-10-19, requests to the 2.5 IDs are served by newer models (see the `model` parameter), and the budget is converted to `thinkingLevel` using the table below. We recommend switching to `thinkingLevel`.\n\n| Legacy model (documented range) | New model | `thinkingBudget` → `thinkingLevel` |\n|---|---|---|\n| `gemini-2.5-pro` (128–32,768) | `gemini-3.8-flash` | 128–11,007 → `low`; 11,008–21,888 → `medium`; 21,889–32,768 → `high` |\n| `gemini-2.5-flash` (0–24,576) | `gemini-3.5-flash-lite` | 0 (thinking off) → `minimal`; 1–8,192 → `low`; 8,193–16,384 → `medium`; 16,385–24,576 → `high` |\n| `gemini-2.5-flash-lite` (512–24,576, or 0) | `gemini-3.1-flash-lite-preview` | 0 (thinking off) → `minimal`; 512–8,533 → `low`; 8,534–16,554 → `medium`; 16,555–24,576 → `high` |\n\nValues outside the range are clamped to the nearest end of the table. `-1` (dynamic) uses the new model's default level (see `thinkingLevel`). The conversion applies only to requests that use the 2.5 model IDs; requests to the 3.x IDs are not changed.","example":-1,"uniqueKey":"generationConfig.thinkingConfig.thinkingBudget","typeLabel":"integer"}},"uniqueKey":"generationConfig.thinkingConfig","typeLabel":"object"}},"uniqueKey":"generationConfig","typeLabel":"object"},"continuationToken":{"type":"string","description":"Long-output continuation token (`gemini-4-argon` only). Put the latest `candidates[0].continuationToken` at the top level of the request. Preserve the original `contents`, `systemInstruction`, and `tools`; do not append partial output.\n\n- `CONTINUATION`: keep every generation setting unchanged and resend the token.\n- `MAX_TOKENS`: a token may also be returned; manually raise cumulative `maxOutputTokens` before resuming, leaving other settings unchanged. Keeping the exhausted budget returns 400.\n- Invalid tokens return 400.\n- Other models ignore this field.\n\nSee [Native API reference](/en/api-manual/language-series/gemini/native-api/native-api-reference), under “Long-output continuation”.","uniqueKey":"continuationToken","typeLabel":"string"},"cachedContent":{"type":"string","description":"Cached content name, in the form cachedContents/{cachedContent}","uniqueKey":"cachedContent","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"google_search":{"title":"google_search","value":{"contents":[{"role":"user","parts":[{"text":"What is the weather in Shanghai today?"}]}],"tools":[{"googleSearch":{}}]}},"simple_text":{"title":"simple_text","value":{"contents":[{"role":"user","parts":[{"text":"Please introduce yourself"}]}]}},"multi_turn":{"title":"multi_turn","value":{"contents":[{"role":"user","parts":[{"text":"What is Python?"}]},{"role":"model","parts":[{"text":"Python is a high-level programming language..."}]},{"role":"user","parts":[{"text":"What are its advantages?"}]}]}},"audio_analysis":{"title":"audio_analysis","value":{"contents":[{"role":"user","parts":[{"text":"Please analyze this song audio and answer: 1. Song source and artist 2. Song mood 3. Complete lyrics output"},{"fileData":{"mimeType":"audio/mp3","fileUri":"https://example.com/audio.mp3"}}]}]}},"image_understanding":{"title":"image_understanding","value":{"contents":[{"role":"user","parts":[{"text":"Please describe the scene and main elements in this image in detail"},{"fileData":{"mimeType":"image/jpeg","fileUri":"https://example.com/image.jpg"}}]}]}},"multi_file":{"title":"multi_file","value":{"contents":[{"role":"user","parts":[{"text":"Compare the relationship between these two images and this audio"},{"fileData":{"mimeType":"image/jpeg","fileUri":"https://example.com/image1.jpg"}},{"fileData":{"mimeType":"image/png","fileUri":"https://example.com/image2.png"}},{"fileData":{"mimeType":"audio/mp3","fileUri":"https://example.com/audio.mp3"}}]}]}},"long_decode_continuation":{"title":"long_decode_continuation","value":{"contents":[{"role":"user","parts":[{"text":"Write a complete design document for a Rust async runtime, including the architecture, scheduler, I/O driver, timers, and complete example code."}]}],"generationConfig":{"maxOutputTokens":262144,"thinkingConfig":{"thinkingLevel":"high"}},"continuationToken":"Copy candidates[0].continuationToken from the previous response exactly"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"e45f3bec-ffd3-4ac5-ab77-eaf78e6f276f":{"description":"Content generated successfully\n\n**Response format description**:\n- When using the `generateContent` endpoint, returns `GenerateContentResponse` (returns complete response at once)\n- When using the `streamGenerateContent` endpoint, returns `StreamGenerateContentResponse` (streaming response, returns content in chunks)","content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Sync Response","properties":{"candidates":{"type":"array","description":"List of candidate responses","items":{"type":"object","properties":{"content":{"type":"object","properties":{"role":{"type":"string","description":"Response role","enum":["model"],"example":"model","uniqueKey":"oneOf.0.candidates.items.[INDEX].content.role","typeLabel":"enum\u003cstring>"},"parts":{"type":"array","description":"Response content parts, supports text, inline data, function calls, function responses, and code execution results","items":{"oneOf":[{"type":"object","title":"Text Input","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["text"],"properties":{"text":{"type":"string","description":"Text content","example":"Hello! I'm pleased to introduce myself.\n\nI'm a large language model, trained and developed by Google...","isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.0.text","typeLabel":"string"},"thought":{"type":"boolean","description":"Whether this is thought content","uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.0.thought","typeLabel":"boolean"},"thoughtSignature":{"type":"string","description":"Thought signature, must be echoed back in the next turn","example":"\u003cSignature_A>","uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.0.thoughtSignature","typeLabel":"string"}},"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.0","typeLabel":"Text Input · object"},{"type":"object","title":"Multimodal Input","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["fileData"],"properties":{"fileData":{"type":"object","required":["mimeType","fileUri"],"properties":{"mimeType":{"type":"string","description":"File MIME type\n\n**Supported types**:\n\n**Image**:\n- `image/jpeg`, `image/png`\n- Maximum size per image: 10 MB\n\n**Audio**:\n- `audio/mp3`\n- Maximum size per file: 10 MB\n- Recommended duration: no more than 10 minutes\n\n**Video**:\n- `video/mp4`\n- Maximum size per file: 50 MB\n- Recommended duration: no more than 180 seconds\n\n**Document**:\n- `application/pdf`\n- Maximum size per file: 20 MB","example":"audio/mp3","isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.1.fileData.mimeType","typeLabel":"string"},"fileUri":{"type":"string","format":"uri","description":"File URI address\n\n**Requirements**:\n- Must be a publicly accessible URL\n- URL should end with file extension (e.g., .mp3, .jpg) and should match the mimeType parameter","example":"https://example.com/audio.mp3","isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.1.fileData.fileUri","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.1.fileData","typeLabel":"object"}},"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.1","typeLabel":"Multimodal Input · object"},{"type":"object","title":"Inline Data","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["inlineData"],"properties":{"inlineData":{"type":"object","properties":{"mimeType":{"type":"string","description":"IANA MIME type","example":"image/png","isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.2.inlineData.mimeType","typeLabel":"string"},"data":{"type":"string","format":"byte","description":"Base64-encoded raw media data","isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.2.inlineData.data","typeLabel":"string\u003cbyte>"}},"required":["mimeType","data"],"isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.2.inlineData","typeLabel":"object"},"thought":{"type":"boolean","description":"Whether this is thought content","uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.2.thought","typeLabel":"boolean"},"thoughtSignature":{"type":"string","description":"Thought signature, must be echoed back in the next turn","example":"\u003cSignature_A>","uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.2.thoughtSignature","typeLabel":"string"}},"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.2","typeLabel":"Inline Data · object"},{"type":"object","title":"Function Call","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["functionCall"],"properties":{"functionCall":{"type":"object","required":["name","args"],"properties":{"name":{"type":"string","description":"Function name","example":"get_weather","isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.3.functionCall.name","typeLabel":"string"},"args":{"type":"object","description":"Function arguments","isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.3.functionCall.args","typeLabel":"object"},"id":{"type":"string","description":"Call ID. Generated by the model for Gemini 3.x, used to pair up parallel function calls.","example":"fc-abc123","uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.3.functionCall.id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.3.functionCall","typeLabel":"object"},"thought":{"type":"boolean","description":"Whether this is thought content","uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.3.thought","typeLabel":"boolean"},"thoughtSignature":{"type":"string","description":"Thought signature, must be echoed back in the next turn","example":"\u003cSignature_A>","uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.3.thoughtSignature","typeLabel":"string"}},"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.3","typeLabel":"Function Call · object"},{"type":"object","title":"Function Response","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["functionResponse"],"properties":{"functionResponse":{"type":"object","required":["name","response"],"properties":{"name":{"type":"string","description":"Function name","example":"get_weather","isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.name","typeLabel":"string"},"response":{"type":"object","description":"Function response payload","isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.response","typeLabel":"object"},"parts":{"type":"array","description":"Optional multimodal response parts","items":{"type":"object","required":["inlineData"],"properties":{"inlineData":{"type":"object","properties":{"mimeType":{"type":"string","description":"IANA MIME type","example":"image/png","isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX].inlineData.mimeType","typeLabel":"string"},"data":{"type":"string","format":"byte","description":"Base64-encoded raw media data","isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX].inlineData.data","typeLabel":"string\u003cbyte>"}},"required":["mimeType","data"],"isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX].inlineData","typeLabel":"object"}},"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.parts","typeLabel":"object[]"},"id":{"type":"string","description":"The call ID of the corresponding `FunctionCall` (some docs / SDKs call it `call_id`). **Must be echoed back for Gemini 3.x**, used together with `name` for pairing, otherwise the request errors.","example":"fc-abc123","uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse","typeLabel":"object"}},"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4","typeLabel":"Function Response · object"},{"type":"object","title":"Generated Code","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["executableCode"],"properties":{"executableCode":{"type":"object","required":["language","code"],"properties":{"language":{"type":"string","description":"Code language","example":"python","isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.5.executableCode.language","typeLabel":"string"},"code":{"type":"string","description":"Generated code","isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.5.executableCode.code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.5.executableCode","typeLabel":"object"}},"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.5","typeLabel":"Generated Code · object"},{"type":"object","title":"Code Execution Result","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["codeExecutionResult"],"properties":{"codeExecutionResult":{"type":"object","required":["outcome"],"properties":{"outcome":{"type":"string","description":"Code execution result","enum":["OUTCOME_UNSPECIFIED","OUTCOME_OK","OUTCOME_FAILED","OUTCOME_DEADLINE_EXCEEDED"],"example":"OUTCOME_OK","isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.6.codeExecutionResult.outcome","typeLabel":"enum\u003cstring>"},"output":{"type":"string","description":"Standard output, error output, or other description","uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.6.codeExecutionResult.output","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.6.codeExecutionResult","typeLabel":"object"}},"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.6","typeLabel":"Code Execution Result · object"}],"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts.items.[INDEX]","typeLabel":"Text Input · object | Multimodal Input · object | Inline Data · object | Function Call · object | Function Response · object | Generated Code · object | Code Execution Result · object"},"uniqueKey":"oneOf.0.candidates.items.[INDEX].content.parts","typeLabel":"(Text Input · object | Multimodal Input · object | Inline Data · object | Function Call · object | Function Response · object | Generated Code · object | Code Execution Result · object)[]"}},"uniqueKey":"oneOf.0.candidates.items.[INDEX].content","typeLabel":"object"},"finishReason":{"type":"string","description":"Finish reason\n\n- `CONTINUATION`: `gemini-4-argon` only. The per-request cap was reached with cumulative budget remaining; resend the token with the original settings unchanged.\n- `MAX_TOKENS`: the cumulative output budget is exhausted. `gemini-4-argon` may also return a continuation token; manually raise `maxOutputTokens` before resuming.\n\nSee [Native API reference](/en/api-manual/language-series/gemini/native-api/native-api-reference), under “Long-output continuation”.","enum":["FINISH_REASON_UNSPECIFIED","STOP","CONTINUATION","MAX_TOKENS","SAFETY","RECITATION","LANGUAGE","OTHER","BLOCKLIST","PROHIBITED_CONTENT","SPII","MALFORMED_FUNCTION_CALL","IMAGE_SAFETY","IMAGE_PROHIBITED_CONTENT","IMAGE_OTHER","NO_IMAGE","IMAGE_RECITATION","UNEXPECTED_TOOL_CALL","TOO_MANY_TOOL_CALLS","MISSING_THOUGHT_SIGNATURE"],"example":"STOP","uniqueKey":"oneOf.0.candidates.items.[INDEX].finishReason","typeLabel":"enum\u003cstring>"},"continuationToken":{"type":"string","description":"Long-output continuation token (`gemini-4-argon` only). For `CONTINUATION`, resend the original request with the latest token and unchanged generation settings. `MAX_TOKENS` may also return a token; manually raise the cumulative `maxOutputTokens` to resume.\n\nSee [Native API reference](/en/api-manual/language-series/gemini/native-api/native-api-reference), under “Long-output continuation”.","uniqueKey":"oneOf.0.candidates.items.[INDEX].continuationToken","typeLabel":"string"},"index":{"type":"integer","description":"Candidate index","example":0,"uniqueKey":"oneOf.0.candidates.items.[INDEX].index","typeLabel":"integer"},"safetyRatings":{"oneOf":[{"type":"array","description":"Safety ratings","items":{"type":"object","uniqueKey":"oneOf.0.candidates.items.[INDEX].safetyRatings.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.candidates.items.[INDEX].safetyRatings.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Safety ratings","items":{"type":"object"},"uniqueKey":"oneOf.0.candidates.items.[INDEX].safetyRatings.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.candidates.items.[INDEX].safetyRatings","typeLabel":"object[] | null"}},"uniqueKey":"oneOf.0.candidates.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.candidates","typeLabel":"object[]"},"promptFeedback":{"type":"object","properties":{"safetyRatings":{"oneOf":[{"type":"array","description":"Prompt safety ratings","items":{"type":"object","uniqueKey":"oneOf.0.promptFeedback.safetyRatings.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.promptFeedback.safetyRatings.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Prompt safety ratings","items":{"type":"object"},"uniqueKey":"oneOf.0.promptFeedback.safetyRatings.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.promptFeedback.safetyRatings","typeLabel":"object[] | null"}},"uniqueKey":"oneOf.0.promptFeedback","typeLabel":"object"},"usageMetadata":{"type":"object","description":"Usage statistics","properties":{"promptTokenCount":{"type":"integer","description":"Number of tokens in input content","example":4,"uniqueKey":"oneOf.0.usageMetadata.promptTokenCount","typeLabel":"integer"},"candidatesTokenCount":{"type":"integer","description":"Number of tokens in output content","example":611,"uniqueKey":"oneOf.0.usageMetadata.candidatesTokenCount","typeLabel":"integer"},"totalTokenCount":{"type":"integer","description":"Total number of tokens","example":2422,"uniqueKey":"oneOf.0.usageMetadata.totalTokenCount","typeLabel":"integer"},"thoughtsTokenCount":{"type":"integer","description":"Number of reasoning tokens","example":1807,"uniqueKey":"oneOf.0.usageMetadata.thoughtsTokenCount","typeLabel":"integer"},"promptTokensDetails":{"type":"array","description":"Detailed input token information (by modality)","items":{"type":"object","description":"Token details (statistics by modality)","properties":{"modality":{"type":"string","description":"Content modality type","enum":["MODALITY_UNSPECIFIED","TEXT","IMAGE","AUDIO","VIDEO","DOCUMENT"],"example":"TEXT","uniqueKey":"oneOf.0.usageMetadata.promptTokensDetails.items.[INDEX].modality","typeLabel":"enum\u003cstring>"},"tokenCount":{"type":"integer","description":"Number of tokens for this modality","example":4,"uniqueKey":"oneOf.0.usageMetadata.promptTokensDetails.items.[INDEX].tokenCount","typeLabel":"integer"}},"uniqueKey":"oneOf.0.usageMetadata.promptTokensDetails.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.usageMetadata.promptTokensDetails","typeLabel":"object[]"},"cachedContentTokenCount":{"type":"integer","description":"Number of cached content tokens","example":0,"uniqueKey":"oneOf.0.usageMetadata.cachedContentTokenCount","typeLabel":"integer"}},"uniqueKey":"oneOf.0.usageMetadata","typeLabel":"object"},"modelVersion":{"type":"string","description":"Model version","example":"gemini-3.6-flash","uniqueKey":"oneOf.0.modelVersion","typeLabel":"string"},"responseId":{"type":"string","description":"Response ID","example":"l-LoaPu0BPmo1dkP6ZPHiQc","uniqueKey":"oneOf.0.responseId","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"Sync Response · object"},{"type":"object","title":"Stream Response","description":"Stream response chunk\n\n**Intermediate chunk**:\n```json\n{\n \"candidates\": [\n {\n \"content\": {\n \"role\": \"model\",\n \"parts\": [{ \"text\": \"Partial text...\" }]\n }\n }\n ],\n \"usageMetadata\": {\n \"trafficType\": \"ON_DEMAND\"\n },\n \"modelVersion\": \"gemini-3.6-flash\",\n \"createTime\": \"2025-10-10T10:40:23.072315Z\",\n \"responseId\": \"xxx\"\n}\n```\n\n**Last chunk**:\n```json\n{\n \"candidates\": [\n {\n \"content\": {\n \"role\": \"model\",\n \"parts\": [{ \"text\": \"Final text fragment\" }]\n },\n \"finishReason\": \"STOP\"\n }\n ],\n \"usageMetadata\": {\n \"promptTokenCount\": 4,\n \"candidatesTokenCount\": 522,\n \"totalTokenCount\": 2191,\n \"trafficType\": \"ON_DEMAND\"\n },\n \"modelVersion\": \"gemini-3.6-flash\",\n \"createTime\": \"2025-10-10T10:40:23.072315Z\",\n \"responseId\": \"xxx\"\n}\n```","properties":{"candidates":{"type":"array","description":"List of candidate responses (streaming mode does not include index and safetyRatings)","items":{"type":"object","description":"Stream response candidate (more simplified than regular response)","properties":{"content":{"type":"object","properties":{"role":{"type":"string","description":"Response role","enum":["model"],"example":"model","uniqueKey":"oneOf.1.candidates.items.[INDEX].content.role","typeLabel":"enum\u003cstring>"},"parts":{"type":"array","description":"Response content parts, supports text, inline data, function calls, function responses, and code execution results","items":{"oneOf":[{"type":"object","title":"Text Input","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["text"],"properties":{"text":{"type":"string","description":"Text content","example":"Hello! I'm pleased to introduce myself.\n\nI'm a large language model, trained and developed by Google...","isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.0.text","typeLabel":"string"},"thought":{"type":"boolean","description":"Whether this is thought content","uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.0.thought","typeLabel":"boolean"},"thoughtSignature":{"type":"string","description":"Thought signature, must be echoed back in the next turn","example":"\u003cSignature_A>","uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.0.thoughtSignature","typeLabel":"string"}},"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.0","typeLabel":"Text Input · object"},{"type":"object","title":"Multimodal Input","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["fileData"],"properties":{"fileData":{"type":"object","required":["mimeType","fileUri"],"properties":{"mimeType":{"type":"string","description":"File MIME type\n\n**Supported types**:\n\n**Image**:\n- `image/jpeg`, `image/png`\n- Maximum size per image: 10 MB\n\n**Audio**:\n- `audio/mp3`\n- Maximum size per file: 10 MB\n- Recommended duration: no more than 10 minutes\n\n**Video**:\n- `video/mp4`\n- Maximum size per file: 50 MB\n- Recommended duration: no more than 180 seconds\n\n**Document**:\n- `application/pdf`\n- Maximum size per file: 20 MB","example":"audio/mp3","isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.1.fileData.mimeType","typeLabel":"string"},"fileUri":{"type":"string","format":"uri","description":"File URI address\n\n**Requirements**:\n- Must be a publicly accessible URL\n- URL should end with file extension (e.g., .mp3, .jpg) and should match the mimeType parameter","example":"https://example.com/audio.mp3","isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.1.fileData.fileUri","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.1.fileData","typeLabel":"object"}},"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.1","typeLabel":"Multimodal Input · object"},{"type":"object","title":"Inline Data","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["inlineData"],"properties":{"inlineData":{"type":"object","properties":{"mimeType":{"type":"string","description":"IANA MIME type","example":"image/png","isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.2.inlineData.mimeType","typeLabel":"string"},"data":{"type":"string","format":"byte","description":"Base64-encoded raw media data","isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.2.inlineData.data","typeLabel":"string\u003cbyte>"}},"required":["mimeType","data"],"isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.2.inlineData","typeLabel":"object"},"thought":{"type":"boolean","description":"Whether this is thought content","uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.2.thought","typeLabel":"boolean"},"thoughtSignature":{"type":"string","description":"Thought signature, must be echoed back in the next turn","example":"\u003cSignature_A>","uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.2.thoughtSignature","typeLabel":"string"}},"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.2","typeLabel":"Inline Data · object"},{"type":"object","title":"Function Call","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["functionCall"],"properties":{"functionCall":{"type":"object","required":["name","args"],"properties":{"name":{"type":"string","description":"Function name","example":"get_weather","isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.3.functionCall.name","typeLabel":"string"},"args":{"type":"object","description":"Function arguments","isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.3.functionCall.args","typeLabel":"object"},"id":{"type":"string","description":"Call ID. Generated by the model for Gemini 3.x, used to pair up parallel function calls.","example":"fc-abc123","uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.3.functionCall.id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.3.functionCall","typeLabel":"object"},"thought":{"type":"boolean","description":"Whether this is thought content","uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.3.thought","typeLabel":"boolean"},"thoughtSignature":{"type":"string","description":"Thought signature, must be echoed back in the next turn","example":"\u003cSignature_A>","uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.3.thoughtSignature","typeLabel":"string"}},"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.3","typeLabel":"Function Call · object"},{"type":"object","title":"Function Response","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["functionResponse"],"properties":{"functionResponse":{"type":"object","required":["name","response"],"properties":{"name":{"type":"string","description":"Function name","example":"get_weather","isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.name","typeLabel":"string"},"response":{"type":"object","description":"Function response payload","isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.response","typeLabel":"object"},"parts":{"type":"array","description":"Optional multimodal response parts","items":{"type":"object","required":["inlineData"],"properties":{"inlineData":{"type":"object","properties":{"mimeType":{"type":"string","description":"IANA MIME type","example":"image/png","isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX].inlineData.mimeType","typeLabel":"string"},"data":{"type":"string","format":"byte","description":"Base64-encoded raw media data","isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX].inlineData.data","typeLabel":"string\u003cbyte>"}},"required":["mimeType","data"],"isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX].inlineData","typeLabel":"object"}},"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.parts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.parts","typeLabel":"object[]"},"id":{"type":"string","description":"The call ID of the corresponding `FunctionCall` (some docs / SDKs call it `call_id`). **Must be echoed back for Gemini 3.x**, used together with `name` for pairing, otherwise the request errors.","example":"fc-abc123","uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse.id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4.functionResponse","typeLabel":"object"}},"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.4","typeLabel":"Function Response · object"},{"type":"object","title":"Generated Code","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["executableCode"],"properties":{"executableCode":{"type":"object","required":["language","code"],"properties":{"language":{"type":"string","description":"Code language","example":"python","isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.5.executableCode.language","typeLabel":"string"},"code":{"type":"string","description":"Generated code","isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.5.executableCode.code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.5.executableCode","typeLabel":"object"}},"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.5","typeLabel":"Generated Code · object"},{"type":"object","title":"Code Execution Result","description":"Content part union type. The thoughtSignature returned by thinking models must be echoed back in the next turn.","required":["codeExecutionResult"],"properties":{"codeExecutionResult":{"type":"object","required":["outcome"],"properties":{"outcome":{"type":"string","description":"Code execution result","enum":["OUTCOME_UNSPECIFIED","OUTCOME_OK","OUTCOME_FAILED","OUTCOME_DEADLINE_EXCEEDED"],"example":"OUTCOME_OK","isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.6.codeExecutionResult.outcome","typeLabel":"enum\u003cstring>"},"output":{"type":"string","description":"Standard output, error output, or other description","uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.6.codeExecutionResult.output","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.6.codeExecutionResult","typeLabel":"object"}},"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX].oneOf.6","typeLabel":"Code Execution Result · object"}],"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts.items.[INDEX]","typeLabel":"Text Input · object | Multimodal Input · object | Inline Data · object | Function Call · object | Function Response · object | Generated Code · object | Code Execution Result · object"},"uniqueKey":"oneOf.1.candidates.items.[INDEX].content.parts","typeLabel":"(Text Input · object | Multimodal Input · object | Inline Data · object | Function Call · object | Function Response · object | Generated Code · object | Code Execution Result · object)[]"}},"uniqueKey":"oneOf.1.candidates.items.[INDEX].content","typeLabel":"object"},"finishReason":{"type":"string","description":"Finish reason (included in the final chunk at completion)\n\n- `CONTINUATION`: `gemini-4-argon` only. The per-request cap was reached with cumulative budget remaining; resend the token with the original settings unchanged.\n- `MAX_TOKENS`: the cumulative output budget is exhausted. `gemini-4-argon` may also return a continuation token; manually raise `maxOutputTokens` before resuming.\n\nSee [Native API reference](/en/api-manual/language-series/gemini/native-api/native-api-reference), under “Long-output continuation”.","enum":["FINISH_REASON_UNSPECIFIED","STOP","CONTINUATION","MAX_TOKENS","SAFETY","RECITATION","LANGUAGE","OTHER","BLOCKLIST","PROHIBITED_CONTENT","SPII","MALFORMED_FUNCTION_CALL","IMAGE_SAFETY","IMAGE_PROHIBITED_CONTENT","IMAGE_OTHER","NO_IMAGE","IMAGE_RECITATION","UNEXPECTED_TOOL_CALL","TOO_MANY_TOOL_CALLS","MISSING_THOUGHT_SIGNATURE"],"example":"STOP","uniqueKey":"oneOf.1.candidates.items.[INDEX].finishReason","typeLabel":"enum\u003cstring>"},"continuationToken":{"type":"string","description":"Long-output continuation token (`gemini-4-argon` only). For `CONTINUATION`, resend the original request with the latest token and unchanged generation settings. `MAX_TOKENS` may also return a token; manually raise the cumulative `maxOutputTokens` to resume.\n\nSee [Native API reference](/en/api-manual/language-series/gemini/native-api/native-api-reference), under “Long-output continuation”. At completion, read the latest token from the final chunk containing `finishReason`.","uniqueKey":"oneOf.1.candidates.items.[INDEX].continuationToken","typeLabel":"string"}},"uniqueKey":"oneOf.1.candidates.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.candidates","typeLabel":"object[]"},"usageMetadata":{"type":"object","description":"Usage statistics (intermediate chunks only have trafficType, last chunk contains complete statistics)","properties":{"promptTokenCount":{"type":"integer","description":"Number of tokens in input content (last chunk only)","example":4,"uniqueKey":"oneOf.1.usageMetadata.promptTokenCount","typeLabel":"integer"},"candidatesTokenCount":{"type":"integer","description":"Number of tokens in output content (last chunk only)","example":522,"uniqueKey":"oneOf.1.usageMetadata.candidatesTokenCount","typeLabel":"integer"},"totalTokenCount":{"type":"integer","description":"Total number of tokens (last chunk only)","example":2191,"uniqueKey":"oneOf.1.usageMetadata.totalTokenCount","typeLabel":"integer"},"trafficType":{"type":"string","description":"Traffic type","example":"ON_DEMAND","uniqueKey":"oneOf.1.usageMetadata.trafficType","typeLabel":"string"},"cachedContentTokenCount":{"type":"integer","description":"Number of cached content tokens (last chunk only)","example":0,"uniqueKey":"oneOf.1.usageMetadata.cachedContentTokenCount","typeLabel":"integer"}},"uniqueKey":"oneOf.1.usageMetadata","typeLabel":"object"},"modelVersion":{"type":"string","description":"Model version","example":"gemini-3.6-flash","uniqueKey":"oneOf.1.modelVersion","typeLabel":"string"},"createTime":{"type":"string","format":"date-time","description":"Creation time","example":"2025-10-10T10:40:23.072315Z","uniqueKey":"oneOf.1.createTime","typeLabel":"string\u003cdate-time>"},"responseId":{"type":"string","description":"Response ID","example":"l-LoaPu0BPmo1dkP6ZPHiQc","uniqueKey":"oneOf.1.responseId","typeLabel":"string"}},"uniqueKey":"oneOf.1","typeLabel":"Stream Response · object"}],"uniqueKey":"","typeLabel":"Sync Response · object | Stream Response · object"},"examples":{"Example":{"title":"Example","value":{"candidates":[{"content":{"role":"model","parts":[{"text":"Hello! I'm pleased to introduce myself.\n\nI'm a large language model, trained and developed by Google...","thought":true,"thoughtSignature":"\u003cSignature_A>"}]},"finishReason":"STOP","continuationToken":"\u003cstring>","index":0,"safetyRatings":[{}]}],"promptFeedback":{"safetyRatings":[{}]},"usageMetadata":{"promptTokenCount":4,"candidatesTokenCount":611,"totalTokenCount":2422,"thoughtsTokenCount":1807,"promptTokensDetails":[{"modality":"TEXT","tokenCount":4}],"cachedContentTokenCount":0},"modelVersion":"gemini-3.6-flash","responseId":"l-LoaPu0BPmo1dkP6ZPHiQc"}}},"exampleType":"generated"}},"exampleType":"generated"},"f593a6ba-0a9c-45a4-88a9-237def0698f8":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status error code","uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Error description","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error type","uniqueKey":"error.type","typeLabel":"string"},"fallback_suggestion":{"type":"string","description":"Suggestion when error occurs","uniqueKey":"error.fallback_suggestion","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":400,"message":"Invalid request parameters","type":"invalid_request_error"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":400,"message":"Invalid request parameters","type":"invalid_request_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"aa05e057-3691-4ec9-980b-0234ae4275fe":{"description":"Unauthorized, invalid or expired token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status error code","uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Error description","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error type","uniqueKey":"error.type","typeLabel":"string"},"fallback_suggestion":{"type":"string","description":"Suggestion when error occurs","uniqueKey":"error.fallback_suggestion","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":401,"message":"Invalid or expired token","type":"authentication_error"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":401,"message":"Invalid or expired token","type":"authentication_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"0e48d659-6460-48f0-9437-4a24b05bbf07":{"description":"Insufficient quota, recharge required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status error code","uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Error description","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error type","uniqueKey":"error.type","typeLabel":"string"},"fallback_suggestion":{"type":"string","description":"Suggestion when error occurs","uniqueKey":"error.fallback_suggestion","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":402,"message":"Insufficient quota","type":"insufficient_quota_error","fallback_suggestion":"https://evolink.ai/dashboard/credits"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":402,"message":"Insufficient quota","type":"insufficient_quota_error","fallback_suggestion":"https://evolink.ai/dashboard/credits"}}}},"exampleType":"examples"}},"exampleType":"examples"},"b7ab7f6b-3415-41b8-b5c3-0637b1bbb717":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status error code","uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Error description","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error type","uniqueKey":"error.type","typeLabel":"string"},"fallback_suggestion":{"type":"string","description":"Suggestion when error occurs","uniqueKey":"error.fallback_suggestion","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":403,"message":"Access denied for this model","type":"permission_error"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":403,"message":"Access denied for this model","type":"permission_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"8fd3c7c4-0ef2-44b0-b14c-eced6f30ca08":{"description":"Resource not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status error code","uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Error description","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error type","uniqueKey":"error.type","typeLabel":"string"},"fallback_suggestion":{"type":"string","description":"Suggestion when error occurs","uniqueKey":"error.fallback_suggestion","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":404,"message":"Model not found","type":"not_found_error"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":404,"message":"Model not found","type":"not_found_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"816dedb5-1540-4598-a255-f28d67fbad7c":{"description":"Request body too large, file too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status error code","uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Error description","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error type","uniqueKey":"error.type","typeLabel":"string"},"fallback_suggestion":{"type":"string","description":"Suggestion when error occurs","uniqueKey":"error.fallback_suggestion","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":413,"message":"Request body too large","type":"request_too_large_error","fallback_suggestion":"reduce file size"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":413,"message":"Request body too large","type":"request_too_large_error","fallback_suggestion":"reduce file size"}}}},"exampleType":"examples"}},"exampleType":"examples"},"58c1a76e-5d97-4a12-a8da-f8f7efd31cee":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status error code","uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Error description","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error type","uniqueKey":"error.type","typeLabel":"string"},"fallback_suggestion":{"type":"string","description":"Suggestion when error occurs","uniqueKey":"error.fallback_suggestion","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":429,"message":"Rate limit exceeded","type":"rate_limit_error","fallback_suggestion":"retry after 60 seconds"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":429,"message":"Rate limit exceeded","type":"rate_limit_error","fallback_suggestion":"retry after 60 seconds"}}}},"exampleType":"examples"}},"exampleType":"examples"},"5b315c9f-6918-41a9-94f1-01cd783719f3":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status error code","uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Error description","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error type","uniqueKey":"error.type","typeLabel":"string"},"fallback_suggestion":{"type":"string","description":"Suggestion when error occurs","uniqueKey":"error.fallback_suggestion","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":500,"message":"Internal server error","type":"internal_server_error","fallback_suggestion":"try again later"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":500,"message":"Internal server error","type":"internal_server_error","fallback_suggestion":"try again later"}}}},"exampleType":"examples"}},"exampleType":"examples"},"d63b5484-d74c-448c-a3db-ca674845d376":{"description":"Upstream service error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status error code","uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Error description","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error type","uniqueKey":"error.type","typeLabel":"string"},"fallback_suggestion":{"type":"string","description":"Suggestion when error occurs","uniqueKey":"error.fallback_suggestion","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":502,"message":"Upstream AI service unavailable","type":"upstream_error","fallback_suggestion":"try again later"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":502,"message":"Upstream AI service unavailable","type":"upstream_error","fallback_suggestion":"try again later"}}}},"exampleType":"examples"}},"exampleType":"examples"},"b0f420a9-bd83-4de6-9db9-c5140891772d":{"description":"Service temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status error code","uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Error description","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error type","uniqueKey":"error.type","typeLabel":"string"},"fallback_suggestion":{"type":"string","description":"Suggestion when error occurs","uniqueKey":"error.fallback_suggestion","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":503,"message":"Service temporarily unavailable","type":"service_unavailable_error","fallback_suggestion":"retry after 30 seconds"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":503,"message":"Service temporarily unavailable","type":"service_unavailable_error","fallback_suggestion":"retry after 30 seconds"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"a4559cd0-e3d1-41f9-ab0c-7c41708b108f":{"bearerAuth":{"type":"http","scheme":"bearer","description":"##All APIs require Bearer Token authentication##\n\n**Get API Key:**\n\nVisit [API Key Management Page](https://evolink.ai/dashboard/keys) to get your API Key\n\n**Add to request header:**\n```\nAuthorization: Bearer YOUR_API_KEY\n```","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"11940688-df12-4299-b044-36d5af7d9f0e":{"url":"https://direct.evolink.ai","description":"Production (recommended)"},"70f5d1ef-1569-402b-bf6a-7447bbaf1d9f":{"url":"https://api.evolink.ai","description":"Alternative URL"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"##All APIs require Bearer Token authentication##\n\n**Get API Key:**\n\nVisit [API Key Management Page](https://evolink.ai/dashboard/keys) to get your API Key\n\n**Add to request header:**\n```\nAuthorization: Bearer YOUR_API_KEY\n```","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"##All APIs require Bearer Token authentication##\n\n**Get API Key:**\n\nVisit [API Key Management Page](https://evolink.ai/dashboard/keys) to get your API Key\n\n**Add to request header:**\n```\nAuthorization: Bearer YOUR_API_KEY\n```","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"en/api-manual/language-series/gemini/native-api/native-api-reference.json"},"subdomain":"muyutechnology","siteName":"EvoLink.AI","title":"Gemini All-Model API - Native API Format - EvoLink.AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-manual/language-series/gemini/native-api/native-api-reference","matchLevel":0},"cn":{"href":"/cn/api-manual/language-series/gemini/native-api/native-api-reference","matchLevel":1},"de":{"href":"/de/api-manual/language-series/gemini/native-api/native-api-reference","matchLevel":1},"fr":{"href":"/fr/api-manual/language-series/gemini/native-api/native-api-reference","matchLevel":1},"ja":{"href":"/ja/api-manual/language-series/gemini/native-api/native-api-reference","matchLevel":1},"ko":{"href":"/ko/api-manual/language-series/gemini/native-api/native-api-reference","matchLevel":1},"es":{"href":"/es/api-manual/language-series/gemini/native-api/native-api-reference","matchLevel":1}}},"lastModified":"2026-10-19T17:51:26.918Z","originalFileLocation":"en/api-manual/language-series/gemini/native-api/native-api-reference.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Select the Gemini text model to call via {model} in the path (see the reference table for the model parameter for all available values). - Uses the Google native API format and returns conversation content synchronously - Plain text / multimodal input: mixed text + image / audio / video input - Streaming: replace generateContent in the path with streamGenerateContent (append ?alt=sse to receive SSE) --- Model specs and differences - 3.8 behavior: compared with 3.7, it improves software engineering, agents, multi-step reasoning, and multimodal accuracy; it may consume more reasoning / output tokens, especially at high. Use low for latency-sensitive workloads, the default medium for general use, and high for complex code, long video, or multi-step reasoning. - Gemini 4 Argon behavior: thinking is controlled only through thinkingConfig.thinkingLevel, with low / medium / high available; when omitted, the model determines how much to think. minimal is not supported (returns 400; use low instead), and neither is thinkingBudget (returns 400). temperature / topP outside the valid range return 400. In multi-turn function calling, the thoughtSignature returned in the previous turn must be sent back unchanged, otherwise the request returns 400. Input supports text / images / audio / video / PDF. - Sampling parameters temperature / topP / topK: consistent across the entire Gemini 3.x series, custom values do not affect the output; topK is ignored and has no effect, and a temperature / topP value outside the valid range returns a 400. - Thinking control: the Gemini 3.x / 4 series uses thinkingConfig.thinkingLevel (see the thinkingLevel parameter for the levels supported and the default of each model); the Gemini 2.5 series uses thinkingConfig.thinkingBudget (an integer, 0=off). The two are mutually exclusive. gemini-3.8-flash / gemini-3.7-flash and the Pro models do not support minimal; a passed value is automatically downgraded to low. - Function calling: for Gemini 3.x, the FunctionResponse must echo back the id and name matching the corresponding FunctionCall, otherwise the request errors. - Last-turn role: the role of the last message must not be model (Gemini 3.5+ will error). - Token limits: gemini-3.8-flash / gemini-3.7-flash / gemini-3.6-flash / gemini-3.5-flash-lite have a 1,048,576-token context and a maximum output of 65,536. gemini-4-argon shares a 1,048,576-token context across input, thinking, and output; each streaming request returns up to 65,536 tokens, or 32,768 non-streaming, including thinking and the answer. Use continuation for longer output; cumulative thinking and answer tokens are limited to the context space remaining after input. See “Long-output continuation” on this page. Other models follow their own specifications. - Gemini 2.5 IDs: from 2026-10-19, gemini-2.5-pro / gemini-2.5-flash / gemini-2.5-flash-lite are served by gemini-3.8-flash / gemini-3.5-flash-lite / gemini-3.1-flash-lite-preview and billed at their rates; responses show the new model ID, and parameter behavior follows the new model. thinkingBudget is converted to a level (see the thinkingBudget parameter).\">\u003cmeta data-mint-head name=\"application-name\" content=\"EvoLink.AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/muyutechnology/RO4YTG-S6-bMUrDF/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/muyutechnology/RO4YTG-S6-bMUrDF/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/muyutechnology/RO4YTG-S6-bMUrDF/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/muyutechnology/RO4YTG-S6-bMUrDF/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/muyutechnology/RO4YTG-S6-bMUrDF/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/muyutechnology/RO4YTG-S6-bMUrDF/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/muyutechnology/RO4YTG-S6-bMUrDF/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/muyutechnology/RO4YTG-S6-bMUrDF/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/muyutechnology/RO4YTG-S6-bMUrDF/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Gemini All-Model API - Native API Format - EvoLink.AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Select the Gemini text model to call via {model} in the path (see the reference table for the model parameter for all available values). - Uses the Google native API format and returns conversation content synchronously - Plain text / multimodal input: mixed text + image / audio / video input - Streaming: replace generateContent in the path with streamGenerateContent (append ?alt=sse to receive SSE) --- Model specs and differences - 3.8 behavior: compared with 3.7, it improves software engineering, agents, multi-step reasoning, and multimodal accuracy; it may consume more reasoning / output tokens, especially at high. Use low for latency-sensitive workloads, the default medium for general use, and high for complex code, long video, or multi-step reasoning. - Gemini 4 Argon behavior: thinking is controlled only through thinkingConfig.thinkingLevel, with low / medium / high available; when omitted, the model determines how much to think. minimal is not supported (returns 400; use low instead), and neither is thinkingBudget (returns 400). temperature / topP outside the valid range return 400. In multi-turn function calling, the thoughtSignature returned in the previous turn must be sent back unchanged, otherwise the request returns 400. Input supports text / images / audio / video / PDF. - Sampling parameters temperature / topP / topK: consistent across the entire Gemini 3.x series, custom values do not affect the output; topK is ignored and has no effect, and a temperature / topP value outside the valid range returns a 400. - Thinking control: the Gemini 3.x / 4 series uses thinkingConfig.thinkingLevel (see the thinkingLevel parameter for the levels supported and the default of each model); the Gemini 2.5 series uses thinkingConfig.thinkingBudget (an integer, 0=off). The two are mutually exclusive. gemini-3.8-flash / gemini-3.7-flash and the Pro models do not support minimal; a passed value is automatically downgraded to low. - Function calling: for Gemini 3.x, the FunctionResponse must echo back the id and name matching the corresponding FunctionCall, otherwise the request errors. - Last-turn role: the role of the last message must not be model (Gemini 3.5+ will error). - Token limits: gemini-3.8-flash / gemini-3.7-flash / gemini-3.6-flash / gemini-3.5-flash-lite have a 1,048,576-token context and a maximum output of 65,536. gemini-4-argon shares a 1,048,576-token context across input, thinking, and output; each streaming request returns up to 65,536 tokens, or 32,768 non-streaming, including thinking and the answer. Use continuation for longer output; cumulative thinking and answer tokens are limited to the context space remaining after input. See “Long-output continuation” on this page. Other models follow their own specifications. - Gemini 2.5 IDs: from 2026-10-19, gemini-2.5-pro / gemini-2.5-flash / gemini-2.5-flash-lite are served by gemini-3.8-flash / gemini-3.5-flash-lite / gemini-3.1-flash-lite-preview and billed at their rates; responses show the new model ID, and parameter behavior follows the new model. thinkingBudget is converted to a level (see the thinkingBudget parameter).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"EvoLink.AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://evolink.ai/docs/en/api-manual/language-series/gemini/native-api/native-api-reference\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://muyutechnology.mintlify.site/docs/_mintlify/api/og/v2?division=Google+Native+API+Format\u0026amp;title=Gemini+All-Model+API+-+Native+API+Format\u0026amp;description=Select+the+Gemini+text+model+to+call+via+%60%7Bmodel%7D%60+in+the+path+%28see+the+reference+table+for+the+%60model%60+parameter+for+all+available+values%29.%0A%0A-+Uses+the+Google+\u0026amp;theme=e97068858027b87e90c044ce\u0026amp;signature=b609c014114f9bcc151b6607a428ef6ccee64ee3741b03838f23878087b2f65c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Gemini All-Model API - Native API Format - EvoLink.AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Select the Gemini text model to call via {model} in the path (see the reference table for the model parameter for all available values). - Uses the Google native API format and returns conversation content synchronously - Plain text / multimodal input: mixed text + image / audio / video input - Streaming: replace generateContent in the path with streamGenerateContent (append ?alt=sse to receive SSE) --- Model specs and differences - 3.8 behavior: compared with 3.7, it improves software engineering, agents, multi-step reasoning, and multimodal accuracy; it may consume more reasoning / output tokens, especially at high. Use low for latency-sensitive workloads, the default medium for general use, and high for complex code, long video, or multi-step reasoning. - Gemini 4 Argon behavior: thinking is controlled only through thinkingConfig.thinkingLevel, with low / medium / high available; when omitted, the model determines how much to think. minimal is not supported (returns 400; use low instead), and neither is thinkingBudget (returns 400). temperature / topP outside the valid range return 400. In multi-turn function calling, the thoughtSignature returned in the previous turn must be sent back unchanged, otherwise the request returns 400. Input supports text / images / audio / video / PDF. - Sampling parameters temperature / topP / topK: consistent across the entire Gemini 3.x series, custom values do not affect the output; topK is ignored and has no effect, and a temperature / topP value outside the valid range returns a 400. - Thinking control: the Gemini 3.x / 4 series uses thinkingConfig.thinkingLevel (see the thinkingLevel parameter for the levels supported and the default of each model); the Gemini 2.5 series uses thinkingConfig.thinkingBudget (an integer, 0=off). The two are mutually exclusive. gemini-3.8-flash / gemini-3.7-flash and the Pro models do not support minimal; a passed value is automatically downgraded to low. - Function calling: for Gemini 3.x, the FunctionResponse must echo back the id and name matching the corresponding FunctionCall, otherwise the request errors. - Last-turn role: the role of the last message must not be model (Gemini 3.5+ will error). - Token limits: gemini-3.8-flash / gemini-3.7-flash / gemini-3.6-flash / gemini-3.5-flash-lite have a 1,048,576-token context and a maximum output of 65,536. gemini-4-argon shares a 1,048,576-token context across input, thinking, and output; each streaming request returns up to 65,536 tokens, or 32,768 non-streaming, including thinking and the answer. Use continuation for longer output; cumulative thinking and answer tokens are limited to the context space remaining after input. See “Long-output continuation” on this page. Other models follow their own specifications. - Gemini 2.5 IDs: from 2026-10-19, gemini-2.5-pro / gemini-2.5-flash / gemini-2.5-flash-lite are served by gemini-3.8-flash / gemini-3.5-flash-lite / gemini-3.1-flash-lite-preview and billed at their rates; responses show the new model ID, and parameter behavior follows the new model. thinkingBudget is converted to a level (see the thinkingBudget parameter).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://muyutechnology.mintlify.site/docs/_mintlify/api/og/v2?division=Google+Native+API+Format\u0026amp;title=Gemini+All-Model+API+-+Native+API+Format\u0026amp;description=Select+the+Gemini+text+model+to+call+via+%60%7Bmodel%7D%60+in+the+path+%28see+the+reference+table+for+the+%60model%60+parameter+for+all+available+values%29.%0A%0A-+Uses+the+Google+\u0026amp;theme=e97068858027b87e90c044ce\u0026amp;signature=b609c014114f9bcc151b6607a428ef6ccee64ee3741b03838f23878087b2f65c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/muyutechnology/RO4YTG-S6-bMUrDF/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"EvoLink.AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1E90FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://evolink.ai/docs/en/api-manual/language-series/gemini/native-api/native-api-reference\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/en/api-manual/language-series/gemini/native-api/native-api-reference.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://evolink.ai/docs/en/api-manual/language-series/gemini/native-api/native-api-reference\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://evolink.ai/docs/cn/api-manual/language-series/gemini/native-api/native-api-reference\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://evolink.ai/docs/de/api-manual/language-series/gemini/native-api/native-api-reference\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://evolink.ai/docs/fr/api-manual/language-series/gemini/native-api/native-api-reference\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://evolink.ai/docs/ja/api-manual/language-series/gemini/native-api/native-api-reference\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://evolink.ai/docs/ko/api-manual/language-series/gemini/native-api/native-api-reference\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://evolink.ai/docs/es/api-manual/language-series/gemini/native-api/native-api-reference\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://evolink.ai/docs/en/api-manual/language-series/gemini/native-api/native-api-reference\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://evolink.ai/#organization\",\"name\":\"EvoLink.AI\",\"url\":\"https://evolink.ai\"},{\"@type\":\"WebSite\",\"@id\":\"https://evolink.ai/docs#website\",\"name\":\"EvoLink.AI\",\"url\":\"https://evolink.ai/docs\",\"publisher\":{\"@id\":\"https://evolink.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://evolink.ai/docs/en/api-manual/language-series/gemini/native-api/native-api-reference#webpage\",\"url\":\"https://evolink.ai/docs/en/api-manual/language-series/gemini/native-api/native-api-reference\",\"name\":\"Gemini All-Model API - Native API Format\",\"description\":\"Select the Gemini text model to call via {model} in the path (see the reference table for the model parameter for all available values). - Uses the Google native API format and returns conversation content synchronously - Plain text / multimodal input: mixed text + image / audio / video input - Streaming: replace generateContent in the path with streamGenerateContent (append ?alt=sse to receive SSE) --- Model specs and differences - 3.8 behavior: compared with 3.7, it improves software engineering, agents, multi-step reasoning, and multimodal accuracy; it may consume more reasoning / output tokens, especially at high. Use low for latency-sensitive workloads, the default medium for general use, and high for complex code, long video, or multi-step reasoning. - Gemini 4 Argon behavior: thinking is controlled only through thinkingConfig.thinkingLevel, with low / medium / high available; when omitted, the model determines how much to think. minimal is not supported (returns 400; use low instead), and neither is thinkingBudget (returns 400). temperature / topP outside the valid range return 400. In multi-turn function calling, the thoughtSignature returned in the previous turn must be sent back unchanged, otherwise the request returns 400. Input supports text / images / audio / video / PDF. - Sampling parameters temperature / topP / topK: consistent across the entire Gemini 3.x series, custom values do not affect the output; topK is ignored and has no effect, and a temperature / topP value outside the valid range returns a 400. - Thinking control: the Gemini 3.x / 4 series uses thinkingConfig.thinkingLevel (see the thinkingLevel parameter for the levels supported and the default of each model); the Gemini 2.5 series uses thinkingConfig.thinkingBudget (an integer, 0=off). The two are mutually exclusive. gemini-3.8-flash / gemini-3.7-flash and the Pro models do not support minimal; a passed value is automatically downgraded to low. - Function calling: for Gemini 3.x, the FunctionResponse must echo back the id and name matching the corresponding FunctionCall, otherwise the request errors. - Last-turn role: the role of the last message must not be model (Gemini 3.5+ will error). - Token limits: gemini-3.8-flash / gemini-3.7-flash / gemini-3.6-flash / gemini-3.5-flash-lite have a 1,048,576-token context and a maximum output of 65,536. gemini-4-argon shares a 1,048,576-token context across input, thinking, and output; each streaming request returns up to 65,536 tokens, or 32,768 non-streaming, including thinking and the answer. Use continuation for longer output; cumulative thinking and answer tokens are limited to the context space remaining after input. See “Long-output continuation” on this page. Other models follow their own specifications. - Gemini 2.5 IDs: from 2026-10-19, gemini-2.5-pro / gemini-2.5-flash / gemini-2.5-flash-lite are served by gemini-3.8-flash / gemini-3.5-flash-lite / gemini-3.1-flash-lite-preview and billed at their rates; responses show the new model ID, and parameter behavior follows the new model. thinkingBudget is converted to a level (see the thinkingBudget parameter).\",\"dateModified\":\"2026-10-19T17:51:26.918Z\",\"isPartOf\":{\"@id\":\"https://evolink.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://evolink.ai/docs/en/api-manual/language-series/gemini/native-api/native-api-reference#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://evolink.ai/docs/en/api-manual/language-series/gemini/native-api/native-api-reference#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Text Series\",\"item\":\"https://evolink.ai/docs/en/api-manual/language-series/evolink-auto/evolink-auto-quickstart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Gemini\",\"item\":\"https://evolink.ai/docs/en/api-manual/language-series/gemini/native-api/native-api-quickstart\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Google Native API Format\",\"item\":\"https://evolink.ai/docs/en/api-manual/language-series/gemini/native-api/native-api-quickstart\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Gemini All-Model API - Native API Format\",\"item\":\"https://evolink.ai/docs/en/api-manual/language-series/gemini/native-api/native-api-reference\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://evolink.ai/docs/en/api-manual/language-series/gemini/native-api/native-api-reference#apireference\",\"headline\":\"Gemini All-Model API - Native API Format\",\"name\":\"Gemini All-Model API - Native API Format\",\"description\":\"Select the Gemini text model to call via {model} in the path (see the reference table for the model parameter for all available values). - Uses the Google native API format and returns conversation content synchronously - Plain text / multimodal input: mixed text + image / audio / video input - Streaming: replace generateContent in the path with streamGenerateContent (append ?alt=sse to receive SSE) --- Model specs and differences - 3.8 behavior: compared with 3.7, it improves software engineering, agents, multi-step reasoning, and multimodal accuracy; it may consume more reasoning / output tokens, especially at high. Use low for latency-sensitive workloads, the default medium for general use, and high for complex code, long video, or multi-step reasoning. - Gemini 4 Argon behavior: thinking is controlled only through thinkingConfig.thinkingLevel, with low / medium / high available; when omitted, the model determines how much to think. minimal is not supported (returns 400; use low instead), and neither is thinkingBudget (returns 400). temperature / topP outside the valid range return 400. In multi-turn function calling, the thoughtSignature returned in the previous turn must be sent back unchanged, otherwise the request returns 400. Input supports text / images / audio / video / PDF. - Sampling parameters temperature / topP / topK: consistent across the entire Gemini 3.x series, custom values do not affect the output; topK is ignored and has no effect, and a temperature / topP value outside the valid range returns a 400. - Thinking control: the Gemini 3.x / 4 series uses thinkingConfig.thinkingLevel (see the thinkingLevel parameter for the levels supported and the default of each model); the Gemini 2.5 series uses thinkingConfig.thinkingBudget (an integer, 0=off). The two are mutually exclusive. gemini-3.8-flash / gemini-3.7-flash and the Pro models do not support minimal; a passed value is automatically downgraded to low. - Function calling: for Gemini 3.x, the FunctionResponse must echo back the id and name matching the corresponding FunctionCall, otherwise the request errors. - Last-turn role: the role of the last message must not be model (Gemini 3.5+ will error). - Token limits: gemini-3.8-flash / gemini-3.7-flash / gemini-3.6-flash / gemini-3.5-flash-lite have a 1,048,576-token context and a maximum output of 65,536. gemini-4-argon shares a 1,048,576-token context across input, thinking, and output; each streaming request returns up to 65,536 tokens, or 32,768 non-streaming, including thinking and the answer. Use continuation for longer output; cumulative thinking and answer tokens are limited to the context space remaining after input. See “Long-output continuation” on this page. Other models follow their own specifications. - Gemini 2.5 IDs: from 2026-10-19, gemini-2.5-pro / gemini-2.5-flash / gemini-2.5-flash-lite are served by gemini-3.8-flash / gemini-3.5-flash-lite / gemini-3.1-flash-lite-preview and billed at their rates; responses show the new model ID, and parameter behavior follows the new model. thinkingBudget is converted to a level (see the thinkingBudget parameter).\",\"url\":\"https://evolink.ai/docs/en/api-manual/language-series/gemini/native-api/native-api-reference\",\"mainEntityOfPage\":{\"@id\":\"https://evolink.ai/docs/en/api-manual/language-series/gemini/native-api/native-api-reference#webpage\"},\"dateModified\":\"2026-10-19T17:51:26.918Z\",\"publisher\":{\"@id\":\"https://evolink.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://evolink.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"EvoLink.AI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"EvoLink.AI","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"API Manual","groups":[{"group":"Image Series","pages":[{"group":"GPT Image","icon":"images","pages":[{"group":"GPT Image 2.6","icon":"images","pages":[{"title":"GPT Image 2.6 Image Generation","openapi":"en/api-manual/image-series/gpt-image-2.6/gpt-image-2.6-image-generation.json POST /v1/images/generations","href":"/en/api-manual/image-series/gpt-image-2.6/gpt-image-2.6-image-generation"}]},{"group":"GPT Image 2.5","icon":"images","pages":[{"title":"GPT Image 2.5 Image Generation","openapi":"en/api-manual/image-series/gpt-image-2.5/gpt-image-2.5-image-generation.json POST /v1/images/generations","href":"/en/api-manual/image-series/gpt-image-2.5/gpt-image-2.5-image-generation"}]},{"group":"GPT Image 2","icon":"images","pages":[{"title":"GPT Image 2 Image Generation","openapi":"en/api-manual/image-series/gpt-image-2/gpt-image-2-image-generation.json POST /v1/images/generations","href":"/en/api-manual/image-series/gpt-image-2/gpt-image-2-image-generation"},{"title":"GPT Image 2 Image Generation Beta","openapi":"en/api-manual/image-series/gpt-image-2/gpt-image-2-beta-image-generation.json POST /v1/images/generations","href":"/en/api-manual/image-series/gpt-image-2/gpt-image-2-beta-image-generation"}]},{"group":"GPT Image 1.5","icon":"images","pages":[{"title":"GPT Image 1.5 Image Generation","openapi":"en/api-manual/image-series/gpt-image-1.5/gpt-image-1.5-image-generation.json POST /v1/images/generations","href":"/en/api-manual/image-series/gpt-image-1.5/gpt-image-1.5-image-generation"}]}]},{"group":"Nanobanana","icon":"images","pages":[{"group":"Nanobanana 2.1","icon":"images","pages":[{"title":"Nanobanana 2.1 Image Generation","openapi":"en/api-manual/image-series/nanobanana/nanobanana-2.1/nanobanana-2.1-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/nanobanana/nanobanana-2.1/nanobanana-2.1-image-generate"}]},{"group":"Nanobanana 2 Lite","icon":"images","pages":[{"title":"Nanobanana 2 Lite Image Generation","openapi":"en/api-manual/image-series/nanobanana/nanobanana-2-lite/nanobanana-2-lite-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/nanobanana/nanobanana-2-lite/nanobanana-2-lite-image-generate"},{"title":"Nanobanana 2 Lite Beta Image Generation","openapi":"en/api-manual/image-series/nanobanana/nanobanana-2-lite/beta/nanobanana-2-lite-beta-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/nanobanana/nanobanana-2-lite/beta/nanobanana-2-lite-beta-image-generate"}]},{"group":"Nanobanana 2","icon":"images","pages":[{"title":"Nanobanana 2 Image Generation","openapi":"en/api-manual/image-series/nanobanana/nanobanana-2/nanobanana-2-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/nanobanana/nanobanana-2/nanobanana-2-image-generate"},{"title":"Nanobanana-2 Image Generation Beta","openapi":"en/api-manual/image-series/nanobanana/nanobanana-2/beta/nanobanana-2-beta-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/nanobanana/nanobanana-2/beta/nanobanana-2-beta-image-generate"}]},{"group":"Nanobanana Pro","icon":"images","pages":[{"title":"Nanobanana Pro Image Generation","openapi":"en/api-manual/image-series/nanobanana/nanobanana-pro/nanobanana-pro-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/nanobanana/nanobanana-pro/nanobanana-pro-image-generate"},{"title":"Nanobanana Pro Image Generation Beta","openapi":"en/api-manual/image-series/nanobanana/nanobanana-pro/beta/nanobanana-pro-beta-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/nanobanana/nanobanana-pro/beta/nanobanana-pro-beta-image-generate"}]},{"group":"Nanobanana 1","icon":"images","pages":[{"title":"Nanobanana 1 Image Generation Beta","openapi":"en/api-manual/image-series/nanobanana/nanobanana-1/beta/nanobanana-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/nanobanana/nanobanana-1/beta/nanobanana-image-generate"}]}]},{"group":"Grok","icon":"images","pages":[{"title":"Grok Imagine Image 2.0 Image Generation","openapi":"en/api-manual/image-series/grok/grok-imagine-image-2.0-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/grok/grok-imagine-image-2.0-image-generate"}]},{"group":"Midjourney","icon":"images","pages":[{"group":"Midjourney V8.2","pages":[{"title":"Midjourney V8.2 Prompt Parameter Guide","icon":"book-open","href":"/en/api-manual/image-series/midjourney/midjourney-v8-2-prompt-guide"},{"title":"Midjourney V8.2 Image Generation","openapi":"en/api-manual/image-series/midjourney/mj-v8-2-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v8-2-image-generate"},{"title":"Midjourney V8.2 Variation","openapi":"en/api-manual/image-series/midjourney/mj-v8-2-variation.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v8-2-variation"},{"title":"Midjourney V8.2 Remix","openapi":"en/api-manual/image-series/midjourney/mj-v8-2-remix.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v8-2-remix"},{"title":"Midjourney V8.2 Retexture","openapi":"en/api-manual/image-series/midjourney/mj-v8-2-retexture.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v8-2-retexture"},{"title":"Midjourney V8.2 Upload Paint","openapi":"en/api-manual/image-series/midjourney/mj-v8-2-upload-paint.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v8-2-upload-paint"},{"title":"Midjourney V8.2 Canvas Edit","openapi":"en/api-manual/image-series/midjourney/mj-v8-2-edit.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v8-2-edit"},{"title":"Midjourney V8.2 Remove Background","openapi":"en/api-manual/image-series/midjourney/mj-v8-2-remove-bg.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v8-2-remove-bg"}]},{"group":"Midjourney V8.1","pages":[{"title":"Midjourney V8.1 Prompt Parameter Guide","icon":"book-open","href":"/en/api-manual/image-series/midjourney/midjourney-v8-1-prompt-guide"},{"title":"Midjourney V8.1 Image Generation","openapi":"en/api-manual/image-series/midjourney/mj-v8-1-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v8-1-image-generate"},{"title":"Midjourney V8.1 Variation","openapi":"en/api-manual/image-series/midjourney/mj-v8-1-variation.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v8-1-variation"},{"title":"Midjourney V8.1 Remix","openapi":"en/api-manual/image-series/midjourney/mj-v8-1-remix.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v8-1-remix"},{"title":"Midjourney V8.1 Retexture","openapi":"en/api-manual/image-series/midjourney/mj-v8-1-retexture.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v8-1-retexture"},{"title":"Midjourney V8.1 Upload Paint","openapi":"en/api-manual/image-series/midjourney/mj-v8-1-upload-paint.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v8-1-upload-paint"},{"title":"Midjourney V8.1 Canvas Edit","openapi":"en/api-manual/image-series/midjourney/mj-v8-1-edit.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v8-1-edit"},{"title":"Midjourney V8.1 Remove Background","openapi":"en/api-manual/image-series/midjourney/mj-v8-1-remove-bg.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v8-1-remove-bg"}]},{"group":"Midjourney V7","pages":[{"title":"Midjourney V7 Prompt Parameter Guide","icon":"book-open","href":"/en/api-manual/image-series/midjourney/midjourney-v7-prompt-guide"},{"title":"Midjourney V7 Image Generation","openapi":"en/api-manual/image-series/midjourney/mj-v7-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v7-image-generate"},{"title":"Midjourney V7 Variation","openapi":"en/api-manual/image-series/midjourney/mj-v7-variation.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v7-variation"},{"title":"Midjourney V7 Upscale","openapi":"en/api-manual/image-series/midjourney/mj-v7-upscale.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v7-upscale"},{"title":"Midjourney V7 Remix","openapi":"en/api-manual/image-series/midjourney/mj-v7-remix.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v7-remix"},{"title":"Midjourney V7 Enhance","openapi":"en/api-manual/image-series/midjourney/mj-v7-enhance.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v7-enhance"},{"title":"Midjourney V7 Pan","openapi":"en/api-manual/image-series/midjourney/mj-v7-pan.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v7-pan"},{"title":"Midjourney V7 Outpaint","openapi":"en/api-manual/image-series/midjourney/mj-v7-outpaint.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v7-outpaint"},{"title":"Midjourney V7 Canvas Edit","openapi":"en/api-manual/image-series/midjourney/mj-v7-edit.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v7-edit"},{"title":"Midjourney V7 Remove Background","openapi":"en/api-manual/image-series/midjourney/mj-v7-remove-bg.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v7-remove-bg"},{"title":"Midjourney V7 Retexture","openapi":"en/api-manual/image-series/midjourney/mj-v7-retexture.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v7-retexture"},{"title":"Midjourney V7 Upload Paint","openapi":"en/api-manual/image-series/midjourney/mj-v7-upload-paint.json POST /v1/images/generations","href":"/en/api-manual/image-series/midjourney/mj-v7-upload-paint"}]}]},{"group":"Seedream","icon":"images","pages":[{"title":"Seedream 5.0 Pro Image Generation","openapi":"en/api-manual/image-series/seedream/seedream-5.0-pro-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/seedream/seedream-5.0-pro-image-generate"},{"title":"Seedream 5.0 Pro Layer Decomposition","openapi":"en/api-manual/image-series/seedream/seedream-5.0-pro-layerize-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/seedream/seedream-5.0-pro-layerize-image-generate"},{"title":"Seedream 5.0 Flash Image Generation","openapi":"en/api-manual/image-series/seedream/seedream-5.0-flash-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/seedream/seedream-5.0-flash-image-generate"},{"title":"Seedream 5.0 Flash Layer Decomposition","openapi":"en/api-manual/image-series/seedream/seedream-5.0-flash-layerize-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/seedream/seedream-5.0-flash-layerize-image-generate"},{"title":"Seedream 5.0 Lite Image Generation","openapi":"en/api-manual/image-series/seedream/seedream-5.0-lite-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/seedream/seedream-5.0-lite-image-generate"},{"title":"Seedream 4.5 Image Generation","openapi":"en/api-manual/image-series/seedream/seedream-4.5-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/seedream/seedream-4.5-image-generate"},{"title":"Seedream-4.0 Image Generation","openapi":"en/api-manual/image-series/seedream/seedream-4.0-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/seedream/seedream-4.0-image-generate"}]},{"group":"Z Image Turbo","icon":"images","pages":[{"title":"Z Image Turbo Image Generation","openapi":"en/api-manual/image-series/z-image-turbo/z-image-turbo-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/z-image-turbo/z-image-turbo-image-generate"}]},{"group":"Qwen-Image","icon":"images","pages":[{"title":"Qwen Image 3.0","openapi":"en/api-manual/image-series/qwen/qwen-image-3.0.json POST /v1/images/generations","href":"/en/api-manual/image-series/qwen/qwen-image-3.0"},{"title":"Qwen Image 3.0 Pro","openapi":"en/api-manual/image-series/qwen/qwen-image-3.0-pro.json POST /v1/images/generations","href":"/en/api-manual/image-series/qwen/qwen-image-3.0-pro"},{"title":"Qwen Image Edit Plus","openapi":"en/api-manual/image-series/qwen/qwen-image-edit-plus.json POST /v1/images/generations","href":"/en/api-manual/image-series/qwen/qwen-image-edit-plus"},{"title":"Qwen Image Edit","openapi":"en/api-manual/image-series/qwen/qwen-image-edit.json POST /v1/images/generations","href":"/en/api-manual/image-series/qwen/qwen-image-edit"}]},{"group":"Wan-Image","icon":"images","pages":[{"title":"Wan2.5 Text to Image","openapi":"en/api-manual/image-series/wan2.5/wan2.5-text-to-image.json POST /v1/images/generations","href":"/en/api-manual/image-series/wan2.5/wan2.5-text-to-image"},{"title":"Wan2.5 Image to Image","openapi":"en/api-manual/image-series/wan2.5/wan2.5-image-to-image.json POST /v1/images/generations","href":"/en/api-manual/image-series/wan2.5/wan2.5-image-to-image"}]},{"group":"Krea","icon":"images","pages":[{"group":"Krea 2 Turbo","pages":[{"title":"Krea 2 Turbo Image Generation","openapi":"en/api-manual/image-series/krea/krea-2-turbo-image-generate.json POST /v1/images/generations","href":"/en/api-manual/image-series/krea/krea-2-turbo-image-generate"}]}]}]},{"group":"Video Series","pages":[{"group":"Seedance 2.5","icon":"video","pages":[{"title":"Seedance 2.5 Complete Parameter Guide","openapi":"en/api-manual/video-series/seedance2.5/seedance-2.5-overview.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.5/seedance-2.5-overview"},{"title":"Seedance 2.5 Text-to-Video","openapi":"en/api-manual/video-series/seedance2.5/seedance-2.5-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.5/seedance-2.5-text-to-video"},{"title":"Seedance 2.5 Image-to-Video","openapi":"en/api-manual/video-series/seedance2.5/seedance-2.5-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.5/seedance-2.5-image-to-video"},{"title":"Seedance 2.5 Reference-to-Video","openapi":"en/api-manual/video-series/seedance2.5/seedance-2.5-reference-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.5/seedance-2.5-reference-to-video"},{"title":"Seedance 2.5 Video Edit","openapi":"en/api-manual/video-series/seedance2.5/seedance-2.5-video-edit.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.5/seedance-2.5-video-edit"},{"title":"Seedance 2.5 Video Extend","openapi":"en/api-manual/video-series/seedance2.5/seedance-2.5-video-extend.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.5/seedance-2.5-video-extend"},{"title":"Seedance 2.5 Draft-to-Video","openapi":"en/api-manual/video-series/seedance2.5/seedance-2.5-draft-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.5/seedance-2.5-draft-to-video"}]},{"group":"Seedance 2.0","icon":"video","pages":[{"title":"Seedance 2.0 Complete Parameter Guide","openapi":"en/api-manual/video-series/seedance2.0/seedance-2.0-overview.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.0/seedance-2.0-overview"},{"title":"Seedance 2.0 Text-to-Video","openapi":"en/api-manual/video-series/seedance2.0/seedance-2.0-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.0/seedance-2.0-text-to-video"},{"title":"Seedance 2.0 Image-to-Video","openapi":"en/api-manual/video-series/seedance2.0/seedance-2.0-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.0/seedance-2.0-image-to-video"},{"title":"Seedance 2.0 Reference-to-Video","openapi":"en/api-manual/video-series/seedance2.0/seedance-2.0-reference-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.0/seedance-2.0-reference-to-video"},{"title":"Seedance 2.0 Fast Text-to-Video","openapi":"en/api-manual/video-series/seedance2.0/seedance-2.0-fast-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.0/seedance-2.0-fast-text-to-video"},{"title":"Seedance 2.0 Fast Image-to-Video","openapi":"en/api-manual/video-series/seedance2.0/seedance-2.0-fast-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.0/seedance-2.0-fast-image-to-video"},{"title":"Seedance 2.0 Fast Reference-to-Video","openapi":"en/api-manual/video-series/seedance2.0/seedance-2.0-fast-reference-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.0/seedance-2.0-fast-reference-to-video"},{"title":"Seedance 2.0 Mini Text-to-Video","openapi":"en/api-manual/video-series/seedance2.0/seedance-2.0-mini-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.0/seedance-2.0-mini-text-to-video"},{"title":"Seedance 2.0 Mini Image-to-Video","openapi":"en/api-manual/video-series/seedance2.0/seedance-2.0-mini-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.0/seedance-2.0-mini-image-to-video"},{"title":"Seedance 2.0 Mini Reference-to-Video","openapi":"en/api-manual/video-series/seedance2.0/seedance-2.0-mini-reference-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance2.0/seedance-2.0-mini-reference-to-video"}]},{"group":"Minimax","icon":"video","pages":[{"group":"Minimax H3","icon":"video","pages":[{"title":"Minimax H3 / H3 Max / H3 Max Turbo Complete Parameter Guide","openapi":"en/api-manual/video-series/minimax/minimax-h3/minimax-h3-overview.json POST /v1/videos/generations","href":"/en/api-manual/video-series/minimax/minimax-h3/minimax-h3-overview"},{"group":"H3","icon":"video","pages":[{"title":"Minimax H3 Text-to-Video","openapi":"en/api-manual/video-series/minimax/minimax-h3/h3/minimax-h3-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/minimax/minimax-h3/h3/minimax-h3-text-to-video"},{"title":"Minimax H3 Image-to-Video","openapi":"en/api-manual/video-series/minimax/minimax-h3/h3/minimax-h3-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/minimax/minimax-h3/h3/minimax-h3-image-to-video"},{"title":"Minimax H3 Reference-to-Video","openapi":"en/api-manual/video-series/minimax/minimax-h3/h3/minimax-h3-reference-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/minimax/minimax-h3/h3/minimax-h3-reference-to-video"}]},{"group":"H3 Max","icon":"video","pages":[{"title":"Minimax H3 Max Text-to-Video","openapi":"en/api-manual/video-series/minimax/minimax-h3/h3-max/minimax-h3-max-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/minimax/minimax-h3/h3-max/minimax-h3-max-text-to-video"},{"title":"Minimax H3 Max Image-to-Video","openapi":"en/api-manual/video-series/minimax/minimax-h3/h3-max/minimax-h3-max-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/minimax/minimax-h3/h3-max/minimax-h3-max-image-to-video"},{"title":"Minimax H3 Max Reference-to-Video","openapi":"en/api-manual/video-series/minimax/minimax-h3/h3-max/minimax-h3-max-reference-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/minimax/minimax-h3/h3-max/minimax-h3-max-reference-to-video"}]},{"group":"H3 Max Turbo","icon":"video","pages":[{"title":"Minimax H3 Max Turbo Text-to-Video","openapi":"en/api-manual/video-series/minimax/minimax-h3/h3-max-turbo/minimax-h3-max-turbo-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/minimax/minimax-h3/h3-max-turbo/minimax-h3-max-turbo-text-to-video"},{"title":"Minimax H3 Max Turbo Image-to-Video","openapi":"en/api-manual/video-series/minimax/minimax-h3/h3-max-turbo/minimax-h3-max-turbo-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/minimax/minimax-h3/h3-max-turbo/minimax-h3-max-turbo-image-to-video"}]}]}]},{"group":"Gemini Omni Flash","icon":"video","pages":[{"group":"Gemini Omni 1.2 Flash","icon":"video","pages":[{"title":"Gemini Omni 1.2 Flash Full Parameter Overview","openapi":"en/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-overview.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-overview"},{"title":"Gemini Omni 1.2 Flash Text-to-Video","openapi":"en/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-text-to-video"},{"title":"Gemini Omni 1.2 Flash Image-to-Video","openapi":"en/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-image-to-video"},{"title":"Gemini Omni 1.2 Flash Reference-to-Video","openapi":"en/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-reference-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-reference-to-video"},{"title":"Gemini Omni 1.2 Flash Video Edit","openapi":"en/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-video-edit.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-video-edit"},{"title":"Gemini Omni 1.2 Flash Video Extend","openapi":"en/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-video-extend.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-video-extend"},{"title":"Gemini Omni 1.2 Flash Video upscaling","openapi":"en/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-video-upscale.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-video-upscale"}]},{"group":"Gemini Omni 1.1 Flash","icon":"video","pages":[{"title":"Gemini Omni 1.1 Flash Full Parameter Overview","openapi":"en/api-manual/video-series/gemini-omni-1.1-flash/gemini-omni-1.1-flash-overview.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-1.1-flash/gemini-omni-1.1-flash-overview"},{"title":"Gemini Omni 1.1 Flash Text-to-Video","openapi":"en/api-manual/video-series/gemini-omni-1.1-flash/gemini-omni-1.1-flash-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-1.1-flash/gemini-omni-1.1-flash-text-to-video"},{"title":"Gemini Omni 1.1 Flash Image-to-Video","openapi":"en/api-manual/video-series/gemini-omni-1.1-flash/gemini-omni-1.1-flash-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-1.1-flash/gemini-omni-1.1-flash-image-to-video"},{"title":"Gemini Omni 1.1 Flash Reference-to-Video","openapi":"en/api-manual/video-series/gemini-omni-1.1-flash/gemini-omni-1.1-flash-reference-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-1.1-flash/gemini-omni-1.1-flash-reference-to-video"},{"title":"Gemini Omni 1.1 Flash Video Edit","openapi":"en/api-manual/video-series/gemini-omni-1.1-flash/gemini-omni-1.1-flash-video-edit.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-1.1-flash/gemini-omni-1.1-flash-video-edit"},{"title":"Gemini Omni 1.1 Flash Video Extend","openapi":"en/api-manual/video-series/gemini-omni-1.1-flash/gemini-omni-1.1-flash-video-extend.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-1.1-flash/gemini-omni-1.1-flash-video-extend"}]},{"group":"Gemini Omni Flash 1.0","icon":"video","pages":[{"title":"Gemini Omni Flash 1.0 Text-to-Video","openapi":"en/api-manual/video-series/gemini-omni-flash-1.0/gemini-omni-flash-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-flash-1.0/gemini-omni-flash-text-to-video"},{"title":"Gemini Omni Flash 1.0 Image-to-Video","openapi":"en/api-manual/video-series/gemini-omni-flash-1.0/gemini-omni-flash-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-flash-1.0/gemini-omni-flash-image-to-video"},{"title":"Gemini Omni Flash 1.0 Reference-to-Video","openapi":"en/api-manual/video-series/gemini-omni-flash-1.0/gemini-omni-flash-reference-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-flash-1.0/gemini-omni-flash-reference-to-video"},{"title":"Gemini Omni Flash 1.0 Video Edit","openapi":"en/api-manual/video-series/gemini-omni-flash-1.0/gemini-omni-flash-video-edit.json POST /v1/videos/generations","href":"/en/api-manual/video-series/gemini-omni-flash-1.0/gemini-omni-flash-video-edit"}]}]},{"group":"Kling","icon":"video","pages":[{"title":"Kling Custom Element","openapi":"en/api-manual/video-series/kling/kling-custom-element.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-custom-element"},{"group":"Kling-4.0","icon":"video","pages":[{"title":"Kling-4.0 Text to Video","openapi":"en/api-manual/video-series/kling/kling-v4-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-v4-text-to-video"},{"title":"Kling-4.0 Image to Video","openapi":"en/api-manual/video-series/kling/kling-v4-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-v4-image-to-video"},{"title":"Kling-4.0 Reference to Video","openapi":"en/api-manual/video-series/kling/kling-v4-reference-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-v4-reference-to-video"},{"title":"Kling-4.0 Video Edit","openapi":"en/api-manual/video-series/kling/kling-v4-video-edit.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-v4-video-edit"}]},{"group":"Kling-4.0-Flash","icon":"video","pages":[{"title":"Kling-4.0-Flash Text to Video","openapi":"en/api-manual/video-series/kling/kling-v4-flash-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-v4-flash-text-to-video"},{"title":"Kling-4.0-Flash Image to Video","openapi":"en/api-manual/video-series/kling/kling-v4-flash-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-v4-flash-image-to-video"},{"title":"Kling-4.0-Flash Reference to Video","openapi":"en/api-manual/video-series/kling/kling-v4-flash-reference-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-v4-flash-reference-to-video"},{"title":"Kling-4.0-Flash Video Edit","openapi":"en/api-manual/video-series/kling/kling-v4-flash-video-edit.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-v4-flash-video-edit"}]},{"group":"Kling-O3","icon":"video","pages":[{"title":"Kling-O3 Text to Video","openapi":"en/api-manual/video-series/kling/kling-o3-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-o3-text-to-video"},{"title":"Kling-O3 Image to Video","openapi":"en/api-manual/video-series/kling/kling-o3-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-o3-image-to-video"},{"title":"Kling-O3 Reference to Video","openapi":"en/api-manual/video-series/kling/kling-o3-reference-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-o3-reference-to-video"},{"title":"Kling-O3 Video Edit","openapi":"en/api-manual/video-series/kling/kling-o3-video-edit.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-o3-video-edit"}]},{"group":"Kling-V3","icon":"video","pages":[{"title":"Kling-V3 Text to Video","openapi":"en/api-manual/video-series/kling/kling-v3-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-v3-text-to-video"},{"title":"Kling-V3 Image to Video","openapi":"en/api-manual/video-series/kling/kling-v3-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-v3-image-to-video"},{"title":"Kling-V3 Motion Control","openapi":"en/api-manual/video-series/kling/kling-v3-motion-control.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-v3-motion-control"}]},{"group":"Kling-V3-Turbo","icon":"video","pages":[{"title":"Kling-V3-Turbo Text to Video","openapi":"en/api-manual/video-series/kling/kling-v3-turbo-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-v3-turbo-text-to-video"},{"title":"Kling-V3-Turbo Image to Video","openapi":"en/api-manual/video-series/kling/kling-v3-turbo-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-v3-turbo-image-to-video"}]},{"group":"Kling-V2.6","icon":"video","pages":[{"title":"Kling 2.6 Motion Control","openapi":"en/api-manual/video-series/kling/kling-v2.6-motion-control.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-v2.6-motion-control"}]},{"group":"Kling-O1","icon":"video","pages":[{"title":"Kling-O1 Image to Video","openapi":"en/api-manual/video-series/kling/kling-o1-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-o1-image-to-video"},{"title":"Kling-O1 Video Edit","openapi":"en/api-manual/video-series/kling/kling-o1-video-edit.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-o1-video-edit"},{"title":"Kling-O1 Video Edit (Fast)","openapi":"en/api-manual/video-series/kling/kling-o1-video-edit-fast.json POST /v1/videos/generations","href":"/en/api-manual/video-series/kling/kling-o1-video-edit-fast"}]}]},{"group":"HappyHorse","icon":"video","pages":[{"group":"HappyHorse 1.1","icon":"video","pages":[{"title":"HappyHorse 1.1 Text-to-Video","openapi":"en/api-manual/video-series/happyhorse1.1/happyhorse-1.1-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/happyhorse1.1/happyhorse-1.1-text-to-video"},{"title":"HappyHorse 1.1 Image-to-Video","openapi":"en/api-manual/video-series/happyhorse1.1/happyhorse-1.1-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/happyhorse1.1/happyhorse-1.1-image-to-video"},{"title":"HappyHorse 1.1 Reference-to-Video","openapi":"en/api-manual/video-series/happyhorse1.1/happyhorse-1.1-reference-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/happyhorse1.1/happyhorse-1.1-reference-to-video"}]},{"group":"HappyHorse 1.0","icon":"video","pages":[{"title":"HappyHorse 1.0 Text-to-Video","openapi":"en/api-manual/video-series/happyhorse1.0/happyhorse-1.0-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/happyhorse1.0/happyhorse-1.0-text-to-video"},{"title":"HappyHorse 1.0 Image-to-Video","openapi":"en/api-manual/video-series/happyhorse1.0/happyhorse-1.0-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/happyhorse1.0/happyhorse-1.0-image-to-video"},{"title":"HappyHorse 1.0 Reference-to-Video","openapi":"en/api-manual/video-series/happyhorse1.0/happyhorse-1.0-reference-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/happyhorse1.0/happyhorse-1.0-reference-to-video"},{"title":"HappyHorse 1.0 Video-Edit","openapi":"en/api-manual/video-series/happyhorse1.0/happyhorse-1.0-video-edit.json POST /v1/videos/generations","href":"/en/api-manual/video-series/happyhorse1.0/happyhorse-1.0-video-edit"}]}]},{"group":"Grok","icon":"video","pages":[{"title":"Grok Imagine 1.5 Video Preview","openapi":"en/api-manual/video-series/grok/grok-imagine-video-1.5-preview.json POST /v1/videos/generations","href":"/en/api-manual/video-series/grok/grok-imagine-video-1.5-preview"},{"title":"Grok Imagine 1.5 Lite Video","openapi":"en/api-manual/video-series/grok/grok-imagine-video-1.5-lite.json POST /v1/videos/generations","href":"/en/api-manual/video-series/grok/grok-imagine-video-1.5-lite"},{"title":"Grok Imagine 1.0 Text to Video","openapi":"en/api-manual/video-series/grok/grok-imagine-video-1.0-t2v.json POST /v1/videos/generations","href":"/en/api-manual/video-series/grok/grok-imagine-video-1.0-t2v"},{"title":"Grok Imagine 1.0 Image to Video","openapi":"en/api-manual/video-series/grok/grok-imagine-video-1.0-i2v.json POST /v1/videos/generations","href":"/en/api-manual/video-series/grok/grok-imagine-video-1.0-i2v"},{"title":"Grok Imagine Text to Video Beta","openapi":"en/api-manual/video-series/grok/grok-imagine-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/grok/grok-imagine-text-to-video"},{"title":"Grok Imagine Image to Video Beta","openapi":"en/api-manual/video-series/grok/grok-imagine-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/grok/grok-imagine-image-to-video"}]},{"group":"Seedance","icon":"video","pages":[{"title":"Seedance-1.5-Pro Video Generation","openapi":"en/api-manual/video-series/seedance1.5/seedance-1.5-pro-video-generate.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance1.5/seedance-1.5-pro-video-generate"},{"title":"Seedance-1.0-Pro-Fast Video Generation","openapi":"en/api-manual/video-series/seedance1.0/seedance-1.0-pro-fast-video-generate.json POST /v1/videos/generations","href":"/en/api-manual/video-series/seedance1.0/seedance-1.0-pro-fast-video-generate"}]},{"group":"Sora2","icon":"video","pages":[{"title":"Sora-2 Video Generation","openapi":"en/api-manual/video-series/sora2/sora-2-preview-video-generate.json POST /v1/videos/generations","href":"/en/api-manual/video-series/sora2/sora-2-preview-video-generate"},{"title":"Sora-2-Pro Video Generation","openapi":"en/api-manual/video-series/sora2pro/sora-2-pro-preview-video-generate.json POST /v1/videos/generations","href":"/en/api-manual/video-series/sora2pro/sora-2-pro-preview-video-generate"}]},{"group":"Veo3.1","icon":"video","pages":[{"title":"Veo3.1-Lite Video Generation","openapi":"en/api-manual/video-series/veo3.1/veo-3.1-lite-generate-preview-generate.json POST /v1/videos/generations","href":"/en/api-manual/video-series/veo3.1/veo-3.1-lite-generate-preview-generate"},{"title":"Veo3.1-Pro Video Generation","openapi":"en/api-manual/video-series/veo3.1/veo-3.1-generate-preview-generate.json POST /v1/videos/generations","href":"/en/api-manual/video-series/veo3.1/veo-3.1-generate-preview-generate"},{"title":"Veo3.1-Pro Video Generation Beta","openapi":"en/api-manual/video-series/veo3.1/veo3.1-pro-video-generate.json POST /v1/videos/generations","href":"/en/api-manual/video-series/veo3.1/veo3.1-pro-video-generate"},{"title":"Veo3.1-Fast Video Generation","openapi":"en/api-manual/video-series/veo3.1/veo-3.1-fast-generate-preview-generate.json POST /v1/videos/generations","href":"/en/api-manual/video-series/veo3.1/veo-3.1-fast-generate-preview-generate"},{"title":"Veo3.1-Fast Video Generation Beta","openapi":"en/api-manual/video-series/veo3.1/veo3.1-fast-video-generate.json POST /v1/videos/generations","href":"/en/api-manual/video-series/veo3.1/veo3.1-fast-video-generate"}]},{"group":"Hailuo","icon":"video","pages":[{"title":"Hailuo-02 Video Generation","openapi":"en/api-manual/video-series/hailuo/hailuo-02-video-generate.json POST /v1/videos/generations","href":"/en/api-manual/video-series/hailuo/hailuo-02-video-generate"},{"title":"Hailuo-2.3 Video Generation","openapi":"en/api-manual/video-series/hailuo/hailuo-2-3-video-generate.json POST /v1/videos/generations","href":"/en/api-manual/video-series/hailuo/hailuo-2-3-video-generate"},{"title":"Hailuo-2.3-Fast Video Generation","openapi":"en/api-manual/video-series/hailuo/hailuo-2-3-fast-video-generate.json POST /v1/videos/generations","href":"/en/api-manual/video-series/hailuo/hailuo-2-3-fast-video-generate"}]},{"group":"Wan","icon":"video","pages":[{"group":"Wan3.0","icon":"video","pages":[{"title":"Wan3.0 Complete Parameter Guide","openapi":"en/api-manual/video-series/wan3.0/wan3.0-overview.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan3.0/wan3.0-overview"},{"title":"Wan3.0 Text-to-Video","openapi":"en/api-manual/video-series/wan3.0/wan3.0-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan3.0/wan3.0-text-to-video"},{"title":"Wan3.0 Image-to-Video","openapi":"en/api-manual/video-series/wan3.0/wan3.0-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan3.0/wan3.0-image-to-video"},{"title":"Wan3.0 Reference-to-Video","openapi":"en/api-manual/video-series/wan3.0/wan3.0-reference-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan3.0/wan3.0-reference-video"},{"title":"Wan3.0 Prime Text-to-Video","openapi":"en/api-manual/video-series/wan3.0/wan3.0-prime-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan3.0/wan3.0-prime-text-to-video"},{"title":"Wan3.0 Prime Image-to-Video","openapi":"en/api-manual/video-series/wan3.0/wan3.0-prime-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan3.0/wan3.0-prime-image-to-video"},{"title":"Wan3.0 Prime Reference-to-Video","openapi":"en/api-manual/video-series/wan3.0/wan3.0-prime-reference-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan3.0/wan3.0-prime-reference-video"}]},{"group":"Wan2.7","icon":"video","pages":[{"title":"Wan2.7 Text to Video","openapi":"en/api-manual/video-series/wan2.7/wan2.7-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan2.7/wan2.7-text-to-video"},{"title":"Wan2.7 Image to Video","openapi":"en/api-manual/video-series/wan2.7/wan2.7-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan2.7/wan2.7-image-to-video"},{"title":"Wan2.7 Reference Video","openapi":"en/api-manual/video-series/wan2.7/wan2.7-reference-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan2.7/wan2.7-reference-video"},{"title":"Wan2.7 Video Edit","openapi":"en/api-manual/video-series/wan2.7/wan2.7-video-edit.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan2.7/wan2.7-video-edit"}]},{"group":"Wan2.6","icon":"video","pages":[{"title":"Wan2.6 Text to Video","openapi":"en/api-manual/video-series/wan2.6/wan2.6-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan2.6/wan2.6-text-to-video"},{"title":"Wan2.6 Image to Video","openapi":"en/api-manual/video-series/wan2.6/wan2.6-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan2.6/wan2.6-image-to-video"},{"title":"Wan2.6 Image-to-Video Flash","openapi":"en/api-manual/video-series/wan2.6/wan2.6-image-to-video-flash.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan2.6/wan2.6-image-to-video-flash"},{"title":"Wan2.6 Reference Video","openapi":"en/api-manual/video-series/wan2.6/wan2.6-reference-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan2.6/wan2.6-reference-video"},{"title":"Wan2.6 Reference Video Flash","openapi":"en/api-manual/video-series/wan2.6/wan2.6-reference-video-flash.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan2.6/wan2.6-reference-video-flash"}]},{"group":"Wan2.5","icon":"video","pages":[{"title":"Wan2.5 Text to Video","openapi":"en/api-manual/video-series/wan2.5/wan2.5-text-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan2.5/wan2.5-text-to-video"},{"title":"Wan2.5 Image to Video","openapi":"en/api-manual/video-series/wan2.5/wan2.5-image-to-video.json POST /v1/videos/generations","href":"/en/api-manual/video-series/wan2.5/wan2.5-image-to-video"}]}]},{"group":"OmniHuman","icon":"video","pages":[{"title":"OmniHuman-1.5 Digital Human Video Generation","openapi":"en/api-manual/video-series/omnihuman/omnihuman-1.5-video-generate.json POST /v1/videos/generations","href":"/en/api-manual/video-series/omnihuman/omnihuman-1.5-video-generate"}]},{"group":"VideoRetalk","icon":"video","pages":[{"title":"VideoRetalk Video Generate","openapi":"en/api-manual/video-series/videoretalk/videoretalk-video-generate.json POST /v1/videos/generations","href":"/en/api-manual/video-series/videoretalk/videoretalk-video-generate"}]},{"group":"Topaz","icon":"video","pages":[{"title":"Topaz Video Upscale","openapi":"en/api-manual/video-series/topaz/topaz-video-upscale.json POST /v1/videos/generations","href":"/en/api-manual/video-series/topaz/topaz-video-upscale"}]},{"group":"Tencent","icon":"video","pages":[{"title":"Tencent Video Upscale","openapi":"en/api-manual/video-series/tencent/tencent-video-upscale.json POST /v1/videos/generations","href":"/en/api-manual/video-series/tencent/tencent-video-upscale"}]}]},{"group":"Audio Series","pages":[{"group":"Seed Audio","icon":"waveform-lines","pages":[{"title":"Seed-Audio 1.0 Voices","icon":"book-open","href":"/en/api-manual/audio-series/doubao-seed-audio/doubao-seed-audio-1-0-voices"},{"title":"Seed-Audio 1.0 Audio Generation","openapi":"en/api-manual/audio-series/doubao-seed-audio/doubao-seed-audio-1-0.json POST /v1/audios/generations","href":"/en/api-manual/audio-series/doubao-seed-audio/doubao-seed-audio-1-0"}]},{"group":"Suno","icon":"music","pages":[{"title":"Suno Music Generation Beta","openapi":"en/api-manual/audio-series/suno/suno-music-generation.json POST /v1/audios/generations","href":"/en/api-manual/audio-series/suno/suno-music-generation"},{"title":"Suno Persona Creation Beta","openapi":"en/api-manual/audio-series/suno/suno-persona-creation.json POST /v1/audios/generations","href":"/en/api-manual/audio-series/suno/suno-persona-creation"}]},{"group":"Qwen Audio TTS","icon":"volume-high","pages":[{"title":"Qwen Audio 3.1 TTS Flash Voices","icon":"book-open","href":"/en/api-manual/audio-series/qwen-audio-tts/qwen-audio-3.1-tts-flash-voices"},{"title":"Qwen Audio 3.1 TTS Flash Speech Synthesis","openapi":"en/api-manual/audio-series/qwen-audio-tts/qwen-audio-3.1-tts-flash.json POST /v1/audios/generations","href":"/en/api-manual/audio-series/qwen-audio-tts/qwen-audio-3.1-tts-flash"},{"title":"Voice Enrollment: Create a Custom Voice","openapi":"en/api-manual/audio-series/qwen-audio-tts/voice-enrollment.json POST /v1/audios/generations","href":"/en/api-manual/audio-series/qwen-audio-tts/voice-enrollment"}]}]},{"group":"Text Series","pages":[{"group":"EvoLink Auto","icon":"wand-magic-sparkles","pages":[{"title":"EvoLink Auto - Smart Model Routing","openapi":"en/api-manual/language-series/evolink-auto/evolink-auto-quickstart.json POST /v1/chat/completions","href":"/en/api-manual/language-series/evolink-auto/evolink-auto-quickstart"},{"title":"EvoLink Auto - Claude Format","openapi":"en/api-manual/language-series/evolink-auto/evolink-auto-claude.json POST /v1/messages","href":"/en/api-manual/language-series/evolink-auto/evolink-auto-claude"},{"title":"EvoLink Auto - Gemini Format","openapi":"en/api-manual/language-series/evolink-auto/evolink-auto-gemini.json POST /v1beta/models/{model}:generateContent","href":"/en/api-manual/language-series/evolink-auto/evolink-auto-gemini"}]},{"group":"EvoLink Moderation","icon":"shield-check","pages":[{"title":"EvoLink Moderation 1.0 - Complete API Reference","openapi":"en/api-manual/language-series/evolink-moderation-1.0/evolink-moderation-1.0-api.json POST /v1/moderations","href":"/en/api-manual/language-series/evolink-moderation-1.0/evolink-moderation-1.0-api"}]},{"group":"Kimi","icon":"comments","pages":[{"group":"Chat Completions API","icon":"comments","pages":[{"title":"Kimi API (All Models) - Chat Completions Quickstart","openapi":"en/api-manual/language-series/kimi/chat-completions/chat-completions-quickstart.json POST /v1/chat/completions","href":"/en/api-manual/language-series/kimi/chat-completions/chat-completions-quickstart"},{"title":"Kimi API (All Models) - Chat Completions Full Reference","openapi":"en/api-manual/language-series/kimi/chat-completions/chat-completions-reference.json POST /v1/chat/completions","href":"/en/api-manual/language-series/kimi/chat-completions/chat-completions-reference"}]},{"group":"Responses API","icon":"comments","pages":[{"title":"Kimi API (All Models) - Responses Quickstart","openapi":"en/api-manual/language-series/kimi/responses/responses-quickstart.json POST /v1/responses","href":"/en/api-manual/language-series/kimi/responses/responses-quickstart"},{"title":"Kimi API (All Models) - Responses Full Reference","openapi":"en/api-manual/language-series/kimi/responses/responses-reference.json POST /v1/responses","href":"/en/api-manual/language-series/kimi/responses/responses-reference"}]},{"group":"Messages API","icon":"comments","pages":[{"title":"Kimi API (All Models) - Messages Quickstart","openapi":"en/api-manual/language-series/kimi/messages/messages-quickstart.json POST /v1/messages","href":"/en/api-manual/language-series/kimi/messages/messages-quickstart"},{"title":"Kimi API (All Models) - Messages Full Reference","openapi":"en/api-manual/language-series/kimi/messages/messages-reference.json POST /v1/messages","href":"/en/api-manual/language-series/kimi/messages/messages-reference"}]}]},{"group":"Claude","icon":"comments","pages":[{"title":"Claude - Messages API","openapi":"en/api-manual/language-series/claude/claude-messages-api.json POST /v1/messages","href":"/en/api-manual/language-series/claude/claude-messages-api"}]},{"group":"Gemini","icon":"comments","pages":[{"group":"Google Native API Format","icon":"comments","pages":[{"title":"Gemini All-Model API - Native API Quickstart","openapi":"en/api-manual/language-series/gemini/native-api/native-api-quickstart.json POST /v1beta/models/{model}:generateContent","description":"- Call Gemini text models using the Google native API format\n- Select the specific model via `{model}` in the path (see the `model` parameter for all available values)\n- Synchronous processing mode, minimal parameters, quick to get started\n- Need more features? See the [full parameter documentation](/en/api-manual/language-series/gemini/native-api/native-api-reference)","href":"/en/api-manual/language-series/gemini/native-api/native-api-quickstart"},{"title":"Gemini All-Model API - Native API Format","openapi":"en/api-manual/language-series/gemini/native-api/native-api-reference.json POST /v1beta/models/{model}:generateContent","href":"/en/api-manual/language-series/gemini/native-api/native-api-reference"}]},{"group":"OpenAI SDK Format","icon":"comments","pages":[{"title":"Gemini All-Model API - OpenAI Quickstart","openapi":"en/api-manual/language-series/gemini/openai-sdk/openai-sdk-quickstart.json POST /v1/chat/completions","description":"- Call Gemini text models using the OpenAI SDK format\n- Select the specific model via the `model` parameter (see the `model` parameter for all available values)\n- Synchronous processing mode, minimal parameters, quick to get started\n- Need more features? See the [full parameter documentation](/en/api-manual/language-series/gemini/openai-sdk/openai-sdk-reference)\n- Use `max_tokens` to limit output length. Current Gemini routes do not guarantee that `max_completion_tokens` takes effect; see the full reference.","href":"/en/api-manual/language-series/gemini/openai-sdk/openai-sdk-quickstart"},{"title":"Gemini All-Model API - OpenAI-Compatible Format","openapi":"en/api-manual/language-series/gemini/openai-sdk/openai-sdk-reference.json POST /v1/chat/completions","href":"/en/api-manual/language-series/gemini/openai-sdk/openai-sdk-reference"}]}]},{"group":"GPT","icon":"comments","pages":[{"group":"Chat Completions API","icon":"comments","pages":[{"title":"GPT All-Model API - Chat Completions Quickstart","openapi":"en/api-manual/language-series/gpt/chat-completions/chat-completions-quickstart.json POST /v1/chat/completions","href":"/en/api-manual/language-series/gpt/chat-completions/chat-completions-quickstart"},{"title":"GPT All-Model API - Chat Completions Reference","openapi":"en/api-manual/language-series/gpt/chat-completions/chat-completions-reference.json POST /v1/chat/completions","href":"/en/api-manual/language-series/gpt/chat-completions/chat-completions-reference"}]},{"group":"Responses API","icon":"comments","pages":[{"title":"GPT All-Model API - Responses Quickstart","openapi":"en/api-manual/language-series/gpt/responses/responses-quickstart.json POST /v1/responses","href":"/en/api-manual/language-series/gpt/responses/responses-quickstart"},{"title":"GPT All-Model API - Responses Reference","openapi":"en/api-manual/language-series/gpt/responses/responses-reference.json POST /v1/responses","href":"/en/api-manual/language-series/gpt/responses/responses-reference"}]},{"group":"Decisions API","icon":"comments","pages":[{"title":"GPT Decisions - Complete Parameter Reference","openapi":"en/api-manual/language-series/gpt/decisions/decisions-reference.json POST /v1/decisions","href":"/en/api-manual/language-series/gpt/decisions/decisions-reference"}]}]},{"group":"Grok","icon":"comments","pages":[{"group":"Chat Completions API","icon":"comments","pages":[{"title":"Grok All-Model API - Chat Completions Quickstart","openapi":"en/api-manual/language-series/grok/chat-completions/chat-completions-quickstart.json POST /v1/chat/completions","href":"/en/api-manual/language-series/grok/chat-completions/chat-completions-quickstart"},{"title":"Grok All-Model API - Chat Completions Reference","openapi":"en/api-manual/language-series/grok/chat-completions/chat-completions-reference.json POST /v1/chat/completions","href":"/en/api-manual/language-series/grok/chat-completions/chat-completions-reference"}]},{"group":"Responses API","icon":"comments","pages":[{"title":"Grok All-Model API - Responses Quickstart","openapi":"en/api-manual/language-series/grok/responses/responses-quickstart.json POST /v1/responses","href":"/en/api-manual/language-series/grok/responses/responses-quickstart"},{"title":"Grok All-Model API - Responses Reference","openapi":"en/api-manual/language-series/grok/responses/responses-reference.json POST /v1/responses","href":"/en/api-manual/language-series/grok/responses/responses-reference"}]}]},{"group":"Doubao Seed 2.0","icon":"comments","pages":[{"group":"Chat Completions API","icon":"comments","pages":[{"title":"Doubao Seed 2.0 - Quick Start","openapi":"en/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-quickstart.json POST /v1/chat/completions","href":"/en/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-quickstart"},{"title":"Doubao Seed 2.0 - Complete API Reference","openapi":"en/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-reference.json POST /v1/chat/completions","href":"/en/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-reference"}]},{"group":"Responses API","icon":"comments","pages":[{"title":"Doubao Seed 2.0 Responses API - Quick Start","openapi":"en/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-responses-quickstart.json POST /v1/responses","href":"/en/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-responses-quickstart"},{"title":"Doubao Seed 2.0 Responses API - Complete API Reference","openapi":"en/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-responses-reference.json POST /v1/responses","href":"/en/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-responses-reference"}]}]},{"group":"DeepSeek","icon":"comments","pages":[{"group":"DeepSeek V4","icon":"comments","pages":[{"group":"Chat Completions API","icon":"comments","pages":[{"title":"DeepSeek V4 - OpenAI-Compatible API","openapi":"en/api-manual/language-series/deepseek-v4/deepseek-v4-chat.json POST /v1/chat/completions","href":"/en/api-manual/language-series/deepseek-v4/deepseek-v4-chat"}]},{"group":"Messages API","icon":"comments","pages":[{"title":"DeepSeek V4 - Anthropic-Compatible API","openapi":"en/api-manual/language-series/deepseek-v4/deepseek-v4-messages.json POST /v1/messages","href":"/en/api-manual/language-series/deepseek-v4/deepseek-v4-messages"}]},{"group":"Responses API","icon":"comments","pages":[{"title":"DeepSeek V4 - Responses API","openapi":"en/api-manual/language-series/deepseek-v4/deepseek-v4-responses.json POST /v1/responses","href":"/en/api-manual/language-series/deepseek-v4/deepseek-v4-responses"}]}]},{"group":"DeepSeek V3.2","icon":"comments","pages":[{"title":"DeepSeek - Complete API Reference","openapi":"en/api-manual/language-series/deepseek/deepseek-reference.json POST /v1/chat/completions","href":"/en/api-manual/language-series/deepseek/deepseek-reference"}]}]},{"group":"MiniMax","icon":"comments","pages":[{"group":"MiniMax-M3.1-Flash","icon":"comments","pages":[{"group":"Chat Completions API","icon":"comments","pages":[{"title":"MiniMax-M3.1-Flash - OpenAI-Compatible API","openapi":"en/api-manual/language-series/minimax-m3.1-flash/minimax-m3.1-flash-chat.json POST /v1/chat/completions","href":"/en/api-manual/language-series/minimax-m3.1-flash/minimax-m3.1-flash-chat"}]},{"group":"Messages API","icon":"comments","pages":[{"title":"MiniMax-M3.1-Flash - Anthropic-Compatible API","openapi":"en/api-manual/language-series/minimax-m3.1-flash/minimax-m3.1-flash-messages.json POST /v1/messages","href":"/en/api-manual/language-series/minimax-m3.1-flash/minimax-m3.1-flash-messages"}]},{"group":"Responses API","icon":"comments","pages":[{"title":"MiniMax-M3.1-Flash - Responses API","openapi":"en/api-manual/language-series/minimax-m3.1-flash/minimax-m3.1-flash-responses.json POST /v1/responses","href":"/en/api-manual/language-series/minimax-m3.1-flash/minimax-m3.1-flash-responses"}]}]},{"group":"MiniMax-M3","icon":"comments","pages":[{"group":"Chat Completions API","icon":"comments","pages":[{"title":"MiniMax-M3 - OpenAI-Compatible API","openapi":"en/api-manual/language-series/minimax-m3/minimax-m3-chat.json POST /v1/chat/completions","href":"/en/api-manual/language-series/minimax-m3/minimax-m3-chat"}]},{"group":"Messages API","icon":"comments","pages":[{"title":"MiniMax-M3 - Anthropic-Compatible API","openapi":"en/api-manual/language-series/minimax-m3/minimax-m3-messages.json POST /v1/messages","href":"/en/api-manual/language-series/minimax-m3/minimax-m3-messages"}]}]},{"group":"MiniMax-M2.5","icon":"comments","pages":[{"title":"MiniMax-M2.5 - Complete API Reference","openapi":"en/api-manual/language-series/minimax-m2.5/minimax-m2.5-api.json POST /v1/chat/completions","href":"/en/api-manual/language-series/minimax-m2.5/minimax-m2.5-api"}]}]},{"group":"Qwen","icon":"comments","pages":[{"group":"Qwen3.8-Max","icon":"comments","pages":[{"group":"Chat Completions API","icon":"comments","pages":[{"title":"Qwen3.8-Max - Full Parameter Documentation","openapi":"en/api-manual/language-series/qwen3.8-max/qwen3.8-max-chat.json POST /v1/chat/completions","href":"/en/api-manual/language-series/qwen3.8-max/qwen3.8-max-chat"}]},{"group":"Responses API","icon":"comments","pages":[{"title":"Qwen3.8-Max - Responses API","openapi":"en/api-manual/language-series/qwen3.8-max/qwen3.8-max-responses.json POST /v1/responses","href":"/en/api-manual/language-series/qwen3.8-max/qwen3.8-max-responses"}]},{"group":"Messages API","icon":"comments","pages":[{"title":"Qwen3.8-Max - Anthropic-Compatible API","openapi":"en/api-manual/language-series/qwen3.8-max/qwen3.8-max-messages.json POST /v1/messages","href":"/en/api-manual/language-series/qwen3.8-max/qwen3.8-max-messages"}]}]}]},{"group":"GLM","icon":"comments","pages":[{"group":"Chat Completions API","icon":"comments","pages":[{"title":"GLM All-Model API - Chat Completions Quickstart","openapi":"en/api-manual/language-series/glm/chat-completions/chat-completions-quickstart.json POST /v1/chat/completions","href":"/en/api-manual/language-series/glm/chat-completions/chat-completions-quickstart"},{"title":"GLM All-Model API - Chat Completions Reference","openapi":"en/api-manual/language-series/glm/chat-completions/chat-completions-reference.json POST /v1/chat/completions","href":"/en/api-manual/language-series/glm/chat-completions/chat-completions-reference"}]},{"group":"Responses API","icon":"comments","pages":[{"title":"GLM All-Model API - Responses Quickstart","openapi":"en/api-manual/language-series/glm/responses/responses-quickstart.json POST /v1/responses","href":"/en/api-manual/language-series/glm/responses/responses-quickstart"},{"title":"GLM All-Model API - Responses Reference","openapi":"en/api-manual/language-series/glm/responses/responses-reference.json POST /v1/responses","href":"/en/api-manual/language-series/glm/responses/responses-reference"}]},{"group":"Messages API","icon":"comments","pages":[{"title":"GLM All-Model API - Messages Quickstart","openapi":"en/api-manual/language-series/glm/messages/messages-quickstart.json POST /v1/messages","href":"/en/api-manual/language-series/glm/messages/messages-quickstart"},{"title":"GLM All-Model API - Messages Reference","openapi":"en/api-manual/language-series/glm/messages/messages-reference.json POST /v1/messages","href":"/en/api-manual/language-series/glm/messages/messages-reference"}]}]}]},{"group":"Account Management","pages":[{"title":"Get Credits Usage","openapi":"en/api-manual/account-management/get-credits.json GET /v1/credits","href":"/en/api-manual/account-management/get-credits"}]},{"group":"Task Management","pages":[{"title":"Error Codes Reference","icon":"triangle-exclamation","href":"/en/api-manual/task-management/error-codes"},{"title":"Query Task Status","openapi":"en/api-manual/task-management/get-task-detail.json GET /v1/tasks/{task_id}","href":"/en/api-manual/task-management/get-task-detail"}]},{"group":"File Management","pages":[{"group":"File Upload","icon":"upload","pages":[{"title":"Base64 File Upload","openapi":"en/api-manual/file-series/upload-base64.json POST /api/v1/files/upload/base64","href":"/en/api-manual/file-series/upload-base64"},{"title":"File Stream Upload","openapi":"en/api-manual/file-series/upload-stream.json POST /api/v1/files/upload/stream","href":"/en/api-manual/file-series/upload-stream"},{"title":"URL File Upload","openapi":"en/api-manual/file-series/upload-url.json POST /api/v1/files/upload/url","href":"/en/api-manual/file-series/upload-url"}]},{"title":"Get File Quota","openapi":"en/api-manual/file-series/quota.json GET /api/v1/files/quota","href":"/en/api-manual/file-series/quota"}]}]},{"tab":"CLI/MCP","pages":[{"title":"CLI/MCP","href":"/en/cli-mcp/overview"}]},{"tab":"Integration Guide","pages":[{"title":"Integration Guide","href":"/en/integration-guide/claude-code-cli"}]},{"tab":"User Guide","pages":[{"title":"User Guide","href":"/en/introduction"}]}]},{"language":"cn","pages":[{"title":"cn","href":"/cn/api-manual/language-series/gemini/native-api/native-api-reference"}]},{"language":"de","pages":[{"title":"de","href":"/de/api-manual/language-series/gemini/native-api/native-api-reference"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/api-manual/language-series/gemini/native-api/native-api-reference"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-manual/language-series/gemini/native-api/native-api-reference"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api-manual/language-series/gemini/native-api/native-api-reference"}]},{"language":"es","pages":[{"title":"es","href":"/es/api-manual/language-series/gemini/native-api/native-api-reference"}]}]},"basePath":"","title":"Gemini All-Model API - Native API Format - EvoLink.AI","buildId":"dpl_BSPUBxEoKhhK7HzXVDPxdPvWx4xc","deploymentId":"dpl_BSPUBxEoKhhK7HzXVDPxdPvWx4xc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Do6EtGSl.js","utils-id4tQ6My.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-Byrixac4.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-nakYa3Zl.js","snippetPresets-Bq-pUS7h.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-CujTC_9K.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-FneVUsVu.js","shallow-DY9WpUCz.js","getApiPlaygroundDisplay-Bz8WpPfA.js","CodeSnippet-DgCuJg4G.js","CodeSnippets-Dub9c4T0.js","Page-CePXnjd1.js","getPastedJson-xdI8y2XB.js","icon--yVw5vkr.js","MethodPill-C47t7MdS.js","DuplicateIcon-BzwJ2LeC.js","createIcon-BzggGy84.js","DynamicMarkdown-AlxJK8VR.js","SectionHeading-CMlwFxdK.js","axios-vUo_bRtp.js","Markdown-BNgNrPsi.js","clsx-apD-Q0Oo.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-qmLwQyWY.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Dc4qTkWx.js"]}