Chat Completions API
call_model_with_org_keyRun a non-streaming model call with your own organization-scoped personal runtime key ID. Omit project_uuid for organization policies, or select a live project in your organization. Normal policy, member budget and inference charges apply. Secrets remain server-side. Use get_trace_with_org_key with the same optional project target when retention is enabled. 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": {
"id": "<id>",
"model": "<model>",
"messages": "<messages>"
},
"name": "call_model_with_org_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Runtime API key ID in this project; its secret is never returned by this operation | |
| 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. | |
| project_uuid | No | Optional project target for your own organization-scoped personal key. Omit for organization policies. | |
| 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. |