Plain text (.txt), Markdown (.md), and rich text (.rtf) files
Common programming languages (.py, .js, .java, etc.)
CSV, JSON, and YAML files
PDF and Microsoft Office files (.docx, .xlsx)
POST https://deepseekapi.org/v1/chat/completions
{ "model": "deepseek-reasoner-all", "messages": [ { "role": "user", "content": "Please analyze this file", "files": [ { "type": "text/plain", "content": "Base64 encoded file content" } ] } ] }
Analyze source code for bugs, security issues, and improvement opportunities.
Extract insights from CSV files and data dumps.
Generate summaries and extract key information from documents.
Scan files for potential security vulnerabilities.