Gateway

Upload batch file

Uploads a provider file for batch processing and stores ownership in the authenticated workspace. Pass model so Phaseo can infer the upstream provider. Defaults to OpenAI when both model and provider are omitted.

post/batches/files

Request

  • Base URL: https://api.phaseo.app/v1
  • URL: https://api.phaseo.app/v1/batches/files
  • Auth: HTTP bearer

Query parameters

modelstring

Model identifier. This is a runtime string so newly released models can be used without waiting for an SDK update.

Example:ai21/jamba-1.5-large

Model id used to infer the upstream batch file provider.

provider'openai' | 'groq' | 'together' | 'mistral'

Advanced provider override for the upstream file upload.

Headers

x-phaseo-providerstring

Header alternative to the provider query parameter.

Response

Uploaded file metadata

idstring
objectstring
bytesinteger
created_atinteger
filenamestring
purposestring
statusstring
status_detailsobject

Changes

No recorded changes to this operation across all 1 revision of this API.