Pruna AI's distilled text-to-image model optimized for extremely low-cost, high-throughput generation. One of the most-run community models on Replicate (15.6M+ runs) thanks to its speed and price.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "prunaai/p-image",
"input": {
"prompt": "A minimalist logo concept for a coffee roastery, flat vector style, warm tones",
"aspect_ratio": "16:9"
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | - | Text prompt for image generation. |
aspect_ratio | string | No | 16:9 | Aspect ratio for the generated image. 1:116:99:164:33:43:22:3custom |
width | integer | No | - | Width of the generated image. Only used when aspect_ratio=custom. Must be a multiple of 16. |
height | integer | No | - | Height of the generated image. Only used when aspect_ratio=custom. Must be a multiple of 16. |
prompt_upsampling | boolean | No | false | Upsample the prompt with an LLM. |
seed | integer | No | - | Random seed. Set for reproducible generation. |
disable_safety_checker | boolean | No | false | Disable safety checker for generated images. |
lora_weights | string | No | - | Load LoRA weights. Supports HuggingFace URLs in the format huggingface.co/<owner>/<model-name>[/<lora-weights-file.safetensors>]. HuggingFace LoRAs may require an API token to access, which you can provide in the `hf_api_token` input. |
lora_scale | number | No | 0.5 | Determines how strongly the main LoRA should be applied. 0.5 usually works well for most LoRAs. |
hf_api_token | string | No | - | HuggingFace API token. If you're using a HuggingFace LoRAs that needs authentication, you'll need to provide an API token. |
Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
A low-cost, fast draft at the default 16:9 aspect ratio.
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "prunaai/p-image",
"input": {
"prompt": "A minimalist logo concept for a coffee roastery, flat vector style, warm tones",
"aspect_ratio": "16:9"
}
}'Generates at an exact width/height using aspect_ratio=custom.
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "prunaai/p-image",
"input": {
"prompt": "A product photo of running shoes on a plain white background, studio lighting",
"aspect_ratio": "custom",
"width": 1024,
"height": 768
}
}'POST /v1/predictions