The documentation for image moderation can be found in the corresponding API spec along with sample code snippets to send images to the moderation API.
The API specification has direct mentions of png and jpg.
webp is completely absent of mention, but there is no reason to suspect the web retrieval or token encoder is not identical to other OpenAI vision.
Here’s one of the code examples:
/* node.js */
import OpenAI from "openai";
const openai = new OpenAI();
const moderation = await openai.moderations.create({
model: "omni-moderation-latest",
input: [
{ type: "text", text: "...text to classify goes here..." },
{
type: "image_url",
image_url: {
url: "https://example.com/image.png"
// can also use base64 encoded image URLs
// url: "data:image/jpeg;base64,abcdefg..."
}
}
],
});
To prove webp, over the web, here’s Python showing how to also parse an actionable output. The page serving webp is a (face-blocked) girl in a skin-tone bikini, a challenge for lesser vision “skin” identifiers.