# File types support for Chat Completion beyond PDF

**URL:** <https://community.openai.com/t/file-types-support-for-chat-completion-beyond-pdf/1284846>\
**Category:** API\
**Tags:** api, file-uploads\
**Created:** [June 10, 2025, 9:24pm UTC](https://community.openai.com/t/file-types-support-for-chat-completion-beyond-pdf/1284846 "2025-06-10T21:24:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jack.k](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jack.k](https://community.openai.com/u/jack.k)\
**Post date:** [June 10, 2025, 9:24pm UTC](https://community.openai.com/t/file-types-support-for-chat-completion-beyond-pdf/1284846/1 "2025-06-10T21:24:13Z")

</div>

Hi, I know chat\_completion API now supports PDF files natively. I also know image files are supported. What other file types are supported? I am interested to know if I can upload other file types like .py, .ipynb, .javascript etc?

---

<div class="post-metadata">

**Author:** ![\_j](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/_j/32/766292_2.png) [@\_j](https://community.openai.com/u/_j)\
**Post date:** [June 10, 2025, 9:54pm UTC](https://community.openai.com/t/file-types-support-for-chat-completion-beyond-pdf/1284846/2 "2025-06-10T21:54:51Z")

</div>

You have mentioned PDF as user file input for direct context placement, and also images for computer vision, which can be used via (only) user messages.

Other destinations:

- **file search**. This is by vector store file ID attachment, document files chunked with text extraction.
- **code interpreter**. This is by “container” file ID attachment, then available in the Python notebook’s mount point

You can look at the [internal tools documentation](https://platform.openai.com/docs/guides/tools-file-search) of Responses API or Assistants API.

Not available on Chat Completions - for there, you’d have to develop your own tool for function-calling or information placement method.
