메인 콘텐츠로 건너뛰기
POST
/
v1
/
messages
Claude messages
curl --request POST \
  --url https://maas.apigo.ai/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
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.apigo.ai/llms.txt

Use this file to discover all available pages before exploring further.

Anthropic의 공식 HTTP 문서는 전용 이미지 생성 엔드포인트가 아닌 메시지 API를 통해 이미지 이해를 공개합니다.
  • 이미지는 텍스트 지침이나 질문과 함께 content 내부의 이미지 블록으로 전달됩니다.
  • Anthropic의 공개 HTTP 문서는 현재 전용 Claude 이미지 생성 또는 이미지 편집 엔드포인트를 정의하지 않습니다.
  • 이미지는 base64 데이터, URL 또는 Files API 참조로 전송될 수 있습니다.
  • 실제 이미지 생성이나 이미지 편집이 필요한 경우 공식 API가 해당 출력을 지원하는 공급자에게 연결하세요.

인증

x-api-key
string
header
필수

헤더

anthropic-version
string
필수

Anthropic API version header.

예시:

"2023-06-01"

본문

application/json
model
string
필수
예시:

"claude-sonnet-4-5"

max_tokens
integer
필수
messages
object[]
필수
system
tools
object[]
stream
boolean

응답

Successful Claude message response

id
string
type
enum<string>
사용 가능한 옵션:
message
role
enum<string>
사용 가능한 옵션:
assistant
model
string
content
object[]
stop_reason
string
stop_sequence
string
usage
object