🚀 Z-Image Turbo Image-to-Image is Live — Unlimited Generations for Premium Users

Try Now
Skip to main content
Z Image Base thumbnail

ModelsLab/Z Image Base

z-image-base
API PlaygroundAPI Documentation

API Endpoint URL

Base URL for all API requests to this endpoint.

https://modelslab.com/api/v6/images/text2img

API Authentication

Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.

Integration Examples

Production-ready code samples for API integration

{
"prompt": "A highly detailed, ultra-realistic scene inside a modern McDonald’s restaurant. At the counter stands a friendly anthropomorphic creature resembling a furry monster or gentle beast. The creature has thick golden-brown fur, expressive round eyes, a wide flat nose, and a soft, friendly facial expression. It is wearing an official McDonald’s uniform: a dark grey short-sleeve button-up shirt with a red-and-yellow McDonald’s logo patch on the chest, dark trousers, and a navy-blue McDonald’s cap with the iconic yellow ‘M’. The creature has large, clawed hands covered in brown fur, and is handing over a classic McDonald’s brown takeaway bag with the yellow ‘M’ printed on it.\n",
"width": "1024",
"height": "1024",
"samples": "1",
"model_id": "z-image-base",
"key": "YOUR_API_KEY"
}

SDKs

Official SDKs

Production-ready SDKs and client libraries for all major programming languages

API Parameters

Technical specifications for API request parameters.

Field NameParameterTechnical Description
PromptpromptEnter the text for the image you want to generate
WidthwidthMax width supported is 1488
HeightheightMax height supported is 1488
Number of ImagessamplesNumber of images that can be generated in a single request
Modelmodel_idModel selected for generating the image. Each model generate different image.