Skip to main content

Functions

The published Function supplies its prompt, model, schema, and sampling defaults. Extra row fields are ignored, optional fields may be absent, and values are converted to strings. batch_run_function() returns a job ID, or None if submission fails. For large results, use download_job_results(). To run a single input and wait for the answer, use run_function().
Function execution through Batch is text-only. Image/PDF inputs, web search, and tool calling are not available in Batch. Functions with image or PDF inputs run through run_function().