1. Create an API key
- Sign in at platform.fortytwo.network.
- Open Credits and press Buy credits.
- Open API keys, press Create key (New key if the account already has keys), and copy the key. It is shown only once.
2. Set the key
3. Send a request
The API is compatible with the OpenAI SDKs. Set the base URL tohttps://api.fortytwo.network/v1.
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.