Z-Image Base API
Z-Image Base is an image generation model by Tongyi-MAI. On Evrona you call it with the same API key and balance as every other model in the catalog. Requests go to the OpenAI-compatible /v1/images/generations.
- Model ID
tongyi-mai/z-image-base- Developer
- Tongyi-MAI
- Type
- Picture
Z-Image Base pricing
| Billed for | Price |
|---|---|
| Generation, per unit | $0.01 |
Accounting inside the service is in USD; EUR prices are recalculated at the current rate and may change.
Z-Image Base request example
Use https://evrona.ru/v1 as the base URL and pass tongyi-mai/z-image-base in the model field. You create the key in your account after signing up.
curl request
curl
curl https://evrona.ru/v1/images/generations \
-H "Authorization: Bearer ev-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tongyi-mai/z-image-base",
"prompt": "A lighthouse on a rocky shore at sunset, watercolor",
"n": 1
}'Python with the official OpenAI SDK
Python
from openai import OpenAI
client = OpenAI(
base_url="https://evrona.ru/v1",
api_key="ev-YOUR_KEY",
)
image = client.images.generate(
model="tongyi-mai/z-image-base",
prompt="A lighthouse on a rocky shore at sunset, watercolor",
n=1,
)
print(image.data[0])Start using Z-Image Base with Evrona
Sign up, top up your balance and create a key. The same key works for Z-Image Base and every other model in the catalog.