apicheats.dev Cheat sheet Raw .md
POST

Try POST /vector_stores/{vector_store_id}/files — OpenAI API

OpenAI playground

Create vector store file

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.openai.com; the proxy stores and logs nothing about them.

Path

Body application/json

3 body fields
  • file_id · required · string — A [File](https://developers.openai.com/api/reference/resources/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. For multi-file ingestion, we recommend [`file_batches`](https://developers.openai.com/api/reference/resources/vector_stores/subresources/file_batches/methods/create) to minimize per-vector-store write requests.
  • chunking_strategy · optional · object — The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy.
  • attributes · optional · object — Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.