Infomaniak Aitools icon

Infomaniak Aitools

Interact with Infomaniak Aitools API

Usage > V2 > Open AI → Create Chat Completion

AI-generated

Summary

Create a chat completion using the Infomaniak AI Tools API (V2 OpenAI endpoint).

Inputs

  • Authentication — Choose OAuth2 or API Key authentication.
  • Product Id (required) — The AI Tools product identifier (numeric).
  • Messages (required) — Array of message objects defining the conversation.
  • Model (required) — Model name to use for completion (e.g., qwen3, swiss-ai/Apertus-70B-Instruct-2509).
  • Additional Body Fields — Optional parameters such as Logit Bias, Logprobs, Max Completion Tokens, Temperature, Tool Choice, Tools, Stream, etc.
  • Return Full Response — If true, returns the raw HTTP response; otherwise returns the extracted chat completion object.

Output shape

object

Contains the chat completion result (or the full response when Return Full Response is enabled).

Examples

Example 1: Simple completion

Set Product Id, Messages, Model; leave optional fields at defaults.

Links

Discussion