Skip to content
API referenceDashboard

Messages

Anthropic-compatible Messages API.

POST https://api.solcardinference.ai/v1/messages

Request and response follow the Anthropic Messages format. Authenticate with x-api-key or Authorization: Bearer; the anthropic-version header is accepted and not required.

Field Type Notes
model string Required. A model ID.
messages array Required. user and assistant messages with text, tool_use and tool_result blocks.
max_tokens integer Up to 32,768.
system string | array
stream boolean
temperature number
top_p number
top_k integer
stop_sequences array
tools array Custom tools with input_schema.
tool_choice object

Not supported: thinking, server tools, and image or document blocks.

curl https://api.solcardinference.ai/v1/messages \
-H "x-api-key: $SOLCARD_INFERENCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "flash", "max_tokens": 512, "messages": [{ "role": "user", "content": "Hi" }] }'