POST
Anthropic-Compatible Messages

Overview

Geoff implements a subset of the Anthropic Messages API over Stacknet models. Configure an Anthropic SDK with https://geoff.ai/api and use your Geoff API key.

Configuration

Supported features and limits

  • Text messages, system text/blocks, and conversation history.
  • Base64 and URL image blocks, when the selected worker model supports vision.
  • Custom tools, tool results, and streamed tool_use / input_json_delta blocks. Tool arguments currently arrive after the worker completes the tool response.
  • tool_choice values auto, any, tool, and none; disable_parallel_tool_use maps to the worker’s parallel-tool setting.
  • Required positive-integer max_tokens, temperature from 0 to 1, top_p, and up to four stop_sequences.
  • JSON responses by default; SSE when stream: true.
Models such as magma select Stacknet inference. This endpoint does not imply access to Anthropic’s Claude models. Worker capabilities determine whether vision and tool controls are available. Extended thinking, documents, server tools, top_k, structured output configuration, context/container controls, and max_tokens: 0 cache warming are unsupported and return validation errors. Paid traffic through the current Rust settlement gate is buffered until billing commits, even when SSE was requested. Other paths can stream progressively. Disconnecting a client does not guarantee cancellation of inference.

Authorizations

Authorization
string
header
required

Bearer API_key, can be found in Account Management > API Keys.

Headers

X-Stack-Id
string
default:stk_jmqog66ha0mugmro
required

Supplied automatically by the documentation playground.

Body

application/json
model
enum<string>
default:magma
required

Select a supported model layer.

Available options:
magma,
pyro,
pyro:max
max_tokens
integer
required

Maximum number of tokens to generate.

messages
object[]
required

Array of message objects with role and content fields.

system
string

System prompt.

stream
boolean
default:false

Whether to stream the response via SSE.

temperature
number
default:1

Sampling temperature between 0 and 2.

top_p
number
default:1

Nucleus sampling parameter.

tools
object[]

Tool definitions for function calling.

Response

200 - application/json

Successful response in Anthropic Messages format.

id
string
type
string
role
string
model
string
content
object[]
stop_reason
string
usage
object