FLUX.2 is live! High-fidelity image generation made simple.
PrunaAI/
$0.01
/ image
P-Image-Edit is a high-precision image editing model that applies complex transformations, insertions, removals, and style adjustments in under a second. It delivers state-of-the-art accuracy, clean boundaries, and reliable prompt alignment, making multi-step edits fast, consistent, and production-ready.

This document provides an overview of the DeepInfra-compatible OpenAI image generation API. It allows users to generate AI-created images based on text prompts using DeepInfra models.
curl https://api.deepinfra.com/v1/openai/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DEEPINFRA_TOKEN" \
-d '{
"prompt": "A photo of an astronaut riding a horse on Mars.",
"size": "1024x1024",
"model": "PrunaAI/p-image-Edit",
"n": 1
}'
The API returns a JSON object containing the generated image(s).
{
"created": 1707000000,
"data": [
{
"revised_prompt": "A photo of an astronaut riding a horse on Mars.",
"b64_json": "/9j/4AAQS..."
}
]
}
© 2025 Deep Infra. All rights reserved.