The request input object

The per-line object of the batch input filesource

A developer-provided per-request id that will be used to match outputs to inputs. Must be unique for each request in a batch.source

The HTTP method to be used for the request. Currently only POST is supported.source

The OpenAI API relative URL to be used for the request. Currently /v1/chat/completions, /v1/embeddings, and /v1/completions are supported.source

OBJECT The request input object
{"custom_id": "request-1", "method": "POST", "url": "/v1/chat/completions", "body": {"model": "gpt-4o-mini", "messages": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "What is 2+2?"}]}}