Image Gen V2
POST
/api/ai/images/generate/v2Last modified:Â 5 months ago
Request
Body Params application/json
prompt
array[string]
required
image_style
stringÂ
required
orientation
enum<string>Â
optional
Allowed values:
SquareLandscapePortrait
output_type
enum<string>Â
optional
Allowed values:
urlBase64
Example
{
"prompt": [
"A cat floating on the clouds"
],
"image_style": "Anime",
"orientation": "Square",
"output_type": "url"
}
Request samples
Responses
OK(200)
Server Error(500)
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
image
stringÂ
required
processingTime
numberÂ
required
processingId
stringÂ
required
Example
{
"image": "https://storage.googleapis.com/1fe0a9ac-617a-42e4-a376-37808b98fc99-worqhat/image-gen/image-gen/DMAebBM8GbWOiKUCYtbrk2je3ef2-1721832301072.png?GoogleAccessId=cloud-storage-upload%40worqhat-dev.iam.gserviceaccount.com&Expires=1721832487&Signature=GxIitHJ0zCeFGWtQT3toHHHX%2BKTToG8KyRdu6JZyYaN5QVUGWKjt2JccSZ2nwLuMDNGGevkSaPw05Wrvbr2MNAwOiUQqSSavUi7yuwdyLz24toSQJCbL91brgr5oCvYCSDW%2FH4VS4rssTwID%2FutBehz8VtyKU4glZrLgVfikGM%2FbjPKNxfYhlsNZhOxf0n1xgkV6HBy450ytaFjp7s0yAxnJkHETNTg%2FQsMQ0TAW88jURqWDl4KRzblbELs0rQzY8NG%2BzBJz6WlTzcbcI%2Bp%2Fmvkx1HBHJVC5U9CMy2Lhz6iISN%2B0NX4gnTjCZxGTF45WJr%2B6UbdKdYEIrHCgU1VSYA%3D%3D",
"processingTime": 15938.768708,
"processingId": "1e01b632-2d8f-4f71-8a27-36e219d67be5"
}
Last modified: 5 months ago