Skip to content

inference.pruna.p-image-ideogram.txt2img.v1

View markdown

The inference.pruna.p-image-ideogram.txt2img.v1 job generates an image from a text prompt using Pruna P-Image (Ideogram).

{
"type": "inference.pruna.p-image-ideogram.txt2img.v1",
"config": {
"prompt": "a serene mountain landscape at golden hour"
}
}

Additional configuration:

  • thinking (string; one of very low, low, medium, high; default high)
  • image_size (string; one of 1K, 2K; default 1K)
  • aspect_ratio (string; one of 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3; default 1:1)
  • width (integer)
  • height (integer)
  • seed (integer)
  • prompt_upsampling (boolean; default True)

This job type is also available under its partner alias inference.partner.pruna.p-image-ideogram.txt2img.v1.

{
"type": "object",
"required": [
"type",
"config"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string"
},
"config": {
"type": "object",
"required": [
"prompt"
],
"additionalProperties": false,
"properties": {
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 4096,
"description": "Text prompt describing the image to generate."
},
"thinking": {
"type": "string",
"default": "high",
"enum": [
"very low",
"low",
"medium",
"high"
],
"description": "Reasoning effort. Lower levels generate faster, higher levels improve quality."
},
"image_size": {
"type": "string",
"default": "1K",
"enum": [
"1K",
"2K"
],
"description": "Output resolution budget. Ignored when width or height is set."
},
"aspect_ratio": {
"type": "string",
"default": "1:1",
"enum": [
"1:1",
"16:9",
"9:16",
"4:3",
"3:4",
"3:2",
"2:3"
],
"description": "Aspect ratio of the image. Ignored when width or height is set."
},
"width": {
"type": "integer",
"minimum": 256,
"maximum": 2560,
"description": "Number of pixels wide. Setting width or height overrides image_size and aspect_ratio."
},
"height": {
"type": "integer",
"minimum": 256,
"maximum": 2560,
"description": "Number of pixels tall. Setting width or height overrides image_size and aspect_ratio."
},
"seed": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647,
"description": "A randomness initializer for image reproducibility. Only reproducible when prompt_upsampling is disabled."
},
"prompt_upsampling": {
"type": "boolean",
"default": true,
"description": "Use prompt upsampling to enhance the prompt."
}
}
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}