when:
  path: /v1beta/models/gemini-3-flash-preview:streamGenerateContent
  method: POST
  query_param:
  - name: alt
    value: sse
  - name: key
    value: '[REDACTED]'
  header:
  - name: accept
    value: text/event-stream
  - name: content-type
    value: application/json
  body: '{"contents":[{"parts":[{"text":"When and where and what type is the next solar eclipse?","thought":false}],"role":"user"}],"generationConfig":{"maxOutputTokens":4096,"temperature":0.5,"thinkingConfig":{"includeThoughts":true,"thinkingLevel":"medium"}},"safetySettings":null,"systemInstruction":{"parts":[{"text":"Be precise and concise.","thought":false}],"role":"model"},"toolConfig":null}'
then:
  status: 200
  header:
  - name: content-type
    value: text/event-stream
  body: "data: {\"candidates\":[{\"content\":{\"parts\":[{\"text\":\"**Date:** October 2,\"}],\"role\":\"model\"},\"index\":0}],\"modelVersion\":\"gemini-3-flash-preview\",\"responseId\":\"id_REDACTED_1\",\"usageMetadata\":{\"candidatesTokenCount\":7,\"promptTokenCount\":19,\"promptTokensDetails\":[{\"modality\":\"TEXT\",\"tokenCount\":19}],\"serviceTier\":\"standard\",\"thoughtsTokenCount\":179,\"totalTokenCount\":205}}\r\n\r\ndata: {\"candidates\":[{\"content\":{\"parts\":[{\"text\":\" 2024\\n**Type:** Annular Solar Eclipse (\\\"Ring of Fire\\\")\\n**Location:** The path of annularity crosses\"}],\"role\":\"model\"},\"index\":0}],\"modelVersion\":\"gemini-3-flash-preview\",\"responseId\":\"id_REDACTED_1\",\"usageMetadata\":{\"candidatesTokenCount\":35,\"promptTokenCount\":19,\"promptTokensDetails\":[{\"modality\":\"TEXT\",\"tokenCount\":19}],\"serviceTier\":\"standard\",\"thoughtsTokenCount\":179,\"totalTokenCount\":233}}\r\n\r\ndata: {\"candidates\":[{\"content\":{\"parts\":[{\"text\":\" the Pacific Ocean, southern Chile, and southern Argentina (notably Easter Island). A partial eclipse will be visible across much of South America and Antarctica\"}],\"role\":\"model\"},\"index\":0}],\"modelVersion\":\"gemini-3-flash-preview\",\"responseId\":\"id_REDACTED_1\",\"usageMetadata\":{\"candidatesTokenCount\":64,\"promptTokenCount\":19,\"promptTokensDetails\":[{\"modality\":\"TEXT\",\"tokenCount\":19}],\"serviceTier\":\"standard\",\"thoughtsTokenCount\":179,\"totalTokenCount\":262}}\r\n\r\ndata: {\"candidates\":[{\"content\":{\"parts\":[{\"text\":\".\"}],\"role\":\"model\"},\"index\":0}],\"modelVersion\":\"gemini-3-flash-preview\",\"responseId\":\"id_REDACTED_1\",\"usageMetadata\":{\"candidatesTokenCount\":65,\"promptTokenCount\":19,\"promptTokensDetails\":[{\"modality\":\"TEXT\",\"tokenCount\":19}],\"serviceTier\":\"standard\",\"thoughtsTokenCount\":179,\"totalTokenCount\":263}}\r\n\r\ndata: {\"candidates\":[{\"content\":{\"parts\":[{\"text\":\"\",\"thoughtSignature\":\"signature_REDACTED_1\"}],\"role\":\"model\"},\"finishReason\":\"STOP\",\"index\":0}],\"modelVersion\":\"gemini-3-flash-preview\",\"responseId\":\"id_REDACTED_1\",\"usageMetadata\":{\"candidatesTokenCount\":65,\"promptTokenCount\":19,\"promptTokensDetails\":[{\"modality\":\"TEXT\",\"tokenCount\":19}],\"serviceTier\":\"standard\",\"thoughtsTokenCount\":179,\"totalTokenCount\":263}}\r\n\r\n"
