P-Image-Ideogram
High-quality text-to-image generation with strong typography and prompt understanding
P-Image-Ideogram generates high-quality images from text prompts, including layouts with rendered text. Choose a thinking level to balance generation speed and quality, and generate at either 1K or 2K.
Rate Limit: 500 requests per minute
Category: Text-to-Image Generation
Pricing:
thinking | image_size 1K | image_size 2K |
|---|---|---|
| very low | $0.003 / image | $0.006 / image |
| low | $0.0075 / image | $0.015 / image |
| medium | $0.01 / image | $0.02 / image |
| high | $0.015 / image | $0.03 / image |
| very high | $0.033 / image | $0.066 / image |
Quickstart
Section titled “Quickstart”Asynchronous Request (Default)
Section titled “Asynchronous Request (Default)”curl -X POST 'https://api.pruna.ai/v1/predictions' \ -H 'Content-Type: application/json' \ -H 'apikey: YOUR_API_KEY' \ -H 'Model: p-image-ideogram' \ -d '{ "input": { "prompt": "A typographic travel poster for the French Riviera", "thinking": "medium", "image_size": "2K", "aspect_ratio": "16:9" } }'The response includes a prediction ID and get_url for checking status.
Synchronous Request (Try-Sync)
Section titled “Synchronous Request (Try-Sync)”Add the Try-Sync: true header to wait up to 60 seconds for the result:
curl -X POST 'https://api.pruna.ai/v1/predictions' \ -H 'Content-Type: application/json' \ -H 'apikey: YOUR_API_KEY' \ -H 'Model: p-image-ideogram' \ -H 'Try-Sync: true' \ -d '{ "input": { "prompt": "A typographic travel poster for the French Riviera", "thinking": "high", "image_size": "2K" } }'Parameters
Section titled “Parameters”Required Parameters
Section titled “Required Parameters”| Parameter | Type | Description |
|---|---|---|
| prompt | string | Short text prompt describing the image to generate. |
Optional Parameters
Section titled “Optional Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
| thinking | string | "high" | Reasoning effort: "very low", "low", "medium", "high", or "very high". |
| image_size | string | "1K" | Output resolution budget: "1K" or "2K". Ignored for custom dimensions. |
| prompt_upsampling | boolean | true | Enhance the prompt before generation. |
| aspect_ratio | string | "1:1" | One of "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", or "custom". |
| width | integer | 1024 | Width for a custom aspect ratio, up to 2560 pixels. |
| height | integer | 1024 | Height for a custom aspect ratio, up to 2560 pixels. |
| seed | integer | random | Random seed for reproducible generation. |
| output_format | string | "jpg" | Output format: "png", "jpg", or "webp". |
| output_quality | integer | 80 | Output quality from 0 to 100; ignored for PNG. |