Chat
Create Chat Completion
Create a chat completion using various AI models
POST
Create chat completion
Documentation Index
Fetch the complete documentation index at: https://docs.requesty.ai/llms.txt
Use this file to discover all available pages before exploring further.
PDF Support
Send PDFs using theinput_file content type. You can provide the PDF as either base64-encoded data or a URL.
Using Base64-Encoded PDF
Using PDF URL
Parameters
type: Must be"input_file"filename: The name of the PDF file (e.g.,"document.pdf")file_data: Either base64-encoded PDF content or a URL to the PDF file
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)
Last modified on April 27, 2026
Create chat completion