---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 196
    host: ""
    body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"x-ai/grok-code-fast-1","max_tokens":4000,"usage":{"include":true}}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - OpenAI/Go 2.7.1
    url: https://openrouter.ai/api/v1/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: "\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n{\"id\":\"gen-1773323500-nF7twYYeGLtDW7HtZOIm\",\"object\":\"chat.completion\",\"created\":1773323500,\"model\":\"x-ai/grok-code-fast-1\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"Oi! (That's \\\"hi\\\" in Portuguese.)\",\"refusal\":null,\"reasoning\":\"First, the user said: \\\"Say hi in Portuguese.\\\" This is a simple request. I need to respond as a helpful assistant.\\n\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"First, the user said: \\\"Say hi in Portuguese.\\\" This is a simple request. I need to respond as a helpful assistant.\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"xfBMdNJZIgC4PLGqRkEwMBRi6Lc12yr0dZFmlhE5Pgsf7MDzm1/p9MT5MHbpP/nMzZaaWfwFCPhgBIZ/1hzhwkO5Sa+bX/mFnyRAiwvUKqJvyKJmxjH7aEl9Zg1ItUR9SoWEMk6DtKNmh2Q930alvhwrGVSSqPHr1lmombPzepnEx5T3EW7pnOXGMHZGRXXaPQ0TqzaRAaV7DZPyyS4k/SjTgkHBVIx4mdWZrfTZacIewtsJ4NH7QkAB9L67iwLmsILAnmIio1AUEZXRH2jFt340d+M0Qz8Qb5WbfUpp8BE4ZS19m4IsGU9iDp9NCcUTIeyuA3sRrLBM3CjZz8xsDVUHDbUWSMdPigaf055XFWktVXKzRW4ed81KEHjf+fU82mf3Jble+2IrB7WcyZ8jB2gFd9MsaeAa2CQKjB5ZwZ8v5Dk6n3vEZZNjvJ77WrZJh/qbk0bOgIxxWpnj6BRjD6TtYpqw76HzujNmdmlTbmMokv5725X9hzPoze4x8Es7V0ZXYIN5jY7Uj8r2SeMU1YnezCihx/IK9qqQSaMgPYXeHAushvbjwd4ocKQinLgyqlgnqpD9KcnblM4pslv6ycM9aWjXRwK2ddC0t8CiGCcuRZ9rxg7VEPHS6VVdBfE6Ip289EBXi5yj2jwb+5YB/IyN2ppupcj5nVoFxjR9HQHhPspLimQPrHuNk2C/2i3F9nSOt1ZqNa96Dx5T4q4CjdfVRq6zcEiBeTpAF4rr1Vh4MNl8zeGzLoOMrjfao0V56hmCEH8s0TZJOwjJ6dMt8tuYnTjPBaWcrFp99PKYVsim7G/zesRQliXdqNqayaJ6u8EyA+tNB/DUaz3DDm4PemPWw85ZssyBxsYx77ReyrtwilvxcXQfFSTqN/zpbUE1xUoprO4y+iFkoRI+k7tjd8rIqmTJGTvXreAfKVV0A8Mpzj0g5x0AhfpB\",\"format\":\"xai-responses-v1\",\"id\":\"rs_df0febbd-3149-9d1d-b8bd-2b796fea6488\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":213,\"completion_tokens\":174,\"total_tokens\":387,\"cost\":0.00026904,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":192,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00026904,\"upstream_inference_prompt_cost\":0.00000804,\"upstream_inference_completions_cost\":0.000261},\"completion_tokens_details\":{\"reasoning_tokens\":164,\"image_tokens\":0,\"audio_tokens\":0}}}"
    headers:
      Content-Type:
      - application/json
    status: 200 OK
    code: 200
    duration: 1.001425917s
