Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Uploads

Use Uploads to upload large files in multiple parts.

Cancel upload
client.Uploads.Cancel(ctx, uploadID) (*Upload, error)
POST/uploads/{upload_id}/cancel
Complete upload
client.Uploads.Complete(ctx, uploadID, body) (*Upload, error)
POST/uploads/{upload_id}/complete
Create upload
client.Uploads.New(ctx, body) (*Upload, error)
POST/uploads
ModelsExpand Collapse
type Upload struct{…}

The Upload object can accept byte chunks in the form of Parts.

UploadsParts

Use Uploads to upload large files in multiple parts.

Add upload part
client.Uploads.Parts.New(ctx, uploadID, body) (*UploadPart, error)
POST/uploads/{upload_id}/parts
ModelsExpand Collapse
type UploadPart struct{…}

The upload Part represents a chunk of bytes we can add to an Upload object.