English
API documentation for modifying specific elements
curl --request POST \ --url 'https://iacrea.com/api/one_element/generate' \ --header 'x-api-key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "user_id": "uuid", "image_url": "https://example.com/image.jpg", "element": "WALL" }'
{ "generation_id": "uuid", "remaining_photos": 100, "project_id": "uuid" }
curl --request POST \ --url 'https://iacrea.com/api/one_element/generate-variation' \ --header 'x-api-key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "user_id": "uuid", "generation_id": "uuid", "room_type": "FLOOR" }'
{ "generation_id": "uuid" }
curl --request POST \ --url 'https://iacrea.com/api/one_element/get' \ --header 'x-api-key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "user_id": "uuid", "generation_id": "uuid" }'
{ "status": "SUCCEEDED", "urls": ["https://generated-image-url"], "variationNumber": 2 }