invoke_model
Send AI requests to a chosen endpoint and model for operations including chat, embedding, image generation, TTS, STT, and rerank, by providing a compatible payload.
Instructions
Forward a request to the selected (endpoint, model).
Args:
endpoint: endpoint name registered via the CLI.
model: model_id as returned by list_models.
operation: one of chat / embedding / image_gen / tts / stt / rerank.
payload: upstream-compatible body (OpenAI shape for openai-compat
endpoints). The model field is set automatically. The response
is passed through verbatim; errors are returned inside error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| payload | Yes | ||
| endpoint | Yes | ||
| operation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||