Skip to main content

Metadata

Metadata is an optional field that can be sent in addition to any API request by adding the request_metadata field to the body of the request in JSON format. AI GEN will return the submitted data in the response.

Example

Request

{
"image": "<base64 image>",
"request_metadata": {
"some_ref_id": 12345,
"example_data": "test"
}
}

Response

{
"result": "<some_result>",
"response_id": "5502d61d-8509-4478-b5b3-86ab6fcc106e",
"request_metadata": {
"some_ref_id": 12345,
"example_data": "test"
}
}