Does the OpenAI Moderations API Support file_url (e.g., PDF)?

I’m exploring whether the Moderations API (omni-moderation-latest) supports direct moderation of PDF files — similar to how it accepts image_url inputs.

Here’s what I’ve learned so far:
Current Behavior

  • The Moderations API supports only the following input types:

    • text — plain text strings

    • image_url — remote URLs or base64-encoded image data

response = client.moderations.create(
model=“omni-moderation-latest”,
input=[
{“type”: “text”, “text”: “some text”},
{“type”: “image_url”, “image_url”: {“url”: “https://example.com/image.png”}},
],
)