Documentation
API Reference
Playground
Chat completionsResponsesSystem One
Document classificationEmbeddings

Studio API

Upload fileList filesRetrieve fileDelete file
Create jobRetrieve job

Search

Create vector storeList vector storesRetrieve vector storeModify vector storeDelete vector storeAdd file to vector storeList files in vector storeRetrieve file in vector storeRemove file from vector storeCreate file batchRetrieve file batchList files in file batchCancel file batchSearch vector store
Create response

Create vector store

Create a new vector store.


Example

Request

curl -X POST https://api.upstage.ai/v2/vector_stores \
  -H "Authorization: Bearer $UPSTAGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "product-docs",
    "metadata": {"team": "engineering"}
  }'

Response

{
  "id": "vs_abc123def456",
  "object": "vector_store",
  "created_at": 1711644800,
  "name": "product-docs",
  "usage_bytes": 0,
  "file_counts": {
    "in_progress": 0,
    "completed": 0,
    "failed": 0,
    "cancelled": 0,
    "total": 0
  },
  "status": "completed",
  "last_active_at": 1711644800,
  "expires_after": null,
  "expires_at": null,
  "metadata": {"team": "engineering"}
}

Retrieve job

Poll a job by job_id for its status and result. Covers the include query parameter, the response object (status, output, usage), and an example request and response.

List vector stores

List your vector stores. Covers the pagination parameters (limit, order, after, before), the list object returned (data, first_id, last_id, has_more), and an example request and response.

On this page

Create vector storeExampleRequestResponse
    POST
    /vector_stores
    /vector_stores

    The Authorization access token

    file_ids
    array

    chunking_strategy
    object

    expires_after
    object

    metadata
    object

    Authorization

    Authorization
    Required
    Bearer <token>

    In: header

    Request Body

    application/jsonRequired

    namestring

    A name for the vector store. Optional β€” if omitted, the response returns a deterministic placeholder unnamed-{last 8 chars of vector_store_id} (OpenAI compat).

    descriptionstring

    A description for the vector store. Accepted on Create only β€” not echoed in the response and not accepted on Update (matches OpenAI VectorStoreCreateParams).

    file_idsarray<string>

    List of file IDs to add to the vector store on creation.

    chunking_strategyobject

    Chunking strategy for files. Only {"type": "auto"} is supported. Can only be set when file_ids is provided.

    expires_afterobject

    Expiration policy.

    metadataobject

    Key-value metadata (max 16 keys, key max 64 chars, value max 512 chars).