DeepSeek file upload: what works in chat, API image uploads, file_id, limits, and safety

DeepSeek file upload can mean more than one thing. Consumer chat upload depends on the current official interface and service status. In the official API, the Files API accepts supported images and documents, including PDF, Word, PowerPoint, spreadsheets, ebooks, and plain text, for use with deepseek-flash. Upload with the appropriate purpose, then reference the returned file_id. Document parsing and file reuse are not the same as built-in file search or RAG.

The most important distinction is this: DeepSeek Chat upload and DeepSeek API file upload are different surfaces. The chat interface may expose changing user-facing features. The API documents specific file types, purposes, upload limits, and request blocks. Images, parsed documents, and plain-text files do not all use the same upload settings.

Documentation checked: October 7, 2026. DeepSeek UI behavior, supported file types, service status, and API limits can change, so verify critical details on the official pages before publishing instructions or building production workflows. Files API document support, parsing limits, and related fees rechecked: November 18, 2026.

What “DeepSeek file upload” can mean

The phrase “DeepSeek file upload” is often used loosely. To avoid confusion, separate these meanings first:

Upload typeWhere it appearsBest forWhat official docs supportMain caution
DeepSeek Chat / web app file uploadThe consumer chat interface at chat.deepseek.com, where the current UI exposes upload features.Ordinary users who want to ask questions about a file or document.Use the current official interface and service status as the source of truth.Do not invent supported document types or limits from old screenshots.
File Upload Service statusThe official DeepSeek Status page.Checking whether uploads are affected by a service incident.The status page tracks File Upload Service separately.Status does not explain file types, UI steps, or API request format.
Official API Upload File endpointPOST /files in the DeepSeek API docs.Uploading supported images or documents and reusing them by file_id with deepseek-flash.Images: 64 MiB; PDF/Word/PowerPoint: 100 MiB; plain text, spreadsheets, and ebooks: 32 MiB. Choose the documented purpose.For PDF/Word/PowerPoint, send text_recognition or rich_layout_recognition before the file field; user_data returns 400 for these types.
API image input via file_idChat Completions or Responses API image-capable requests.Referencing a previously uploaded image without resending the image data.file_id can be used as an image source where image input is supported.An image reference must identify an uploaded image. Documents are supported through their documented file/document content blocks, not by treating them as images.
Responses API image inputResponses API.Sending images through input_image using image_url or file_id.image_url and file_id are mutually exclusive; images are processed by deepseek-flash.For documents, use the separate input_file content part with a supported uploaded file_id.
File Search / document retrievalOften expected by developers familiar with other APIs.Indexing and retrieving chunks from documents.The current Responses API compatibility table lists built-in file_search tools as ignored.Do not describe Files API as RAG, vector storage, or document search.
DeepSeek Harness or local file workflowsDesktop or local workflows where supported by the product/tool.Local tasks, coding, documents, plugins, and longer workflows.Different surface from API Files API.File permissions and data handling depend on the exact product/workflow.
Third-party upload toolsBrowser extensions, gateways, workflow platforms, RAG tools, or local apps.Provider-specific document or file workflows.Not official DeepSeek behavior unless documented by DeepSeek.Privacy, retention, file limits, and parsing behavior depend on the provider.

Can you upload files in DeepSeek Chat?

DeepSeek Chat is the consumer route for ordinary users. If the current DeepSeek interface shows an upload option, use it only for non-sensitive files and follow the limits shown by that interface. Because consumer UI behavior can change, this article does not invent exact button names, drag-and-drop behavior, document formats, or upload limits.

DeepSeek Chat showing an attached PDF document and a file analysis prompt before submission
A sample PDF document attached in DeepSeek Chat before submitting a question about its contents.

If upload is unavailable in the web chat, first check the official DeepSeek Status page. DeepSeek tracks File Upload Service as a separate component. At the time this article was checked, the status page said everything was running smoothly and showed File Upload Service as operational. A normal status page still does not prove that every account, region, browser, file type, or third-party wrapper can upload every file.

