Skip to main content

Chat Completions Parameters

These parameters are available on the Chat Completions endpoint (OpenAI-compatible).

Core Parameters

Sampling Parameters

Avoid setting both temperature and top_p at the same time. Use one or the other for best results.

Penalty Parameters

Stop Sequences

Response Format

JSON mode:
When using JSON mode, you must also instruct the model to output JSON in your system or user message, e.g. “Respond in JSON format.”

Function Calling


Messages Parameters

These parameters are available on the Messages endpoint (Anthropic-compatible).

Core Parameters

Sampling Parameters

Stop Sequences

Tool Use


Common Patterns

Deterministic Output

For reproducible results, use low temperature with a seed:

Creative Writing

For creative, varied output:

Structured Extraction

For extracting structured data:

Code Generation

For code generation tasks:

Conversational

For natural, engaging conversations: