---
title: "Generate with P-Image Ideogram"
method: POST
path: "/v1/text-to-image/p-image-ideogram"
tags: ["generate"]
---

# Generate with P-Image Ideogram

`POST /v1/text-to-image/p-image-ideogram`

Generates images synchronously using P-Image Ideogram. `quality` selects
the generation quality level and `resolution` selects the output-size
tier. Both parameters have defaults.

Images links are available for a limited period of time; if you would like to keep the image, you must download them.

## Request body

- GenerateImageRequestPImageIdeogram — Request body for P-Image Ideogram. The model's quality and resolution tier are supplied as request parameters. The server selects the matching P-Image model variant; custom registry models cannot be selected.
  - `prompt` string, required — The prompt for image generation. Accepts either natural language or a structured Ideogram 4.0 JSON prompt; the server detects which was supplied.
  - `prompt_upsampling` 'AUTO' | 'ON' | 'OFF' — Determine if MagicPrompt should be used in generating the request or not.
  - `seed` integer, nullable — Random seed for reproducibility.
  - `magic_prompt_system_prompt_config_id` string — A base64url-encoded magic prompt system prompt config ID to use for this request.
  - `quality` 'VERY_LOW' | 'LOW' | 'MEDIUM' | 'HIGH' — The generation quality level. Higher levels may use more inference steps or additional prompt processing.
  - `resolution` '1K' | '2K' — The output-size tier for P-Image Ideogram.
  - `aspect_ratio` '1x3' | '3x1' | '1x2' | '2x1' | '9x16' | '16x9' | '10x16' | '16x10' | '2x3' | '3x2' | '3x4' | '4x3' | '4x5' | '5x4' | '1x1' — The aspect ratio to use for image generation, which determines the image's resolution. Cannot be used in conjunction with resolution. Defaults to 1x1.
  - `custom_width` integer, nullable — Optional. An exact output width in pixels, used together with `custom_height` for output sizes outside the preset tiers. Must be a positive multiple of 16 between 16 and 4096, and `custom_width` × `custom_height` must not exceed 4,194,304 pixels (2048×2048). Cannot be combined with `resolution` or `aspect_ratio`; the request is billed at the resolution tier matching its total pixel count.
  - `custom_height` integer, nullable — Optional. An exact output height in pixels, used together with `custom_width`. See `custom_width` for the accepted range and billing behavior.
  - `enable_copyright_detection` boolean, nullable — Optional. Opt this request into post-generation copyright detection.

## Response `200`

Image(s) generated successfully.

- ImageGenerationResponseV4 — The response which contains information about the generated image, including the download link. Images links are available for a limited period of time; if you would like to keep the image, you must download it.
  - `response_type` 'url' — Discriminator for the postGenerateDesignV4 oneOf response. Always "url" for this shape.
  - `created` string, date-time, required — The time the request was created.
  - `data` ImageGenerationObjectV4[], required — A list of ImageObjects that contain the generated image(s).
    - `url` string, uri, nullable — The direct link to the image generated.
    - `prompt` string, required — The prompt used for the generation. This may be different from the original prompt.
    - `resolution` string, required — The output resolution of the image, in the format WIDTHxHEIGHT (e.g. 1024x1024). Not limited to the request resolution presets, since some endpoints accept custom output sizes.
    - `is_image_safe` boolean, required — Whether this request passes safety checks. If false, the url field will be empty.
    - `seed` integer, required — Random seed. Set for reproducible generation.

## Other responses

- `400` — Invalid input provided.
- `401` — Not authorized.
- `422` — Prompt failed the safety check.
- `429` — Too many requests.

---

[API](https://skmtc.net/ideogram/apis/ideogram-openapi-3-0.md) · [All operations](https://skmtc.net/ideogram/apis/ideogram-openapi-3-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ideogram/ideogram-openapi-3-0/versions/bd40f367a834/schema)