Use the official chat route rather than mirror sites or unofficial wrappers. If a third-party tool says it supports DeepSeek file upload, check that tool’s publisher, privacy policy, permissions, retention rules, and upload limits separately.

What the official DeepSeek Files API supports

The official DeepSeek Upload File endpoint is POST /files. It uploads an image file that can later be referenced by its file_id in image-capable requests.

API detailCurrent official behavior
EndpointPOST /files
Request typemultipart/form-data
File fieldfile
Purpose fielduser_data for supported images, plain text, spreadsheets, and ebooks; text_recognition or rich_layout_recognition for PDF/Word/PowerPoint and supported OCR images.
Supported formatsImage input: JPEG, PNG, GIF, WebP. Documents: PDF, DOC/DOCX, PPT/PPTX, XLS/XLSX, EPUB/MOBI, and supported plain-text/code formats. Parsing purposes also accept the documented OCR image formats.
Format detectionDetected from file content, not just filename
Maximum single file sizeImages: 64 MiB. PDF/Word/PowerPoint: 100 MiB. Plain text, spreadsheets, and ebooks: 32 MiB. PDF/Word/PowerPoint uploads must finish within 120 seconds; other uploads within 10 minutes.
Returned identifierA file object with an ID like file-api-...
ExpirationOptional expires_after[anchor]=created_at and expires_after[seconds]; seconds can be between 3600 and 2592000. Omitting both expiration fields keeps the file permanently, according to current docs.
DeepSeek Files API documentation showing supported image formats, 64 MiB upload limit, and purpose user_data
Archived image-upload example showing JPEG, PNG, GIF, WebP, and the 64 MiB image limit. Current document formats, purposes, and limits are described in the text and tables; this image is not an exhaustive statement of today’s Files API support.

This matters because many users search “DeepSeek file upload” expecting PDF, Word, Excel, CSV, or code-file analysis. Those workflows now have documented native API routes. Choose a supported file type and purpose rather than copying an image-upload example unchanged for every document.

How file_id works

After you upload an image through the Files API, DeepSeek returns a file object. The important field is id, such as file-api-0a1b2c3d.... You can use that value later as a file_id in image-capable requests.

DeepSeek Files API documentation showing an example response with file ID, filename, and purpose
DeepSeek Files API documentation showing an example uploaded file object with its ID, filename, and purpose.
  • file_id is a reference to an uploaded image file, not a public URL.
  • Use file_id when you want to reuse the same image without resending the image bytes or URL.
  • Expiration settings affect whether the uploaded file remains available.
  • Do not expose file_id unnecessarily to clients if it references user-provided data.
  • Use file_id for a supported uploaded document with the documented content block: file in Chat Completions, input_file in Responses, or document with a file source in Messages.

Image input through Chat Completions and Responses API

DeepSeek supports image input through supported API paths, especially with deepseek-flash. Current Responses API docs say image input can be supplied through an input_image content part using either an image_url or a file_id.

Image sourceWhat it meansNotes
image_urlAn HTTP(S) URL or base64 data URL.Supported formats include JPEG, PNG, GIF, and WebP. Current docs list a URL length limit and image limits that should be checked before production use.
file_idThe ID of an image uploaded through the Files API.It has the form file-api-.... Use it when reusing the same uploaded image.
detailControls image detail for URL/base64 image input where supported.For Responses API, current docs list low, high, original, and auto. detail is ignored when file_id is set.

Important API rule: image_url and file_id are mutually exclusive in the same input_image part. Missing or conflicting image sources can return 400. Documents instead use input_file with their uploaded file_id; a parsed document is not an image input. Built-in file_search remains ignored.

Do not confuse image understanding with image generation. Uploading an image lets the model understand or reason about visual content where supported. It does not mean the same API path generates or edits images.

What file types does DeepSeek support?

The safest answer depends on the surface.

SurfaceSupported file informationHow to use it safely
Official API Files APISupported images and documents can be uploaded for use with Flash; file types, purposes, and size limits differ.Choose the correct purpose, retain the file ID, and reference it using the appropriate image or document block.
Responses API image inputCurrent docs support image input through image_url or uploaded file_id.Use deepseek-flash for supported image understanding workflows.
Consumer DeepSeek ChatPublic docs checked for this article do not establish an exhaustive list of current consumer chat document types.Use only what the current official interface shows and follow any limits shown there.
PDF, Word, Excel, CSV, code filesPDF, Word, and PowerPoint use a parsing purpose. Plain text/code/CSV, supported spreadsheets, and ebooks use user_data.Use the native documented file workflow where suitable. Validate extracted facts, figures, and model output; add a separate retrieval system only if the task needs one.
Third-party toolsSupported formats depend on the provider.Check that tool’s documentation, privacy policy, storage rules, and limits.

Can DeepSeek upload PDFs, Word files, spreadsheets, or code files?

Many users searching this topic really mean document analysis. They want to upload a PDF, Word document, spreadsheet, CSV, Markdown file, or source-code file and ask questions about it.

The official API supports document upload and parsing with deepseek-flash. For PDF, Word, or PowerPoint, choose text_recognition for text only or rich_layout_recognition to include detected figures with the text. Send purpose before file; using user_data for these formats returns 400. The upload returns file_id only after parsing succeeds. See the official File Parsing guide for the full workflow.

This documentation-based example uploads a non-sensitive PDF, then asks Flash about it. It sends real API requests if run: successful parsing and model usage can incur charges. The longer timeout accommodates uploading and parsing; automatic retries are disabled to avoid blindly repeating a billable upload.

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["DEEPSEEK_API_KEY"],
    base_url="https://api.deepseek.com",
    timeout=300.0,
    max_retries=0,
)
with open("report.pdf", "rb") as document:
    uploaded = client.files.create(
        file=document,
        purpose="text_recognition",
    )

response = client.chat.completions.create(
    model="deepseek-flash",
    messages=[{
        "role": "user",
        "content": [
            {"type": "file", "file_id": uploaded.id},
            {"type": "text", "text": "Summarize the key points of this document."},
        ],
    }],
    max_tokens=1000,
    extra_body={"thinking": {"type": "disabled"}},
)
print(response.choices[0].message.content)

Document limits and billing: the parsing route accepts up to 100 MiB and 1,000 pages, with up to 15 document uploads in progress per account. A chat request may reference at most 20 documents and at most 8 MiB of document text; repeated references count separately. Successful parsing is billed once at upload, currently $0.225 per 1,000 pages; referencing the document later incurs model-input token charges, not another parsing charge. Plain text, supported spreadsheets, and ebooks uploaded with user_data have a 32 MiB original-file limit and are not charged an upload/parsing fee; model tokens still cost money. Figures extracted by rich-layout parsing also consume input tokens.

For consumer chat, document upload may depend on the current interface and account behavior. If the official chat UI currently accepts a document, follow the UI’s displayed limits and avoid sensitive files. If the UI does not accept the file, do not force it through an unofficial wrapper or assume an old tutorial still applies.

DeepSeek Chat extracting workshop details from an uploaded PDF document into a table
DeepSeek Chat extracted workshop details from an uploaded sample PDF and marked the missing registration deadline as “Not stated.”

For developer workflows involving documents, a safer architecture is usually:

  1. Extract text from the document in your own approved pipeline.
  2. Remove sensitive or irrelevant content.
  3. Chunk or retrieve only the relevant sections.
  4. Send the smallest useful non-sensitive context to DeepSeek.
  5. Validate the answer against the source document.

File upload vs file reference vs file search vs RAG

These terms are often mixed together, but they mean different things.

