الهدف
بعد هالدرس تقدر ترسل صورة لـ Claude API وتاخذ تحليل، وتعرف حدود الـ Vision API (حجم، عدد الصور، دقة).
ليش هذا الحين؟
Prompt caching جاهز. الحين Vision — Claude مو بس يقرأ نص، يقدر يفهم الصور. هذا يفتح possibilities جديدة: تحليل screenshots، UI feedback، document scanning.
الفكرة
Claude يقبل:
نص: { type: "text", text: "..." }
صورة: { type: "image", source: { type: "base64", ... } }
{ type: "image", source: { type: "url", url: "..." } }
PDF: { type: "document", source: { ... } }
كل هذي في content array واحد
الحدود:
حجم الصورة: 5 MB max per image
عدد الصور: 100 per request
Formats: JPEG, PNG, GIF, WebP