What is the default temperature of GPT-4o when using an API?

I’ve used GPT4-o for text generation (see below), but I’m not sure what is the default temperature setting is. Does anyone have an idea?

     completion = client.chat.completions.create(
         model="gpt-4o",
         messages=message_x
       )

Welcome to the Forum!

It normally defaults to 1.

You can information about all the parameters’ default values in the API reference: https://platform.openai.com/docs/api-reference/chat/create

2 Likes