Create a message
Send a structured list of input messages and the model will generate the next message in the conversation. This endpoint is compatible with Anthropic’s Messages API format, allowing you to use the Anthropic SDK with Infercom models.
Documentation Index
Fetch the complete documentation index at: https://docs.infercom.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Infercom API Key
Headers
The API version to use. Supported but optional.
"2023-06-01"
Body
Message creation parameters
Request body for creating a message.
The model ID to use. Call GET /v1/models to retrieve the current list of available models. See available models for details.
"MiniMax-M2.7"
The conversation messages.
1The maximum number of tokens to generate.
x >= 11024
System prompt providing context and instructions.
Sampling temperature between 0 and 1.
0 <= x <= 11
Nucleus sampling parameter.
0 <= x <= 1Top-k sampling parameter.
x >= 0Custom stop sequences.
Whether to stream the response.
Tools the model may use.
How the model should use the provided tools.
- Tool Choice Auto
- Tool Choice Any
- Tool Choice Tool
Response
Successful response. Returns a Message object (non-streaming), or a stream of Server-Sent Events (when stream: true).
A message response from the API.
Unique message identifier.
"msg_013Zva2CMHLNnXjNJJKqJ2EF"
Object type, always "message".
"message"The role of the message author, always "assistant".
"assistant"The generated content blocks.
A text content block in an Anthropic message.
- Text Block
- Tool Use Block
The model used to generate the response.
"MiniMax-M2.7"
The reason generation stopped.
end_turn, max_tokens, stop_sequence, tool_use Token usage information.
The stop sequence that triggered stopping, if any.