.md and .markdown uploads in Conversation. For API calls, read the Markdown content and place it in the message text.
Supported paths
Conversation upload
Upload a
.md or .markdown file in Conversation. The file is read as text and sent with the current message.API call
Read the Markdown file in your backend and append its content to
messages.content.File rules
| Field | Details |
|---|---|
| Formats | .md, .markdown |
| Content type | text/markdown |
| Single file size | About 20MB for Conversation uploads |
| Billing | Billed by the text tokens included in the request |
| Best model type | Chat or reasoning models with enough context length |
image_url parts like images, and they are not sent as file objects like PDFs. They are read as text and appended to the user message.
Use in Conversation
Upload a Markdown file
Click the attachment button in the input box and choose a
.md or .markdown file. The file appears in the attachment area.Describe the task
Tell the model what to do, such as summarize the document, extract API sections, review a changelog, or rewrite the content.
API example
For API calls, read the Markdown file in your program and include its content inmessages.content:
Recommendations
- Remove unrelated logs, repeated tables of contents, and generated content before sending long files.
- Keep headings, section names, and list numbers when you need traceable answers.
- Use Structured output when you need JSON or predictable fields.
- If you send images, PDFs, and Markdown together, describe the role of each attachment in your prompt.
