Retrieve Image History
The image_history
endpoint allows you to query the history of image creation, including the input parameters, creation time, and response results (both successful and failed) within a specified period. This endpoint supports pagination to navigate through large sets of historical data.
API Endpoint
To retrieve the image creation history, send a GET
request to the following URL:
GET https://api.genaifactory.ai/v1/image_history
Headers
Ensure that your request includes the following header:
Name
Type
Required
Description
formacloud-api-key
string
Yes
API key required for authenticating your request.
Query Parameters
You can use the following query parameters to specify the time period, pagination, and other details for retrieving the image history:
Name
Type
Required
Description
start
string
No
The start date of the history retrieval period in UTC (e.g., 2023-01-01T00:00:00Z
).
end
string
No
The end date of the history retrieval period in UTC (e.g., 2023-01-31T23:59:59Z
).
page_size
int
No
The maximum number of records to retrieve per page (default: 10).
page
int
No
The page number to retrieve (default: 1).
task_types
string
No
A comma-separated list of task types to filter results (e.g., POSTER,IMG_WITHOUT_TEXT
). Supported values include task types such as POSTER
, IMG_WITHOUT_TEXT
, and REDRAW_IMAGE
. If not provided, the default is POSTER,IMG_WITHOUT_TEXT
.
Response Body
The response will include a list of image creation records, each containing the following details:
Name
Type
Required
Description
create_time
string
Yes
The time when the image was created, in UTC.
input_parameters
object
Yes
The input parameters used for creating the image, including struct_content
, logo_url
, main_image_url
, and image_count
.
response_result
object
Yes
The response result of the image creation, including the success or failure response.
Example Request two
Example Response two
Success Response (Status Code 200)
Failure Response (Status Code 4XX)
Last updated