Files and images
Enable Convert files and images in Settings. Until that is on, /v1/chat/completions does not inspect attachments.
What is free
| Kind | Price |
|---|---|
.md, .txt, .csv, .html | Free |
.pdf, .docx, .xlsx, .odt, .ods | Free |
| Images within the allowance | Free |
| Images over the allowance | Actual conversion cost, typically $0.00002–$0.00015 each |
| If the primary converter is down | $0.00016 per image, only when over the limit |
Default image allowance: 5 per request, 20 per minute, 200 per day. Documents stay free and unlimited.
Request shape
{
"model": "deepseek-ai/DeepSeek-V4-Flash-0731",
"messages": [{
"role": "user",
"content": [
{"type": "text", "text": "Summarize this document"},
{"type": "image_url", "image_url": {"url": "data:image/png;base64,..."}},
{"type": "file", "file": {"filename": "notes.pdf", "file_data": "data:application/pdf;base64,..."}}
]
}]
}The proxy extracts text (and image descriptions when needed) and sends a text prompt upstream. You still pay normal token rates on that prompt.
Chat
Attach files in the Chat composer once the setting is on. Over-limit images fail with a balance error if you have no credit.