Skip to main content
Back to API Platform

P-Image Edit API

Pruna P-Image Edit. Fast image editing with up to 5 reference images. Integrate this model via REST with endpoint docs, parameters, and code examples.

Image Generation
Img2Img
Editing
Content moderation disabled
Credit Cost
0.25 credits
Type
Image

API Endpoint

POST
/api/v1/models/p-image-edit/run

Test This Model

Run a real request through the API pipeline and inspect the exact input and output your integration will handle. Uses your credits like any API call; failed runs are refunded automatically.

Parameters

Input parameters accepted by this model

ParameterTypeDefault
prompt
required
string
-
images
required
array
-
aspect_ratio
enum
-

Supported Aspect Ratios

1:1
2:3
3:2
3:4
4:3
9:16
16:9

See also

Related endpoints on this model — you may need a different apiId for a different operation (e.g. image edit vs generation).

Example Outputs

Real outputs generated by this model

a thrilling action sequence of a woman trying to find her favorite candy. The candy wrapper is purple with a pixelated dragon and reads "Pixel Dojo". The woman says "Gotta have that pixel dojo candy. with over 60 ai tools, it's basically zero calories."
View Details

a thrilling action sequence of a woman trying to find her favorite candy. The candy wrapper is purple with a pixelated dragon and reads "Pixel Dojo". The woman says "Gotta have that pixel dojo candy. with over 60 ai tools, it's basically zero calories."

0.25 credits
3.8s
a thrilling action sequence of a woman trying to find her favorite candy. The candy wrapper is purple with a pixelated dragon and reads "Pixel Dojo". The woman says "Gotta have that pixel dojo candy. with over 60 ai tools, it's basically zero calories."
View Details

a thrilling action sequence of a woman trying to find her favorite candy. The candy wrapper is purple with a pixelated dragon and reads "Pixel Dojo". The woman says "Gotta have that pixel dojo candy. with over 60 ai tools, it's basically zero calories."

0.25 credits
4.1s

Code Examples

Single image edit — copy and paste to get started

bash
curl -X POST "https://pixeldojo.ai/api/v1/models/p-image-edit/run" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "add neon-lit rain",
    "images": [
      "https://..."
    ],
    "aspect_ratio": "16:9"
  }'

Response Format

Submit Response (202 Accepted)

json
{
  "jobId": "job_abc123...",
  "status": "pending",
  "statusUrl": "https://pixeldojo.ai/api/v1/jobs/job_abc123...",
  "creditCost": 0.25,
  "creditsRemaining": 95,
  "expiresAt": "2026-07-15T01:55:02Z"
}

Completed Response

json
{
  "jobId": "job_abc123...",
  "status": "completed",
  "output": {
    "images": [
      "https://temp.pixeldojo.ai/pixeldojotemp/1705930123-456789.png"
    ]
  },
  "creditCost": 0.25,
  "expiresAt": "2026-07-15T01:55:02Z"
}