Overview
This endpoint provides file analysis functionality using advanced models in response mode. Upload files or provide file URLs to extract content, analyze data, summarize documents, or process structured information from various file formats.Authentication
This endpoint requires authentication using a Bearer token.Your API key in the format:
sk-*****Request Body
The model to use for the request. Must support file analysis capabilities.
Array of message objects with role and content. Each message contains:
role: “user” or “assistant”content: Array of content objects supporting the following types:- input_text: Text prompt with
textfield - input_file: File input with
file_urlfield, supports:- Direct URL to publicly accessible files:
https://oss.heyoos.com/ai-draw/material/Essential-English.pdf - Base64 encoded files:
data:{mime-type};base64,{base64_string} - Supported formats: PDF, DOCX, XLSX, TXT, CSV, JSON, XML, HTML
- Maximum file size: 20MB
- Direct URL to publicly accessible files:
- input_text: Text prompt with
Whether to stream the response
Request Example
Response
Unique identifier for the response
Object type, always “response”
Unix timestamp of when the response was created
The model used for generating the response
The generated text output (the file analysis results, extracted information, or summary)
Token usage statistics

