Skip to main content
POST
Text generation: Gemini 3.5 Flash-Lite (native Gemini format)
오른쪽의 플레이그라운드를 사용하십시오: sk-your-api-key(귀하의 APIYI token — Google 키가 필요 없습니다)을 x-goog-api-key에 넣고 보내기를 누르십시오 — 기본적으로 추론이 없어서 응답이 빠릅니다.
기본적으로 추론은 출력되지 않습니다. 심층 추론에는 thinkingConfig: {"thinkingLevel": "high"}를 전달하십시오(저희 테스트에서는 상위 티어만 안정적으로 추론을 트리거합니다). 검색 그라운딩, 코드 실행, URL 컨텍스트, 그리고 Maps tools는 이 네이티브 엔드포인트에서만 작동합니다. 기능과 가격: Gemini 3.5 Flash-Lite 개요.
  • 스트리밍의 경우 URL을 :streamGenerateContent?alt=sse로 변경하십시오(플레이그라운드는 비스트리밍을 보여줍니다)
  • 코드 실행은 작동하지만 executableCode / codeExecutionResult 필드는 현재 반영되지 않습니다 — 결과는 텍스트 본문에 나타납니다
  • :countTokens와 명시적 캐시 API는 아직 활성화되지 않았으며; Computer Use는 이 모델에서 공식적으로 지원되지 않습니다

매개변수 빠른 참조

응답 참고사항

  • 추론 비용은 usageMetadata.thoughtsTokenCount입니다(기본값은 0입니다)
  • 근거 소스는 candidates[0].groundingMetadata에 표시되며, URL 컨텍스트는 urlContextMetadata에 있습니다
  • 테스트에서 이 모델에서는 암묵적 캐시 적중이 관찰되지 않았습니다. 이를 바탕으로 비용 모델을 만들지 마십시오

인증

x-goog-api-key
string
header
필수

APIYI token, the sk- prefixed key

본문

application/json
contents
object[]
필수

Conversation contents; parts can mix modalities

systemInstruction
object

System instruction

generationConfig
object

Generation config

tools
object[]

Tools: google_search / url_context / codeExecution / functionDeclarations, etc.

응답

Success

candidates
object[]
usageMetadata
object

Usage; thoughtsTokenCount is the thinking spend

modelVersion
string