images.py — anthropic-sdk-python Source File
Architecture documentation for images.py, a python file in the anthropic-sdk-python codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 78454ca5_0857_65cf_c82e_0d8972240e92["images.py"] 525f4270_cbfe_512c_fbe4_e6566e0cdf13["pathlib"] 78454ca5_0857_65cf_c82e_0d8972240e92 --> 525f4270_cbfe_512c_fbe4_e6566e0cdf13 d10c5377_2939_0f0b_cc44_8759393f2853["anthropic"] 78454ca5_0857_65cf_c82e_0d8972240e92 --> d10c5377_2939_0f0b_cc44_8759393f2853 style 78454ca5_0857_65cf_c82e_0d8972240e92 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from pathlib import Path
from anthropic import Anthropic
client = Anthropic()
response = client.messages.create(
max_tokens=1024,
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Hello!",
},
{
"type": "image",
"source": {
"type": "base64",
"media_type": "image/png",
"data": Path(__file__).parent.joinpath("logo.png"),
},
},
],
},
],
model="claude-sonnet-4-5-20250929",
)
print(response.model_dump_json(indent=2))
Dependencies
- anthropic
- pathlib
Source
Frequently Asked Questions
What does images.py do?
images.py is a source file in the anthropic-sdk-python codebase, written in python.
What does images.py depend on?
images.py imports 2 module(s): anthropic, pathlib.
Where is images.py in the architecture?
images.py is located at examples/images.py (directory: examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free