Asteria Docs
Files

Upload File

Upload a file and return an id `chat/completions` can reference.

POST
/v1/files
Authorization<token>

Your API key (sk-ast-...)

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/files" \  -F file="string"
{  "id": "string",  "object": "file",  "bytes": 0,  "created_at": 0,  "filename": "string",  "purpose": "string"}