Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.iacrea.com/llms.txt

Use this file to discover all available pages before exploring further.

Interior Sky API

The Interior Sky service allows you to enhance the view from your interior windows by replacing the visible sky with a perfect blue sky and optimizing visible landscapes.

Generate an interior sky

POST /api/sky_interior/generate
Calling this endpoint launches a new generation to enhance exterior views visible through windows. This operation also creates a new project and, depending on your subscription, it is possible to obtain free variations.

Request Parameters

user_id
string
required
The unique user identifier (UUID) that you can retrieve from your Developer Space
image_url
string
required
URL of the interior image to enhance (format: jpg, png)
webhook
string
The URL we call once the generation is complete

Response

generation_id
string
The unique generation identifier (UUID) to use with the retrieval API
remaining_photos
number
The number of photos remaining after this generation
project_id
string
The unique project identifier (UUID)

Request Example

curl --request POST \
--url 'https://iacrea.com/api/sky_interior/generate' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "user_id": "uuid",
  "image_url": "https://example.com/interior.jpg"
}'

Response Example

{
  "generation_id": "uuid",
  "remaining_photos": 100,
  "project_id": "uuid"
}

Generate a variation of an interior sky

POST /api/sky_interior/generate-variation
This endpoint allows you to generate a variation of a previously generated interior sky.

Request Parameters

user_id
string
required
The unique user identifier (UUID)
generation_id
string
required
The unique identifier of the previous generation

Response

generation_id
string
The unique identifier of the new generation
remaining_photos
number
The number of photos remaining after this generation

Request Example

curl --request POST \
--url 'https://iacrea.com/api/sky_interior/generate-variation' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "user_id": "uuid",
  "generation_id": "uuid"
}'

Response Example

{
  "generation_id": "uuid",
  "remaining_photos": 100
}

Retrieve a generated interior sky

POST /api/sky_interior/get
This endpoint allows you to obtain the result of a previously performed generation.

Request Parameters

user_id
string
required
The unique user identifier (UUID)
generation_id
string
required
The unique identifier of the generation to retrieve

Response

status
string
The generation status: “STARTING”, “PROCESSING”, “SUCCEEDED”, “FAILED”
urls
array
An array containing the URLs of generated images (present only if status=“SUCCEEDED”)
variationNumber
number
The number of variations already performed on this project

Request Example

curl --request POST \
--url 'https://iacrea.com/api/sky_interior/get' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "user_id": "uuid",
  "generation_id": "uuid"
}'

Response Example

{
  "status": "SUCCEEDED",
  "urls": ["https://generated-image-url"],
  "variationNumber": 2
}