Skip to Content

SimAI Image

A text-to-image generation model. Provide a prompt and receive a synthesized image directly.

Endpoint

POST https://z.os7.site/api/generative/simai-image

Request Parameters

ParameterTypeRequiredDescription
apikeystringYesYour secret Zapi API key.
promptstringYesA detailed visual description of the image.
aspect_ratiostringNoDefault: 1:1. Options: 16:9, 9:16, 4:3, etc.
noncestringNoA random string to bypass caching.

Example Request

curl -X POST https://z.os7.site/api/generative/simai-image \ -H "Content-Type: application/json" \ -d '{ "apikey": "zp_your_secret_api_key", "prompt": "A majestic lion standing on a cliff at sunrise, 4k", "aspect_ratio": "16:9" }' \ --output result.png

Example Response

The response is a raw binary image buffer (image/png or image/jpeg).

HTTP/1.1 200 OK Content-Type: image/png Content-Length: 2048576 <Binary Image Data>
Last updated on