Maia Router icon

Maia Router

Interact with Maia Router API for AI model routing

Actions6

Chat → Message a model

AI-generated

Summary

Message a model

Inputs

  • Model (required) — ID of the model to use (e.g., maia/gemini-2.5-flash).
  • Messages (required) — Array of message objects to send to the model; each message has a role (system, user, assistant) and content.
  • Additional Fields — Optional generation parameters and tool configurations.

Output shape

object

The raw completion response from the Maia Router API (chat/completions endpoint).

Examples

Example 1: Generate a simple chat reply

Model: maia/gemini-2.5-flash; Messages: [{ role: 'user', content: 'Hello, how are you?' }]; Additional Fields left at defaults.

Discussion