/v1/chat/completions endpoint is the primary interface for text-based workflows. It supports streaming, tool calling, and structured outputs across all providers.
Standard Request
Advanced Features
Tool Calling (Function Calling)
Inworld Router normalizes tool calling. You define tools in the OpenAI format, and the router translates them for Anthropic or Google models.Structured Outputs (JSON Mode)
Force the model to return valid JSON by settingresponse_format: { "type": "json_object" }. Inworld Router ensures the underlying provider respects this constraint.