Skip to main content
Gemini 호환 통합에는 /v1beta/models/{model}:generateContent를 사용하세요.
경로의 model은 APIAny.AI의 공개 모델 ID입니다.

스트리밍

:generateContent 대신 :streamGenerateContent를 호출하면 증분 candidates 청크로 구성된 Gemini SSE 스트림을 받습니다.

구조화된 출력

JSON 출력을 위해 generationConfig.responseMimeType: "application/json"responseSchema를 함께 사용하세요.

파라미터

지원되는 generationConfig: temperature, topP, topK, maxOutputTokens, stopSequences, responseMimeType, responseSchema, responseModalities (이미지 출력을 위해 IMAGE 포함). 또한 최상위 tools(functionDeclarations)와 systemInstruction을 지원합니다.