TermMeaningDeepSeek API caution
File uploadSending a file to a service.The Files API accepts documented image and document types; the purpose determines how they are handled.
File referenceUsing an ID such as file_id to refer to a previously uploaded file.Supported uploaded images and documents can be referenced with file_id, using the matching request block.
File searchIndexing and retrieving relevant chunks from documents.Current Responses API compatibility lists built-in file_search tools as ignored.
RAGRetrieval-augmented generation: retrieving information from a store, then sending relevant context to the model.If you need RAG, build or use a retrieval layer you control, then pass relevant text to DeepSeek.
Document parsingExtracting text/tables from PDF, Word, spreadsheets, scans, or images.The Files API parses supported documents during upload; text-only and rich-layout parsing have different treatment of figures.

DeepSeek File Upload Service status

The official DeepSeek Status page tracks File Upload Service separately. If upload is failing in the chat interface or another official DeepSeek surface, check that component first.

DeepSeek status dashboard showing File Upload Service with 100% historical uptime
DeepSeek’s official status dashboard shows File Upload Service with 100% uptime for the displayed period.

At the time this article was checked, DeepSeek Status said “Everything is running smoothly” and listed File Upload Service with 100.00% uptime. That status is a service-health signal, not a guarantee that your specific file type, browser, account, third-party wrapper, or API request is supported.

API example: upload an image file

The example below is documentation-based and not live-tested. Running it sends a real API request and may use your DeepSeek account resources. Replace the placeholder path with a non-sensitive image file.

curl https://api.deepseek.com/files \
  -H "Authorization: Bearer $DEEPSEEK_API_KEY" \
  -F "file=@./example-image.png" \
  -F "purpose=user_data"

To set an expiration window when current docs support it, include both expiration fields together:

curl https://api.deepseek.com/files \
  -H "Authorization: Bearer $DEEPSEEK_API_KEY" \
  -F "file=@./example-image.png" \
  -F "purpose=user_data" \
  -F "expires_after[anchor]=created_at" \
  -F "expires_after[seconds]=86400"

Use the returned id value as file_id in a later image-capable request. Do not paste a real API key into browser JavaScript, WordPress custom HTML, public repositories, screenshots, or support forums.

API example: use an uploaded image by file_id

The exact request shape depends on whether you use Chat Completions or Responses API. In the Responses API, current docs use input_image and allow either image_url or file_id.

curl https://api.deepseek.com/responses \
  -H "Authorization: Bearer $DEEPSEEK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-flash",
    "input": [
      {
        "role": "user",
        "content": [
          { "type": "input_text", "text": "Describe this image and list any visible text." },
          { "type": "input_image", "file_id": "file-api-YOUR_UPLOADED_IMAGE_ID" }
        ]
      }
    ]
  }'

Use deepseek-flash for current image-capable API workflows unless the official model table changes. Do not copy image examples and simply switch the model to a text-only model.

When not to use DeepSeek file upload

Do not upload a file just because the interface allows it. Avoid file upload when:

  • the file is confidential and your organization has not approved the workflow;
  • the file contains sensitive personal data;
  • you do not know whether you are using official DeepSeek, a third-party wrapper, or a gateway;
  • the file type is unsupported;
  • you only need a short excerpt and can paste a redacted passage instead;
  • you need guaranteed legal, medical, financial, or compliance accuracy;
  • you are testing during a suspected File Upload Service incident.

Safer alternatives include redacting the file, summarizing the relevant non-sensitive section yourself, extracting text in your own approved system, or using a local/internal document workflow your organization controls.

Privacy and safety before uploading files

DeepSeek’s Privacy Policy describes user inputs as including prompts, uploaded files, photos, feedback, and chat history. The policy also says DeepSeek’s services are not designed or intended to process sensitive personal data and that users should not provide sensitive personal data to the services.

Do not upload the following unless your workflow is authorized, secure, and compliant with your obligations:

  • passports, IDs, driver’s licenses, or identity documents;
  • medical records or health information;
  • legal files, contracts, disputes, or privileged material;
  • financial records, tax files, invoices, bank statements, or payment data;
  • customer data or employee records;
  • private business plans, strategy documents, or internal dashboards;
  • proprietary source code or private repositories;
  • passwords, API keys, private keys, tokens, or connection strings;
  • children’s data or regulated data;
  • files you are not authorized to share with a hosted AI service.

