{
"model": "claude-sonnet-4-5-20250929",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": [
{
"type": "image",
"source": {
"type": "base64",
"media_type": "image/jpeg",
"data": "/9j/4AAQSkZJRg..."
}
},
{
"type": "text",
"text": "What is in this image?"
}
]
}
]
}curl --location -g --request POST 'http://api.example.com/v1/messages' \
--header 'x-api-key: sk-xxx' \
--header 'anthropic-version: 2023-06-01' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-sonnet-4-5-20250929",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": [
{
"type": "image",
"source": {
"type": "base64",
"media_type": "image/jpeg",
"data": "/9j/4AAQSkZJRg..."
}
},
{
"type": "text",
"text": "What is in this image?"
}
]
}
]
}'{
"model": "claude-sonnet-4-5-20250929",
"id": "msg_0138gU49SSccK4B99TSu9QJK",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "This appears to be an aerial/satellite view of agricultural land showing a patchwork of farm fields. The image displays:\n\n1. **Contour farming patterns** - The curved, striped patterns following the natural topography of the land to prevent erosion\n2. **Multiple agricultural plots** with different colors indicating various crops or stages of cultivation\n3. **Wind turbines** - Several white wind turbines are visible in the center and lower portions of the image\n4. **A small settlement** - There appears to be a cluster of buildings (likely a village or small town) in the upper left corner with reddish-brown roofs\n5. **Field boundaries and access roads** connecting different parcels of land\n6. **Varying vegetation** - Different shades of green, brown, and darker tones suggesting different crops, fallow fields, or different growing stages\n\nThis looks like a rural agricultural area, possibly in Europe, where sustainable farming practices like contour plowing are used alongside renewable energy infrastructure (wind farms)."
}
],
"stop_reason": "end_turn",
"stop_sequence": null,
"usage": {
"input_tokens": 858,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"cache_creation": {
"ephemeral_5m_input_tokens": 0,
"ephemeral_1h_input_tokens": 0
},
"output_tokens": 219,
"service_tier": "standard"
}
}