Create Message
Generates a model response for the given conversation. This endpoint is fully compatible with the Anthropic Messages API, so you can use the Anthropic SDK by pointing its base URL at Subconscious.
Documentation Index
Fetch the complete documentation index at: https://docs.subconscious.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key from your Subconscious dashboard. Accepted by the Anthropic Messages endpoints in place of the Authorization header, for use with the Anthropic SDK.
Body
The model to use for completion.
subconscious/tim-qwen3.6-27b "subconscious/tim-qwen3.6-27b"
The conversation history. Each message has a role and content. Content is either a string or an array of content blocks (text, image, tool_use, tool_result, thinking).
[
{
"role": "user",
"content": "What is the capital of France?"
}
]
The maximum number of tokens to generate before stopping. Required.
1024
A system prompt: a string or an array of text content blocks.
If true, responses are streamed as Server-Sent Events using the Anthropic event protocol (message_start, content_block_start, content_block_delta, content_block_stop, message_delta, message_stop).
Amount of randomness injected into the response.
0 <= x <= 1Nucleus sampling parameter.
0 <= x <= 1Only sample from the top K options for each subsequent token.
Custom text sequences that will cause the model to stop generating.
Definitions of tools the model may use.
How the model should use the provided tools.
Enable extended thinking. When enabled, the response includes thinking content blocks before the final text block.
An object describing metadata about the request.
Subconscious extension. Controls model-specific features such as auto-compaction (Subconscious Cache).
Response
Successful message
A unique identifier for the message.
"msg_abc123"
The object type.
message assistant An array of content blocks. Text blocks ({type:"text", text}), thinking blocks ({type:"thinking", thinking, signature}), and tool_use blocks ({type:"tool_use", id, name, input}).
"subconscious/tim-qwen3.6-27b"
The reason the model stopped generating.
end_turn, max_tokens, tool_use The custom stop sequence that was generated, if any.