Docs

Create Chat Completion

POST

Query

Field selectionChoose which fields should be included in the response. Learn more
string

Comma-separated response fields to include.

Body

Arguments
stringrequired

Model ID to use

arrayrequired

Conversation messages (at least one item)

number

Maximum tokens to generate

number

Sampling temperature (0-2)

number

Nucleus sampling threshold (0-1)

number

Penalize repeated tokens (-2 to 2)

number

Penalize tokens already in text (-2 to 2)

boolean

Whether to return log probabilities

array of string

Stop sequence string or JSON array of up to 16 sequences

boolean

Enable streaming response

boolean

Include usage chunks before [DONE] when stream=true

string

Reasoning mode type

string

Response format type

array of object

JSON array of tool/function definitions for function calling

string

Tool choice mode or JSON object

number

Number of most likely tokens to return (requires logprobs=true)

stringrequired

Role of each message

stringrequired

Content of each message

string

Optional participant name

string

Tool call ID for tool-role messages

stringrequired

Tool type

objectrequired

Function definition object

stringrequired

Function name

string

Function description

object

JSON Schema describing function parameters

boolean

Enable strict schema adherence

object

Response format object

Every app you connect,one REST pattern

Call any app with one REST pattern. MindCloud handles each provider's auth, request shape, and responses for you.

Learn what the Universal API is
One REST patternUse the same request structure across apps like Slack, HubSpot, Salesforce, and thousands more.
Managed connectionsSend a MindCloud connection ID instead of handling provider tokens, refresh logic, and credential storage yourself.
Action-level docsEach action page shows the exact endpoint, required arguments, optional controls, and response behavior for that app version.