ImageCon V3 Beta
curl --request POST \
--url https://api.worqhat.com/api/ai/images/generate/v3 \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"image_style": "realistic",
"orientation": "square",
"output_type": "url",
"prompt": [
"Create an image of an AI cat typing on a keyboard"
]
}'
{
"image": "https://storage.googleapis.com/1fe0a9ac-617a-42e4-a376-37808b98fc99-worqhat/image-gen/MFl2oNxrMLYKvWbwoDkbQPpScWD3-1697226444718.png?GoogleAccessId=cloud-storage-upload%40worqhat-dev.iam.gserviceaccount.com&Expires=1697226626&Signature=DHlOeWd4QladLc6hsdoqp9lTbvMXs06B6hOkQPviFubszuLfahXXRv9aj%2FPTTlytlTClXHX0zGFr3Tsq9S%2Fs3hFjqBsy7lho%2BfuRFhPG4FrQoV2lxrZmB47X6nWc7TG6hbgLkyT3CvAOfwccmWHH1cbBiEDSI0iEKvx7kwUsgIrYu1ko9Szkul29fjVQ89WL6jyQQX1G9ejsQTNmXHFNRvhwRHkRfZJ5n3Y1uR7aqAyMZfQ2Me6i7bVb7smc0t5Ed2yk6%2BN1fdrz6zhbkc%2Fuh13vWhrT8EWMuCYKhsrzPakO%2B%2B229nlt5Y4D9zyFqevAmj43Vl76INIq29gcs39oQg%3D%3D",
"processing_count": 1,
"processing_id": "cd185dd4-fcfb-4b15-93de-db9eded23ade",
"processing_time": 2311,
"status": "success"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The style of the image to be generated. You can choose between Abstract
, Landscape
, Portrait
, Still Life
, Animal
, Anime
, Architecture
, etc.
The orientation of the image to be generated. You can choose between square
, portrait
, and landscape
. square
will generate a square image of dimensions 1024x1024. portrait
will generate a portrait image of dimensions 1024x1344. landscape
will generate a landscape image of dimensions 1344x1024.
square
, portrait
, landscape
The type of output to be generated. You can choose between url
and blob
. URL
will return a cloud-hosted Temporary URL for the generated image, you need to handle the image download on your end. blob
will return the image as a base64 encoded string.
url
, blob
The prompt and descriptions to be used for generating the image.
Response
The generated image.
The number of times the request has been processed. This is what is considered in the Billing Process. This is either the number of times the image is processed or the number of words that the server processes.
A universally unique identifier for the request. This can be used to track the request in the logs.
The time taken to process the request, in milliseconds.
Status indicating the success of the image generation.
Was this page helpful?
curl --request POST \
--url https://api.worqhat.com/api/ai/images/generate/v3 \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"image_style": "realistic",
"orientation": "square",
"output_type": "url",
"prompt": [
"Create an image of an AI cat typing on a keyboard"
]
}'
{
"image": "https://storage.googleapis.com/1fe0a9ac-617a-42e4-a376-37808b98fc99-worqhat/image-gen/MFl2oNxrMLYKvWbwoDkbQPpScWD3-1697226444718.png?GoogleAccessId=cloud-storage-upload%40worqhat-dev.iam.gserviceaccount.com&Expires=1697226626&Signature=DHlOeWd4QladLc6hsdoqp9lTbvMXs06B6hOkQPviFubszuLfahXXRv9aj%2FPTTlytlTClXHX0zGFr3Tsq9S%2Fs3hFjqBsy7lho%2BfuRFhPG4FrQoV2lxrZmB47X6nWc7TG6hbgLkyT3CvAOfwccmWHH1cbBiEDSI0iEKvx7kwUsgIrYu1ko9Szkul29fjVQ89WL6jyQQX1G9ejsQTNmXHFNRvhwRHkRfZJ5n3Y1uR7aqAyMZfQ2Me6i7bVb7smc0t5Ed2yk6%2BN1fdrz6zhbkc%2Fuh13vWhrT8EWMuCYKhsrzPakO%2B%2B229nlt5Y4D9zyFqevAmj43Vl76INIq29gcs39oQg%3D%3D",
"processing_count": 1,
"processing_id": "cd185dd4-fcfb-4b15-93de-db9eded23ade",
"processing_time": 2311,
"status": "success"
}