Skip to main content
POST
/
v1
/
images
/
generations
curl --request POST \
  --url https://api.zarkai.xyz/v1/images/generations \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "prompt": "A collage of Tokyo landmarks in a stenciled street-art style",
  "workspace_id": "wks-xxxxx"
}
'
{
  "file_id": "file-img-a73bae6f-5a65-4bec-9ffb-8220caa3fa61",
  "name": "tokyo-landmarks.png",
  "mime_type": "image/png"
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
prompt
string
required

Text description of the image to generate

workspace_id
string
required

Your Space ID

aspect_ratio
string
default:1:1

Output aspect ratio (e.g. 1:1, 16:9, 3:2)

Response

Image generated

file_id
string

File ID of the generated image in your Space

name
string

Filename

mime_type
string

MIME type of the generated image