> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pornfactoryai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create an image

> Submit text-to-image, image-to-image, and image-edit requests.

## Text to image

```json theme={"system"}
{
  "mode": "text_to_image",
  "prompt": "A cinematic portrait with soft rim lighting",
  "negative_prompt": "blurry, low detail",
  "seed_mode": "random",
  "checkpoint": {
    "model_id": "mdl_...",
    "version_id": "ver_..."
  },
  "loras": [],
  "width": 768,
  "height": 1024,
  "steps": 8,
  "cfg_scale": 1
}
```

Set `seed_mode` to `custom` and provide an integer `seed` from `0` through
`1999999999` when you need repeatable sampling.

## Generated-library image input

`image_to_image` and `image_edit` require `source_creation_id`. The ID must
belong to the API key's account and reference a completed, safety-passed image
from the generated library.

```json theme={"system"}
{
  "mode": "image_edit",
  "prompt": "Preserve the composition and use dramatic studio lighting",
  "edit_instruction": "Change the lighting and color grade",
  "source_creation_id": "67d41fe0-2b3e-4f47-a0a1-42c4ea1c1af5",
  "seed_mode": "random",
  "checkpoint": {
    "model_id": "mdl_...",
    "version_id": "ver_..."
  },
  "loras": []
}
```

<Warning>
  Direct file uploads, base64 media, remote image URLs, and arbitrary upload IDs
  are unsupported.
</Warning>
