Skip to main content
Verwende /v1/messages, wenn dein Client bereits das Anthropic-Messages-Format spricht.
APIAny.AI verarbeitet die Anfrage und gibt eine Anthropic-kompatible Antwort zurück.

Tool-Nutzung

Deklariere Tools mit tools (jedes hat name, description, input_schema) und steuere die Auswahl mit tool_choice. Mehrstufige tool_use- / tool_result- Content-Blöcke werden unterstützt.

Streaming

Setze stream: true, um Anthropic-Server-Sent-Events zu empfangen: message_start, content_block_start, content_block_delta, content_block_stop, message_delta, message_stop.

Parameter

Unterstützt: model, messages, max_tokens (erforderlich), system, temperature, top_p, top_k, stop_sequences, tools, tool_choice und stream.