Generate AI completions with intelligent routing.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request body for the completions v2 endpoint. Exactly one routing mechanism (auto_routing, model, or model_family) must be specified.
Chat message history with role and content fields.
Enables intelligent model selection. When true, the system analyzes queries to select the optimal model tier balancing speed versus capability. Mutually exclusive with model and model_family.
Specific Gloo model identifier (e.g., gloo-openai-gpt-5-pro). Provides full control and reproducibility. Mutually exclusive with auto_routing and model_family.
Provider family for model selection. The system optimizes model choice within that family. Mutually exclusive with auto_routing and model.
openai, anthropic, google, open source Theological perspective to apply. Options: evangelical, catholic, mainline. Omit for general Christian perspective.
evangelical, catholic, mainline, not_faith_specific Enables streaming responses. When true, responses are sent as server-sent events as tokens are generated.
Sampling temperature controlling randomness. Higher values (e.g., 1.5) make output more random, lower values (e.g., 0.2) make it more deterministic.
0 <= x <= 2Maximum number of tokens to generate in the response.
x >= 1Function calling definitions. Each tool includes type, name, description, and parameters schema.
Controls which tool (if any) the model should use.
none, auto, required Successful completion response
Response from the completions v2 endpoint.
Unique completion identifier.
Object type, always 'chat.completion'.
Unix timestamp of when the completion was created.
The model that was selected and used for the completion.
The routing method used: auto_routing, model_selection, or provider_selection.
The performance tier assigned by the routing system.
Confidence score for the routing decision (0.0 to 1.0).
The theological perspective that was applied to the response.
The model provider name (e.g., openai, anthropic, google).
List of completion choices.
Token consumption metrics.