Skip to main content

1. Create an API key

  1. Sign in at platform.fortytwo.network.
  2. Open Credits, press Buy credits and complete the purchase.
  3. Open API keys, press Create API key, enter a Name and press Create API key. 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 example uses qwen/qwen3.8-27b; any model ID from Models works the same way. The response is a standard chat completion. The answer is in choices[0].message.content, and the token counts are in usage. A model that reasons does so 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.

Use with your agent

Connect Hermes Agent, Kilo Code, Cline, Pi and other agents.
Last modified on November 13, 2026