Also remember that model output can be wrong. Use uploaded-file analysis as assistance, not as a final authority for legal, medical, financial, compliance, or safety-critical decisions.

Troubleshooting DeepSeek file upload problems

SymptomLikely causeWhat to checkSafe next step
Upload option is not visible in chatThe current UI may not expose upload for your account, region, browser, or product surface.Official chat route, current UI, and File Upload Service status.Use the current interface; do not rely on old screenshots or unofficial wrappers.
Upload is stuckFile Upload Service issue, network problem, file issue, or browser extension conflict.Status page, browser/network, file size/type shown by UI, and extensions.Try a non-sensitive smaller file only if the service appears operational.
API upload returns 400Malformed multipart request, unsupported or password-protected file, wrong purpose, or purpose sent after file.File content and type; the purpose/type combination; form-field order; file and expiration fields.Fix the request; do not retry unchanged.
API upload fails because the file is too largeThe file exceeds its type-specific limit: 64 MiB for images, 100 MiB for PDF/Word/PowerPoint, or 32 MiB for plain text/spreadsheets/ebooks.Actual file type, size, page count, and upload/parsing limits.Reduce or split the file as appropriate; do not apply the image limit to every document.
Image upload works but PDF does notThe PDF may use user_data, have an unsupported/protected structure, or exceed document limits.Use text_recognition or rich_layout_recognition before file; check the parsing response.Correct the document upload settings and reference the resulting ID as a document, not an image.
file_id is not acceptedWrong ID, expired/deleted file, wrong field, unsupported model, or wrong API surface.File ID format, expiration, delete status, model, and request shape.Retrieve/list files if appropriate, then use the matching image/document block and a supported model.
Responses API error says input_image needs image_url or file_idThe image content part has neither valid image source.input_image object shape.Add exactly one valid image_url or file_id.
Responses API error says both fields are presentimage_url and file_id are mutually exclusive.The input_image object.Remove one field and send only the intended source.
Image input fails with a text-only modelThe chosen model may not support images.Current model table and Vision docs.Use deepseek-flash for current image-capable API workflows.
Built-in file_search does not workCurrent Responses API compatibility lists built-in file_search tools as ignored.Responses API compatibility section.Build your own retrieval layer or use an approved document-search system.
Third-party upload tool failsThe issue may belong to the wrapper, gateway, extension, or provider.Tool docs, privacy policy, file limits, and provider status.Test the official DeepSeek surface separately before blaming DeepSeek.
Upload works but the answer is poorThe prompt may be vague, the image may be unclear, or the model may not have enough context.Prompt, image quality, task wording, and expected output.Ask a narrower question and verify important observations manually.

API errors to understand

For file-upload and image-input workflows, avoid retrying blindly. Match the fix to the error category.

Error typeLikely meaningWhat to do
400 invalid requestMalformed request, unsupported field combination, unsupported file type, missing required field, or invalid image input shape.Fix the request body before retrying.
401 authentication failureAPI key is missing, wrong, or not sent correctly.Check Authorization: Bearer ... and the correct DeepSeek account.
402 insufficient balanceThe API account does not have usable balance for the request.Check DeepSeek Platform balance and billing.
429 rate limitToo many requests or concurrency pressure.Use pacing, queues, and bounded backoff.
500 or 503Server-side error or overload.Check the status page and retry later with bounded retries.

Do not retry unchanged requests for authentication, balance, or malformed request errors. Fix the cause first.

Third-party file upload tools

Some tools may advertise DeepSeek file upload even when the upload and parsing are handled by the tool itself. This can include browser extensions, workflow automation platforms, RAG tools, local apps, IDE plugins, or cloud gateways.

Those tools may extract text from your file, store it, send it to another server, summarize it with DeepSeek, or use a completely different provider before sending results to DeepSeek. Their file limits, privacy rules, retention, pricing, and security controls are separate from the official DeepSeek API. Treat third-party file upload as a separate product decision, not as official DeepSeek file upload.

