Skip to main content

ChatCompletionFile

Inline document bytes; interpretation and permission remain provider-owned.

filenameFilename (string)required

Display filename, not a local path.

Possible values: non-empty and <= 128 characters

file_dataFile Data (string)required

Inline base64 data URL accepted by the selected capability.

Possible values: non-empty and <= 16777216 characters

ChatCompletionFile
{
"filename": "string",
"file_data": "string"
}