Generate a chat completion using the GPT 4o mini model
Bearer authentication using API key
Request payload
OpenAI-compatible chat completions API request format
Array of conversation messages with roles
1Model name to use for the request
openai/gpt-4o-mini Penalty for frequent tokens
-2 <= x <= 2Maximum number of tokens to generate
1 <= x <= 4096Penalty for new topics
-2 <= x <= 2Penalty for repeating tokens (1.0 = no penalty)
x >= 0Enable streaming response
Controls randomness in output (higher = more random)
0 <= x <= 2Enable thinking/reasoning mode
Nucleus sampling parameter (controls diversity)
0 <= x <= 1Web search configuration
Successful response
Response object