# Pruna | P Image | Ideogram P-Image-Ideogram turns text prompts into detailed 1K or 2K images, including layouts with rendered text for posters, ads, and social graphics. ## API Information - **Model Slug:** p-image-ideogram - **Branded URL:** https://www.eachlabs.ai/pruna/p-image/p-image-ideogram - **Provider:** Pruna AI - **Category:** Text to Image - **Output Type:** image - **Status:** active - **Base Cost:** $0.003–$0.066 per execution, depending on height and image size and thinking and width - **Estimated Processing Time:** 15 seconds - **Interactive Demo:** https://www.eachlabs.ai/ai-models/p-image-ideogram ## Pricing - **Charge Type:** dynamic - **Estimate:** $0.003–$0.066 per execution, depending on height and image size and thinking and width - **Pricing Details:** width, height, very low: $0.003 - **Pricing Details:** very low, 2K: $0.006 - **Pricing Details:** very low: $0.003 - **Pricing Details:** width, height, low: $0.0075 - **Pricing Details:** low, 2K: $0.015 - **Pricing Details:** low: $0.0075 - **Pricing Details:** width, height, medium: $0.01 - **Pricing Details:** medium, 2K: $0.02 - **Pricing Details:** medium: $0.01 - **Pricing Details:** width, height, high: $0.015 - **Pricing Details:** high, 2K: $0.03 - **Pricing Details:** high: $0.015 - **Pricing Details:** width, height, very high: $0.033 - **Pricing Details:** very high, 2K: $0.066 - **Pricing Details:** very high: $0.033 - **Pricing Details:** default: $0.015 ## Input Schema | Parameter | Type | Required | Default | Constraints | Description | |-----------|------|----------|---------|-------------|-------------| | prompt | string | Yes | - | - | Short text prompt describing the image to generate. | | thinking | string | No | high | very low, low, medium, high, very high | Reasoning effort for image generation, from very low to very high. | | image_size | string | No | 1K | 1K, 2K | Output resolution budget. Ignored when width and height are provided. | | aspect_ratio | string | No | 1:1 | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3 | Aspect ratio for the generated image. Provide width and height for exact custom dimensions. | | width | integer | No | - | 256–2560 | Optional exact custom width, up to 2560 pixels. Height is required when width is provided. | | height | integer | No | - | 256–2560 | Optional exact custom height, up to 2560 pixels. Width is required when height is provided. | | prompt_upsampling | boolean | No | true | - | Enhance the prompt before generation. | | seed | integer | No | - | - | Random seed for reproducible generation. | | output_format | string | No | jpg | png, jpg, webp | Output image format. | | output_quality | integer | No | 80 | 0–100 | Output quality from 0 to 100. Ignored for PNG. | ## Example Request ```bash curl -X POST https://api.eachlabs.ai/v1/prediction/ \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "p-image-ideogram", "input": { "prompt": "A retro 1960s editorial fashion photograph of a young woman with platinum blonde curled bob hair styled in vintage pin-up waves, wearing two sparkly glittered hair bows, oversized crystal chandelier earrings, a large rhinestone cocktail ring, and vintage makeup. She wears an oversized chunky cream cable-knit sweater, sitting at a kitchen table with both fists raised playfully near her face, looking directly at the camera with a sultry expression. In front of her, a spread of retro home-cooked food on floral-patterned plates: a burger, scrambled eggs, greens, cherry tomatoes, bread rolls, sliced peaches and fruit, and a glass of orange juice with ice. Background is a nostalgic vintage kitchen with mint-turquoise cabinets, a cream refrigerator covered in colorful magnets and stickers, plaid pink curtains, a chrome sink, and an orange on top of the fridge. Saturated warm vintage film color palette, soft grainy analog film look, direct flash lighting, centered composition, ultra-detailed, photorealistic, high resolution, kitsch retro advertising aesthetic." } }' ``` ## Output Schema Response returned by `GET /v1/prediction/{id}` when the job completes: ```json { "status": "success", "predictionID": "string", "output": "string (URL of generated image)", "metrics": { "predict_time": "number (seconds)" } } ``` ## Polling ```bash curl https://api.eachlabs.ai/v1/prediction/{PREDICTION_ID} \ -H "Authorization: Bearer YOUR_API_KEY" ``` | Status | Meaning | |--------|---------| | `processing` | Still running — poll again | | `success` | Done — read `output` | | `error` | Failed — read `message` / `details` | ## Webhook (alternative to polling) Pass `"webhook_url": "https://your.host/path"` in the create request. Eachlabs POSTs this payload when the job ends: ```json { "exec_id": "prediction-uuid", "status": "succeeded", "output": "https://...", "error": "" } ``` `status` is `"succeeded"` or `"failed"`. `exec_id` equals the `predictionID` from create. Return 2xx within 30 seconds. ## Errors Error body: `{ "status": "error", "message": "...", "details": "..." }` | Code | Meaning | |------|---------| | `400` | Invalid input | | `401` | Missing / invalid `Authorization` bearer token | | `404` | Unknown model or prediction id | | `429` | Rate limit — 100 creates / min, 10 concurrent per key | | `5xx` | Retry with backoff | ## Overview **P-Image Ideogram Overview** P-Image Ideogram is a **Pruna AI text-to-image** model built specifically for design work where in-image text, layout, and branding must be precise. It turns natural language prompts into detailed 1K or 2K images, including posters, ads, and social graphics with correctly rendered typography and tight prompt adherence. The model is part of the Pruna AI **P-Image** family, optimized for fast, production-grade generation and high-volume workflows. Its primary differentiator is accurate, controllable text rendering inside images: users can quote text in the prompt and get clean, correctly spelled, well-placed lettering suitable for real campaigns and marketing assets. On each::labs, the P-Image Ideogram API makes this capability accessible through a simple, scalable integration for creative and product teams. ## Usage Notes - API Base URL: `https://api.eachlabs.ai/v1` - Authentication: send `Authorization: Bearer YOUR_API_KEY`. Generate a key from the Eachlabs dashboard at https://www.eachlabs.ai/dashboard/api-keys. - File-typed parameters (`*_url`, `image_url`, `video_url`, `audio_url`, etc.) accept publicly-reachable HTTPS URLs only. Upload your asset first (GCS / S3 / your CDN) and pass the resulting URL. Data-URIs and localhost URLs are rejected. - For structured parameters (arrays / objects) send real JSON values, not stringified payloads. - Monetary values are reported in USD; per-token / per-megapixel rates may be billed in micro-cents internally. - Prefer `webhook_url` over polling for long-running predictions — see the Webhook Callback section.