p-image API
p-image from PrunaAI is available for Image generation or processing through ServerNet’s native API. Use the request example and supported limits on this page.
AvailableService type
1 Model-defined image units · The final usage amount follows the reported result and the permitted request options.
The usage rate is fixed at request admission. Reported consumption determines the final usage amount.
- API model ID
- di-prunaaip-image-b673493176
- Model developer
- PrunaAI
- Service type
- Image generation or processing
- Current availability
- Available
- Catalogue task
- Image generation or processing
- Native billing basis
- Model-defined image units
Model features
No additional gateway capabilities have been confirmed for this model.
What is p-image?
Use the public identifier di-prunaaip-image-b673493176 for p-image in ServerNet. The gateway uses this identifier to select the configured route; the developer is PrunaAI.
Where to use p-image
- Evaluate p-image on representative visual tasks before selecting it.
- Check dimensions, input image requirements and output format for p-image.
- Keep the original prompt and task settings so visual results can be reproduced.
Build your integration
Create a project key with ai:native and send this page’s example to /v1/inference. Set the model field to di-prunaaip-image-b673493176. Store X-Request-Id and X-ServerNet-Charge-Irt with the result, and compare the final amount with your account’s usage receipt. Reuse the same Idempotency-Key only for an identical retry. If the result contains a file link, download and save the file when you receive it. Keeping the response for replay for 24 hours does not extend the supplier’s file-link lifetime.
Inputs and service limits
2048
A bounded request cost is reserved before sending. The verified tariff or reported provider cost is settled using the exchange rate and sale markup. Media is not billed as chat tokens. Use Data URLs for valid images, PCM WAV audio, or H.264 MP4 video on routes that accept video input.
Accepted ServerNet API parameters
Gateway request contract: 2026-10-11. These fields and defaults are enforced by /v1/inference; availability is shown above. Text byte limits are measured as UTF-8 bytes.
| Parameter | Type | Required | Declared constraints |
|---|---|---|---|
prompt | string | Yes | Maximum UTF-8 bytes: 8000
|
aspect_ratio | string | No | Maximum UTF-8 bytes: 8000
Default: 16:9
Values: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, custom
|
width | integer | No | Minimum: 256
Maximum: 1440
multipleOf: 16
|
height | integer | No | Minimum: 256
Maximum: 1440
multipleOf: 16
|
seed | integer | No | |
disable_safety_checker | boolean | No | Default: false
|
Connect to p-image API
Enable ai:native on your key and ai:models:read to check availability. Set SERVERNET_API_KEY in your server environment. Change the idempotency key for each new request; keep it unchanged only for an identical retry.
curl https://servernet.cloud/v1/inference \
-H "Authorization: Bearer $SERVERNET_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: CHANGE_FOR_EACH_NEW_REQUEST' \
-d '{
"model": "di-prunaaip-image-b673493176",
"prompt": "A futuristic cityscape at sunset, with flying cars and towering skyscrapers."
}'
Use the same Idempotency-Key when retrying an identical request. Successful responses are replayed without a second charge for 24 hours. Do not automatically retry when x-should-retry:false is present. The key is shown once. Store it in a server environment variable. Keep it out of browser code, GitHub and logs.
Keys, budgets and usage reportsFrequently asked questions
Is p-image available through ServerNet?
p-image is currently available on the configured route. Check GET /v1/models before sending a request: availability can change with provider capacity, catalogue freshness or account configuration.
Which model ID and API endpoint should I use for p-image?
Create a key with ai:native and send this page’s example to /v1/inference. Video and music return a 202 receipt and a result polling URL.
How is p-image usage charged?
A bounded request cost is reserved before sending. The verified tariff or reported provider cost is settled using the exchange rate and sale markup. Media is not billed as chat tokens. Use Data URLs for valid images, PCM WAV audio, or H.264 MP4 video on routes that accept video input.
What should I check before using p-image in production?
2048