Pricing
Compare models →| Output | Cost |
|---|---|
| Per image | $0.01 |
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
image | string | URL of the reference image to guide the generation. |
size | string | The size of the generated media in pixels (width*height).Default: "1024*1024"Minimum: 256 · Maximum: 1536 |
strength | number | Controls the strength of the transformation. Higher values produce outputs more different from the input image.Default: 0.6Minimum: 0 · Maximum: 1 |
seed | integer | The random seed to use for the generation. -1 means a random seed will be used. |
output_format | string | The format of the output image.jpegpngwebp"jpeg" |
README
Z-Image Base
Z-Image Base is a 6-billion parameter text-to-image model from Tongyi-MAI that generates photorealistic images with optional reference image guidance. Provide a text prompt alone, or add a reference image to guide the composition, style, or subject — all at an incredibly affordable price.
Why Choose This?
- Reference image guidance
Optionally provide a reference image to influence the generated output's composition, style, or subject matter.
- Flexible output sizing
Customize width and height up to 1024px for any aspect ratio you need.
- Strength control
Fine-tune how much the reference image influences the output with the strength parameter.
- Prompt Enhancer
Built-in tool to automatically improve your prompts for better results.
- Ultra-affordable
Just $0.01 per image — perfect for high-volume generation and experimentation.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the image you want to generate |
| image | No | Reference image to guide generation (upload or URL) |
| size | No | Preset size options |
| width | No | Output width in pixels (default: 1024) |
| height | No | Output height in pixels (default: 1024) |
| strength | No | How much the reference image influences output, 0-1 (default: 0.6) |
| seed | No | Random seed for reproducibility (default: -1 for random) |
| output_format | No | Output format: jpeg, png (default: jpeg) |
| enable_sync_mode | No | API only: wait for result before returning response |
Strength Guide (with Reference Image)
- Lower values (0.2-0.4): Strong reference influence, output closely follows the reference image
- Medium values (0.5-0.7): Balanced blend of reference and prompt
- Higher values (0.8-1.0): Prompt dominates, reference serves as loose inspiration
How to Use
Text-to-Image (No Reference)
- Write your prompt — describe the image you want to create.
- Set dimensions — adjust width and height for your needs.
- Run — submit and download your image.
With Reference Image
- Upload a reference image — to guide the generation's composition or style.
- Write your prompt — describe the desired output.
- Adjust strength — control how much the reference influences the result.
- Run — submit and download your generated image.
Pricing
| Output | Cost |
|---|---|
| Per image | $0.01 |
Best Use Cases
- Rapid Prototyping — Generate multiple concepts quickly at minimal cost.
- Style-guided Generation — Use reference images to maintain consistent aesthetics.
- Content Creation — Produce visuals for social media, blogs, and marketing.
- Creative Exploration — Experiment freely with different prompts and settings.
- Batch Generation — Create large volumes of images affordably.
Pro Tips
- Use the Prompt Enhancer to automatically improve your descriptions.
- For pure text-to-image, be specific about style, lighting, and composition.
- When using a reference image, start with strength around 0.6 and adjust based on results.
- Keep the same seed to iterate on a specific composition while tweaking the prompt.
- Lower strength values make output follow the reference more closely; higher values give the prompt more creative freedom.
Notes
- When no image is provided, the model runs in pure text-to-image mode.
- The strength parameter only applies when a reference image is provided.
- enable_sync_mode is only available through the API, not in the web interface.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Z Image Base Text-to-Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/z-image/base for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"image": "https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251121/6784e7f4b50aebc7e17fe396/aprkzw5xyxhf.jpg",
"size": "1024*1024",
"strength": 0.6,
"seed": 0,
"output_format": "jpeg"
}Z Image Base Text-to-Image API — Frequently asked questions
What is the Z Image Base API?
Z Image Base is a OpenSIAI model for image generation, exposed as a REST API on OpenSIAI. Z-Image-Base is a 6 billion-parameter text-to-image model with full CFG support. Supports fine-tuning capabilities for maximum control over image generation. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Z Image Base API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/opensi-ai/z-image/base.
How much does Z Image Base cost per run or per second?
Z Image Base starts at $0.01 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Z Image Base accept?
Key inputs: prompt, image, size, seed, output_format, strength. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/opensi-ai/z-image/base.
How long does Z Image Base take to generate?
Reported generation time on OpenSIAI is around 39 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Z Image Base outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (OpenSIAI). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
