Skip to main content
The chat completions endpoint is the heart of Forii. It’s fully OpenAI-compatible — every parameter OpenAI supports, Forii supports.

Structured Outputs

JSON schema and JSON object modes for guaranteed structured responses

Function Calling

Connect LLMs to external tools, APIs, and databases

Reasoning Models

Control chain-of-thought depth for DeepSeek-R1 and Qwen3

Context & Metadata

Graceful truncation for long prompts, cost attribution metadata

Basic usage

Response

Parameters

Core parameters

Structured output & tool parameters

See Structured Outputs and Function Calling for full details.

Forii extensions

Streaming

Stream tokens as they arrive using Server-Sent Events (SSE).

Streaming response format