Upload files once and reference them by id in chat requests from Go.
The files endpoint stores a file once so you can reference it by id in any number of chat requests instead of re-encoding the bytes into every message. It follows the OpenAI files schema, so an OpenAI-compatible Go client pointed at https://opendunes.com/api/v1 can drive it through its files service — check your installed SDK version's own documentation for the exact call shape. Uploads and storage are free.
The endpoint itself is a standard multipart POST — this is the full wire surface any Go HTTP client can target directly:
A successful upload returns 201 with the file object — keep the id and reference it in chat requests.
Send a file content part carrying the file_id inside the message content array — the server inlines the bytes for you: