Overview
This endpoint provides native Anthropic Messages API compatibility. Use this for Claude models with features like extended thinking.Base URL for Anthropic SDK:
https://api.lemondata.cc (no /v1 suffix)Request Headers
Your LemonData API key. Alternative to Bearer token.
Anthropic API version. Use
2023-06-01.Request Body
Claude model ID (e.g.,
claude-sonnet-4-6 or claude-opus-4-6).Array of message objects with
role and content.Maximum tokens to generate.
System prompt (separate from messages array).
Sampling temperature (0-1).
Enable streaming responses.
Extended thinking configuration (Claude Opus 4.5).
type(string):"enabled"to enablebudget_tokens(integer): Token budget for thinking
Available tools for the model.
How the model should use tools. Options:
auto, any, tool (specific tool).Nucleus sampling parameter. Use either temperature or top_p, not both.
Only sample from the top K options for each token.
Custom stop sequences that will cause the model to stop generating.
Metadata to attach to the request for tracking purposes.
Response
Unique message identifier.
Always
message.Always
assistant.Array of content blocks (text, thinking, tool_use).
Model used.
Why generation stopped (
end_turn, max_tokens, tool_use).Token usage with
input_tokens and output_tokens.