PDF Support
Send PDFs using thefile_input
content type:
Parameters
type
: Must be"file_input"
filename
: The name of the PDF file (e.g.,"document.pdf"
)file_data
: Base64-encoded PDF content
Authorizations
API key for authentication
Body
application/json
An array of message objects with role and content
The model name. If omitted, defaults to openai/gpt-4o-mini.
Example:
"openai/gpt-4o-mini"
Maximum number of tokens to generate
Controls randomness of the output
Controls diversity of the output
Enable Server-Sent Events (SSE) streaming responses
Available tools for function calling
Specifies how tool calling should be handled
For structured responses (some models only)