Skip to main content
The Fortytwo API implements the OpenAI Chat Completions API. Point an OpenAI SDK or client at it with two settings: Clients that read environment variables can use OPENAI_BASE_URL and OPENAI_API_KEY. Fields the API does not use are accepted and ignored: they have no effect and no error reports them. A field set to null counts as not sent. A few OpenAI fields are accepted only with values that change nothing; another value returns 400 invalid_request. They are listed below.

Endpoints

Request fields

The API also accepts top_k, min_p and repetition_penalty, sent to the model like the parameters above — see Chat completions.

Messages

Response

Last modified on November 13, 2026