upload_file
Send base64-encoded JPEG, PNG, GIF, or WebP image data to DeepSeek and receive a reusable file_id. Server-local paths are not accepted; optional expiry is 3,600 to 2,592,000 seconds.
Instructions
Upload a JPEG, PNG, GIF, or WebP image to DeepSeek and return a reusable file_id. Supply base64 image data directly; server-local file paths are intentionally not accepted. Optional expiry is 3,600 to 2,592,000 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| file_data | Yes | ||
| expires_after_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| bytes | No | ||
| object | No | ||
| status | No | ||
| message | No | ||
| purpose | No | ||
| filename | No | ||
| retryable | No | ||
| created_at | No | ||
| error_type | No | ||
| expires_at | No | ||
| suggestion | No |