Home Posts Projects

How openai handles file uploads via their API

07-12-2025

  • Upload object
    • https://platform.openai.com/docs/api-reference/uploads/create
    • supported types
      • https://platform.openai.com/docs/assistants/tools/file-search#supported-files
  • made up of Part objects (which contain the raw bytes)
    • https://platform.openai.com/docs/api-reference/uploads/add-part
  • this gets converted into a File object on the server side

Related

15-08-2025

Openai python client is autogenerated by stainless using openapi spec to sdk

03-12-2024

Image tokens and embeddings

30-01-2025

Tools to convert content to LLM-friendly text prompts

© 2026 Luke Miloszewski

Email Address GitHub Twitter