o1-preview and o1-mini do not support reasoning effort as an input.
It is only on the newly-released ‘o1’ and ‘o3-mini’ that have that.
These models also have a smaller feature set. You’ll also have to stick to chat completions and not sending system messages, among others, like no structured outputs…