Chat Completions API
call_modelRun a non-streaming text or structured-output model call using a selected project UUID and runtime API key ID. Send model and messages; max_tokens, temperature and response_format are optional. For typed output use response_format={type:json_schema,json_schema:{name:answer,strict:true,schema:}} and choose a model supporting structured_output. Normal inference costs, plan restrictions and policy checks apply. Use get_trace with the returned meta.trace_uuid when retention is enabled. Advanced tool calling and multimodal inputs use the SDK or HTTP API. Requires runtime:call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"uuid": "<uuid>",
"id": "<id>",
"model": "<model>",
"messages": "<messages>"
},
"name": "call_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Runtime API key ID in this project; its secret is never returned by this operation | |
| uuid | Yes | Project UUID in the authorized organization | |
| model | Yes | Exact model ID from list_models, or a deployed dynamic/<route-name>. | |
| messages | Yes | Text conversation to send to the model. A single user message is enough to test a model. | |
| max_tokens | No | Optional output token limit. Omit to use the model default. | |
| temperature | No | Optional sampling temperature. Omit to use the model default. | |
| response_format | No | Optional structured output. Omit or use null for ordinary text. json_object requests JSON; json_schema specifies its shape. The returned message content contains the generated JSON text. |