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

# Inputs

> Review URL and image requirements before submitting assets to the Tasks API.

When you create Tasks through the API, you submit image assets by URL. The requirements below apply before generation begins.

## URLs

In all cases, URLs must meet some basic minimum requirements:

1. All URLs must be HTTPS.
2. URLs must reference a domain name, not an IP address.
3. The server should respond with valid Content-Type and Content-Length headers.
4. Redirects are not followed. If the URL returns a 3XX response code, the request is considered failed.
5. The length of any single URL must not exceed 2083 characters.

Make sure the asset can be downloaded directly from the URL without cookies or other interactive authentication.

### Content-Type

When specifying a URL, the `Content-Type` response header must be present, and it must match the media type of your asset. File extensions in URLs are not considered. The supported content types are [listed below](#images) for each supported asset type.

### User Agent

Infinite Creator will use a `User-Agent` header that starts with `InfiniteCreator/` when making requests to your server. If you use a scraping-prevention tool or WAF, be sure to allowlist our user agent string prefix.

## Type-specific requirements

### Images

For fields that accept images, the asset referenced by the URL must use one of the following codecs, along with the corresponding `Content-Type` header:

| Codec | Content-Type                |
| ----- | --------------------------- |
| JPEG  | `image/jpg` or `image/jpeg` |
| PNG   | `image/png`                 |
| WebP  | `image/webp`                |

And fit the following constraints:

| Property   | Limit                                                                                            |
| ---------- | ------------------------------------------------------------------------------------------------ |
| Resolution | Up to <Tooltip tip="100 million pixels, e.g. 10000x10000 pixels">100 MP</Tooltip>                |
| Size       | <Tooltip tip="20,480 bytes">20 KB</Tooltip> -- <Tooltip tip="134,217,728 bytes">128 MB</Tooltip> |

<Tip>
  * It is **not recommended** to provide images smaller than `640x640px` or larger than `4K`.
  * If your image has an [EXIF Orientation](https://web.archive.org/web/20220307162505/https://www.impulseadventure.com/photo/exif-orientation.html) flag set, we will rotate it to the correct orientation.
  * Although we don't impose an aspect ratio limit, we crop every image to ensure that its aspect ratio falls within the range between `0.5` and `2.0` as necessary. Cropping is done from the center of the image.
</Tip>
