Aller au contenu
Three side-by-side square frames, each showing a uniquely posed 8-bit style pixel cat. Each frame visually represents image generation from different AI models, using five flat corporate colors and minimalist geometric backgrounds. The cats are simple, highly pixelated, and visually distinct from one another, with no text or people present, creating a clean, corporate, and comparative visual suitable for a blog.
Generated by 🤖 AI

Nous avons ajouté la prise en charge du nouveau modèle de génération d’images OpenAI gpt-image-1. Vous pouvez l’essayer via l’API d’OpenAI ou Azure AI Foundry.

... = await generateImage("...", {
model: "openai:gpt-image-1",
})

Pour comparer les performances de ce modèle, voici un petit script qui génère une image de chat pixelisé sur DallE-2/3 et gpt-image-1.

images.genai.mjs
const { output } = env;
for (const model of [
"openai:dall-e-2",
"openai:dall-e-3",
"openai:gpt-image-1",
]) {
output.heading(3, `Model: ${model}`);
const { image, revisedPrompt } = await generateImage(
`a cute cat. only one. iconic, high details. 8-bit resolution.`,
{
maxWidth: 400,
mime: "image/png",
model,
size: "square",
},
);
await env.output.image(image.filename);
output.fence(revisedPrompt);
}

image

image

Visualize an adorable single feline, lavishly detailed, represented in charming 8-bit resolution. This cat is incredibly distinctive and recognizable, with unique features that make it stand out from the norm. Consider adding intricate patterns on its fur or any other unusual characteristics to boost the iconic nature of this cute cat.

image