Uploads an image file (JPEG, PNG, GIF or WebP, max 64 MiB) which can later be referenced by its file_id. Form fields: file, purpose (user_data) and optionally expires_after[anchor] (created_at) and expires_after[seconds] (3600-2592000).
/files
| Name | In | Type | Description |
|---|---|---|---|
| payload | body | multipart/form-data |