OpenAI Text Embedding 3 Small คือโมเดล embedding น้ำหนักเบาจาก OpenAI ที่ส่งออกเวกเตอร์ 1536 มิติ ในราคาประมาณหนึ่งในห้าของรุ่น Large เป็นตัวเลือกเริ่มต้นสำหรับการค้นหาเชิงความหมายปริมาณมาก การกำจัดข้อมูลซ้ำ และการจำแนกประเภทที่ต้นทุนต่อโทเค็นสำคัญกว่าการเรียกคืนสูงสุด
เปลี่ยนแทน OpenAI ได้ทันที แค่เปลี่ยน base_url และ model เท่านั้น
# Python - pip install openai from openai import OpenAI client = OpenAI( base_url="https://meshtok.com/v1", api_key="sk-your-MeshTok-key", ) resp = client.chat.completions.create( model="openai/text-embedding-3-small", messages=[{"role":"user","content":"Hello!"}], ) print(resp.choices[0].message.content)
# cURL curl https://meshtok.com/v1/chat/completions \ -H "Authorization: Bearer sk-your-MeshTok-key" \ -H "Content-Type: application/json" \ -d '{"model":"openai/text-embedding-3-small","messages":[{"role":"user","content":"Hello!"}]}'
โมเดลอื่นๆ ที่คุณอาจสนใจ
Frontier 3072-dim embeddings for RAG and search.
OpenAI’s latest frontier model.
Balanced GPT-5 for production.
Code-tuned GPT-5 for engineering.