Docs

Create Chat Prefix Completion (Beta)

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; last message must be assistant with prefix=true

number

Sampling temperature (0-2)

number

Maximum tokens to generate

number

Nucleus sampling (0-1)

array of string

Stop sequences

boolean

Enable streaming response

boolean

Include usage chunk when stream=true

boolean

Whether to return log probabilities

string

Response format type

number

Penalize repeated tokens (-2 to 2)

number

Penalize tokens already in text (-2 to 2)

string

Reasoning mode 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

boolean

Enable prefix completion on assistant message

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.