choices[0].message.content. The key needs the scope chat:completions. You create it in the API dashboard.
If the client sets store to true, take that field out. The prompt and the completion are processed for that call and are not kept. reasoning_effort accepts none and high. Leave frequency_penalty and presence_penalty out, including when the value is 0.
From here, Generate text, streaming, and tools are the same client.