Best practices before uploading anything

  1. Identify the surface: official chat, official API, Harness, local app, or third-party tool.
  2. Check the official docs or current UI for supported file types and limits.
  3. Use the official status page if uploads fail.
  4. Upload only the smallest non-sensitive file needed for the task.
  5. For API image workflows, use file_id when the same image will be reused.
  6. For documents, extract and send only relevant non-sensitive text unless the interface clearly supports the file type.
  7. Delete uploaded files when appropriate, if the official API/workflow supports deletion.
  8. Do not use sensitive files as test data.
  9. Verify output against the source file before relying on it.

Bottom line

DeepSeek file upload is useful, but the exact meaning depends on the product surface. For ordinary users, follow the current DeepSeek Chat interface and File Upload Service status. Developers can upload documented images and documents through the Files API, select the correct purpose and limits, and reference the resulting file_id with deepseek-flash.

Do not confuse native document upload and parsing with file search, a vector store, or a complete RAG system. Built-in file_search remains ignored. For sensitive documents, use an approved secure workflow, redact aggressively, and verify extracted material and model output.

FAQ

Can I upload files to DeepSeek?

Yes, but the answer depends on the surface. The consumer interface exposes its own supported uploads. The official Files API accepts supported images and documents for deepseek-flash, returning a file_id for later reference using the appropriate content block.

What file types does the DeepSeek API support for upload?

The official Upload File endpoint accepts images, supported documents, spreadsheets, ebooks, and plain text/code files. Image uploads use user_data and may be up to 64 MiB. PDF/Word/PowerPoint use a parsing purpose and may be up to 100 MiB; plain text, spreadsheets, and ebooks use user_data and may be up to 32 MiB.

Can DeepSeek upload PDFs?

Yes. Upload a PDF with text_recognition or rich_layout_recognition, sending purpose before the file, then reference the returned ID in a document/file content block with Flash. Observe the 100 MiB and 1,000-page parsing limits. The consumer chat interface has its own displayed limits.

Can DeepSeek upload Word, Excel, CSV, or code files?

Yes, the documented API route supports Word (DOC/DOCX), Excel (XLS/XLSX), and plain-text formats such as CSV, Markdown, JSON, and source code. Word uses a parsing purpose; supported spreadsheets and plain-text files use user_data. Use the documented document/file reference block and validate the result.

What is file_id in DeepSeek?

file_id is the identifier returned after uploading a supported image or document through the Files API. It has the form file-api-.... Reference an image as an image and a document as a document/file; a parsed document ID cannot be used as an image source.

Is file_id a public URL?

No. It is an API file identifier, not a public URL. Treat it as a reference to user-provided data and avoid exposing it unnecessarily.

Can I use both image_url and file_id together?

No. In the Responses API input_image object, image_url and file_id are mutually exclusive. Use exactly one image source.

Does DeepSeek API support file_search?

Current Responses API compatibility docs list built-in file_search tools as ignored. Do not describe Files API as file search or RAG. If you need document retrieval, use a separate retrieval layer and pass relevant text to DeepSeek.

Why is DeepSeek file upload not working?

Possible causes include File Upload Service issues, unsupported file type, file too large, malformed API request, invalid file_id, using a text-only model for image input, local browser problems, or a third-party wrapper issue. Check the official status page and the exact surface you are using.

Is DeepSeek file upload safe?

It depends on what you upload and which surface you use. DeepSeek’s Privacy Policy describes uploaded files and photos as part of user input and says the service is not designed to process sensitive personal data. Do not upload confidential, regulated, personal, legal, medical, financial, customer, or proprietary files unless the workflow is approved and secured.

Can I delete uploaded files?

The DeepSeek API docs include file management endpoints such as list, retrieve, and delete files. For API-uploaded images, use the official file-management endpoints where appropriate. For consumer chat uploads, follow the current interface and account controls.