/v1/messages, producing POST /anthropic/v1/messages. That Messages request is mapped through Planck’s standard chat pipeline, just like POST /v1/messages. Other paths under /anthropic/v1/* use native Anthropic passthrough.
Messages with the Anthropic SDK
api_key, but this value is your actual Planck API key. The SDK sends it in x-api-key, which Planck accepts. This field is not a compatibility label.
Messages with cURL
max_tokens is required for Anthropic Messages. Planck does not add a default if it is omitted.
Explicit BYOK
If you want to provide an Anthropic key for this request, keep the Planck key in the SDK’sapi_key option and send the provider key separately:
POST /v1/messages remains available with Authorization: Bearer $PLANCK_API_KEY.
See Native Anthropic streaming for SDK setup, the complete event lifecycle, tool-input deltas, and stream errors.
See Reasoning and thinking for adaptive thinking and effort examples.
This endpoint uses the shared AI Gateway error envelope. See the
Error Handling & Fallback guide for
response examples, retry rules, fallback behavior, and streaming errors.