Skip to main content
POST
/
v1
/
messages
Claude messages
curl --request POST \
  --url http://sandbox.mintlify.com/v1/messages \
  --header 'Content-Type: application/json' \
  --header 'anthropic-version: <anthropic-version>' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "model": "claude-sonnet-4-5",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "请总结这张图片里的关键信息"
        }
      ]
    }
  ]
}
'
{
  "id": "msg_01ABCxyz",
  "type": "message",
  "role": "assistant",
  "model": "claude-sonnet-4-5",
  "content": [
    {
      "type": "text",
      "text": "图片中是一张产品宣传海报。"
    }
  ],
  "stop_reason": "end_turn",
  "usage": {
    "input_tokens": 128,
    "output_tokens": 48
  }
}
Based on Anthropic’s current public HTTP docs, Claude does not expose a dedicated video-generation endpoint. Video workflows usually require preprocessing before calling the Messages API.
  • Anthropic’s official multimodal docs focus on text, images, documents, and file references
  • There is no separate public Claude endpoint today for raw video understanding or video generation
  • In practice, Claude video integration is an engineering workflow built from preprocessing plus /v1/messages
  • For summaries, scene analysis, or video Q&A, extract frames, subtitles, or transcripts first and then send those derived inputs through Claude’s supported content blocks
  • If you need actual video generation, route the request to a provider whose official API supports video creation

Authorizations

x-api-key
string
header
required

Headers

anthropic-version
string
required

Anthropic API version header.

Example:

"2023-06-01"

Body

application/json
model
string
required
Example:

"claude-sonnet-4-5"

max_tokens
integer
required
messages
object[]
required
system
tools
object[]
stream
boolean

Response

Successful Claude message response

id
string
type
enum<string>
Available options:
message
role
enum<string>
Available options:
assistant
model
string
content
object[]
stop_reason
string
stop_sequence
string
usage
object