---
title: "p-image-lora"
url: "https://docs.api.pruna.ai/apis/models-api-0/versions/7dfbc266-0f94-4c90-8518-d9e4d1a245ec/schemas/p-image-lora"
---

> Full API specification: https://docs.api.pruna.ai/apis/models-api-0/versions/7dfbc266-0f94-4c90-8518-d9e4d1a245ec.md

# p-image-lora

AI model for content generation. Rate limit: 250 requests per minute.

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: P-API
  version: 0.3.0
servers:
  - url: https://api.pruna.ai
    description: Production server
components:
  schemas:
    p-image-lora:
      type: object
      required:
        - input
      properties:
        input:
          type: object
          properties:
            seed:
              title: Seed
              description: Random seed. Set for reproducible generation.
              type: integer
            width:
              title: Width
              maximum: 1440
              minimum: 256
              description: Width of the generated image. Only used when aspect_ratio=custom.
                Must be a multiple of 16.
              type: integer
            height:
              title: Height
              maximum: 1440
              minimum: 256
              description: Height of the generated image. Only used when aspect_ratio=custom.
                Must be a multiple of 16.
              type: integer
            prompt:
              title: Prompt
              description: Text prompt for image generation.
              type: string
            lora_scale:
              title: Lora Scale
              default: 1
              maximum: 3
              minimum: -1
              description: Determines how strongly the main LoRA should be applied.
              type: number
            aspect_ratio:
              enum:
                - 1:1
                - 16:9
                - 9:16
                - 4:3
                - 3:4
                - 3:2
                - 2:3
                - custom
              title: aspect_ratio
              description: Aspect ratio for the generated image.
              default: 16:9
              type: string
            hf_api_token:
              title: Hf Api Token
              format: password
              writeOnly: true
              description: HuggingFace API token. If you're using a HuggingFace LoRAs that
                needs authentication, you'll need to provide an API token.
              x-cog-secret: true
              type: string
            lora_weights:
              title: Lora Weights
              description: 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.
              type: string
            prompt_upsampling:
              title: Prompt Upsampling
              default: false
              description: upsample the prompt with an llm
              type: boolean
            disable_safety_checker:
              title: Disable Safety Checker
              default: false
              description: Disable safety checker for generated images.
              type: boolean
          required:
            - prompt
          additionalProperties: false
      description: "AI model for content generation. Rate limit: 250 requests per minute."
```
