---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 231
    host: ""
    body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"google/gemini-3-pro-preview","max_tokens":4000,"stream_options":{"include_usage":true},"stream":true}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
    url: https://ai-gateway.vercel.sh/v1/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: |+
      data: {"id":"gen_01KKHTR5HH880XKT0TQZ3X52G9","object":"chat.completion.chunk","created":1773346236,"model":"google/gemini-3-pro-preview","choices":[{"index":0,"delta":{"role":"assistant"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_385c9tcxha"}

      data: {"id":"gen_01KKHTR5HH880XKT0TQZ3X52G9","object":"chat.completion.chunk","created":1773346236,"model":"google/gemini-3-pro-preview","choices":[{"index":0,"delta":{"content":"In Portuguese, you can say:\n\n**Oi** (pronounced like the \"oy\" in \"boy\")\n\nYou can also say **Olá**, which means \"Hello.\""},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_385c9tcxha"}

      data: {"id":"gen_01KKHTR5HH880XKT0TQZ3X52G9","object":"chat.completion.chunk","created":1773346236,"model":"google/gemini-3-pro-preview","choices":[{"index":0,"delta":{"reasoning_details":[{"type":"reasoning.encrypted","data":"CikBjz1rX+4DEDV7RV3n6t2301U013mg9Qu7yBgTtRTcjrpgrZDIsVl6FQpfAY89a1+SdnfeTlwa7fwCp9P4Oo4WVy94S6G2CXJRTSSwxOUhvCY0sZLSMorKn4hztcPbVlgbCeqUsOGc9ESxAEGfnD7064/RHkCHL43h6arLy1mucMdv3jgmrCuEM+kKZgGPPWtfclX4isyhNi25CLWn+BaY7R18EdITVXNuOL0bDoMugP1RsX30NUa0nzDG4p1fTIjWu+yZ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1rX6tUmNJ12LwkaIxoUniT+0P06hzJHxyblGC3QsMkCRFoGodsA+jpoc0JRVd5errpvPQ2i41UfV+H72Iv8i4qCBX7AmVoic39nMCw8KIjJhb7J4+Xn90Lbcniks0qMlZ4n+59MkIIHu5BpRiIz1HBFZE6dEXgafJRXygbYWfHL29Dxg/as7wvL9vKsezYV2PtIvLJsGsgCMtyHdUimw6vbCwBZDk2EMoiwRSWlYsijaHB79rBlyjFDkjrTdyb2acQ+rZ5QAciVUdJMbyurorJs/hnqbgY5dieh4wzIaquRb4ZwbUbY2Vs6L0iT1VgPMdEn84axulxQ5ra1+oJUNNrfYwbkETmOAFojKhiAA==","format":"google-gemini-v1","index":0}]},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_385c9tcxha"}

      data: {"id":"gen_01KKHTR5HH880XKT0TQZ3X52G9","object":"chat.completion.chunk","created":1773346236,"model":"google/gemini-3-pro-preview","choices":[{"index":0,"delta":{"provider_metadata":{"google":{"promptFeedback":null,"groundingMetadata":null,"urlContextMetadata":null,"safetyRatings":null,"usageMetadata":{"thoughtsTokenCount":267,"promptTokenCount":9,"candidatesTokenCount":35,"totalTokenCount":311,"trafficType":"PROVISIONED_THROUGHPUT"}},"gateway":{"routing":{"originalModelId":"google/gemini-3-pro-preview","resolvedProvider":"vertex","resolvedProviderApiModelId":"gemini-3-pro-preview","internalResolvedModelId":"vertex:gemini-3-pro-preview","fallbacksAvailable":["google"],"internalReasoning":"Selected vertex as preferred provider for gemini-3-pro-preview. 1 fallback(s) available: google","planningReasoning":"System credentials planned for: vertex, google. Total execution order: vertex(system) → google(system)","canonicalSlug":"google/gemini-3-pro-preview","finalProvider":"vertex","attempts":[{"provider":"vertex","internalModelId":"vertex:gemini-3-pro-preview","providerApiModelId":"gemini-3-pro-preview","credentialType":"system","success":true,"startTime":303677.880492,"endTime":308426.540584,"statusCode":200}],"modelAttemptCount":1,"modelAttempts":[{"modelId":"vertex:gemini-3-pro-preview","canonicalSlug":"google/gemini-3-pro-preview","success":true,"providerAttemptCount":1,"providerAttempts":[{"provider":"vertex","internalModelId":"vertex:gemini-3-pro-preview","providerApiModelId":"gemini-3-pro-preview","credentialType":"system","success":true,"startTime":303677.880492,"endTime":308426.540584,"statusCode":200}]}],"totalProviderAttemptCount":1},"cost":"0.003642","marketCost":"0.003642","generationId":"gen_01KKHTR5HH880XKT0TQZ3X52G9","billableWebSearchCalls":0}}},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":9,"completion_tokens":35,"total_tokens":44,"cost":0.003642,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0,"upstream_inference_completions_cost":0},"completion_tokens_details":{"reasoning_tokens":267,"image_tokens":0},"cache_creation_input_tokens":0,"market_cost":0.003642},"system_fingerprint":"fp_385c9tcxha","generationId":"gen_01KKHTR5HH880XKT0TQZ3X52G9"}

      data: [DONE]

    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 4.949157542s
