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
| Parameter | Type | Required | Description |
|---|---|---|---|
apikey | string | Yes | Your secret Zapi API key. |
prompt | string | Yes | A detailed visual description of the image. |
aspect_ratio | string | No | Default: 1:1. Options: 16:9, 9:16, 4:3, etc. |
nonce | string | No | A 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.pngExample 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