Skip to main content
POST
Claude-Opus-4-20250514 - Text To Text
Claude’s official format for the text to text API.

Parameters

Messages Array Structure

Each message object in the messages array should have the following structure:

Content Array Structure (when content is an array)