EUrouter icon

EUrouter

Interact with the EUrouter API

Actions4

Chat → Create

AI-generated

Summary

Create a chat completion by sending an array of messages and specifying the model to use, optionally including additional parameters to customize the request.

Inputs

  • Model (required) — The Model ID to use for the chat completion.
  • Messages (required) — An array of messages formatted as OpenAI role/content objects, representing the chat conversation history.
  • Additional Parameters — Optional JSON object to include extra request fields such as temperature, max_tokens, or response_format.

Output shape

a single response object from the /chat/completions API endpoint containing the generated chat completion result

The output is the direct API response from the POST call to /chat/completions, including any fields returned by the EUrouter service. The request body merges the model, messages, and any additional parameters provided by the user.

Examples

Example 1: Generate a reply using a conversational model

Set the model to the desired chat model ID, provide conversation messages in the specified JSON format, and optionally add parameters like temperature for response variation.

Links

Discussion