Skip to main content

1. Create an API key

  1. Sign in at platform.fortytwo.network.
  2. Open Credits and press Buy credits.
  3. Open API keys, press Create key (New key if the account already has keys), and copy the key. It is shown only once.
Details are on Get access.

2. Set the key

3. Send a request

The API is compatible with the OpenAI SDKs. Set the base URL to https://api.fortytwo.network/v1.
The response is a standard chat completion. The answer is in choices[0].message.content, and the token counts are in usage. The model reasons before it answers by default; the reasoning is in choices[0].message.reasoning and is billed as output — see Pricing.

If the request fails

Other codes are on Errors. What to do about each is in Common problems.

Next steps

Models

Model IDs, limits and supported features.

Chat completions

Request fields, tool calling and structured output.

Streaming

Receive the response as it is generated.

OpenAI compatibility

What differs from the OpenAI API.
Last modified on October 3, 2026