FoxAIHubFoxAIHub

Z-Image API Playground

Generate stunning AI images with our powerful Z-Image API. The Z-Image API provides exceptional image generation capabilities through our advanced service.

Prompt
Enter a detailed description of the image you want to generate using Z-Image API. The Z-Image API will create your image.
Options

Z-Image API Showcase Gallery

Explore stunning AI-generated images created with our Z-Image API.

AI generated image: Pirate ship trapped in a cosmic maelstrom nebula, ...

Pirate ship trapped in a cosmic maelstrom nebula, rendered in cosmic beach whirlpool engine, volumetric lighting, spectacular, ambient lights, light pollution, cinematic atmosphere, art nouveau style, illustration art artwork by SenseiJaye, intricate detail.

AI generated image: cute anime girl with massive fennec ears and a big...

cute anime girl with massive fennec ears and a big fluffy fox tail with long wavy blonde hair between eyes and large blue eyes blonde colored eyelashes chubby wearing oversized clothes summer uniform long blue maxi skirt muddy clothes happy sitting on the side of the road in a run down dark gritty cyberpunk city with neon and a crumbling skyscraper in the rain at night while dipping her feet in a river of water she is holding a sign that says "FoxAIHub is awesome" written in cursive

AI generated image: 古风美人,面容精致美丽,手拿汝瓷杯,优雅喝茶,茶席上有茶壶茶杯茶叶插花,精致的茶席布置,环境优美,丰...

古风美人,面容精致美丽,手拿汝瓷杯,优雅喝茶,茶席上有茶壶茶杯茶叶插花,精致的茶席布置,环境优美,丰富细节,光斑点缀, 人像摄影,日常快照风格,非精心构图或打光,神情忧郁妖冶少女,冷白皮,瓜子脸尖下巴,皮肤白皙,底妆通透,肤色均匀自然,纯欲风。,发丝清晰可见,皮肤白皙,底妆通透,肤色均匀自然,纯欲风。光线柔和自然,非均匀打光,表情自然松弛,照片毫无修饰感,带有生活真实感。ccd拍照感,iphone实拍,真人,真实生活

AI generated image: Ink painting, use simple ink painting to draw a ve...

Ink painting, use simple ink painting to draw a very powerful black horse

AI generated image: Modern sofa, with cushions and armrests, minimalis...

Modern sofa, with cushions and armrests, minimalist design, clean lines, white background, modern furniture, simple and elegant, neutral color matching, modern interior design, pillows on the sofa.

AI generated image: Resin drop pendant embedded with dried flowers and...

Resin drop pendant embedded with dried flowers and gold leaves, translucent light under soft box, black matte base, fine dust particles under edge light, handmade gallery photos

AI generated image: a stunning watercolor painting on canvas of a beau...

a stunning watercolor painting on canvas of a beautiful woman, in the style of Claude Monet ::1 4 lavender fields, impressionism, impressionistic landscapes, pastel colors, impressionistic portraits ::1 3 exaggerated blurry brushstrokes

AI generated image: A bluebird, stencil...

A bluebird, stencil

AI generated image: 1girl, hatsune miku, dress, long hair, jewelry, wh...

1girl, hatsune miku, dress, long hair, jewelry, white dress, blue eyes, necklace, bubble, solo, underwater, hair between eyes, looking at viewer, bangs, blue hair, bow, reaching towards viewer, blue theme, air bubble, hair bow, collarbone, floating hair, frills, twintails, blurry foreground, frilled dress, off-shoulder dress, bare shoulders, blurry, very long hair,masterpiece,best quality,amazing quality,

Why Choose FoxAIHub for Z-Image API?

Get the best Z-Image service at half the price, double the value. Our Z-Image offers superior performance.

fal.ai
Cost/MP
$0.005
Speed
1.56s
$1 =
200 imgs
Replicate
Cost/MP
$0.005
Speed
2.12s
$1 =
200 imgs
BEST VALUE
FoxAIHubFoxAIHub
Cost/MP
$0.0025
-50%
Speed
2.51s
$1 =
400 imgs
2x more
Save 50% with Z-Image API compared to other providers. The Z-Image offers unmatched value.

Why Choose Our Z-Image API?

  • • Best performance
  • • Affordable pricing
  • • Reliable service
  • • Fast response times
  • • Quality results

Z-Image API Advantages

  • • Superior technology
  • • Easy integration
  • • Scalable solutions
  • • Professional support
  • • Advanced features

Generation speed depends on the steps & size parameter. Higher steps produce clearer, higher-quality images but take longer to generate.

Z Image API Document

Basic API Configuration

Base URL: https://api.foxaihub.com/api/v2

Headers Parameters:

{
  "api-key": "Your API Key"
}

:::warning

The parameter is api-key instead of api_key.

:::

Pricing

$0.0025 per generation

Notes

The images generated by this API will only be saved for 24 hours, after which they will be deleted by the system. At that time, you will not be able to access the image via the URL.

Z Image Turbo Task

Path: /aigc/task

Method: POST

Type: application/json

Parameters

Parameter Name Type Description Remarks
task_type String Task type identifier Required. Must be "z_image_turbo"
params Object Generation parameters object Required
params.prompt String Text prompt used to guide the image generation process Required
params.negative_prompt String Text describing elements to exclude from the generated image Optional. Default: ""
params.height Number Desired height, in pixels, of the generated image Required. Recommended: [1, 1536]
params.width Number Desired width, in pixels, of the generated image Required. Recommended: [1, 1536]
params.steps Number Number of denoising iterations the diffusion model will run Optional. Default: 5
batch_size Number How many separate images to produce per request Optional. Valid range: [1, 4]. Default: 1

The range of Steps is 4-9. Higher steps result in slower image generation, but also higher image quality.

Example Request

POST {{base_url}}/aigc/task HTTP/1.1
Content-Type: application/json
api-key: {{api_key}}

{
    "task_type": "z_image_turbo",
    "params": {
        "prompt": "Pirate ship trapped in a cosmic maelstrom nebula, rendered in cosmic beach whirlpool engine, volumetric lighting, spectacular, ambient lights, light pollution, cinematic atmosphere, art nouveau style, illustration art artwork by SenseiJaye, intricate detail.",
        "negative_prompt": "",
        "height": 1024,
        "width": 1024,
        "steps": 5
    },
    "batch_size": 2
}

Example Response

{
  "success": true,
  "task_id": "019add2a-9e3e-7000-96bd-cee7b41bdd2f"
}

Query Task Status

Path: /aigc/task

Method: GET

Type: application/json

Query Parameters

Parameter Name Type Description Remarks
ids String Task ID(s) to query. Multiple IDs can be comma-separated Required

Example Request

GET {{base_url}}/aigc/task?ids=019add29-ab83-7000-81e1-8d93c6cbaebb HTTP/1.1
Content-Type: application/json
api-key: {{api_key}}

Example Response (Processing)

[
  {
    "id": 16186,
    "user_id": 1,
    "task_id": "019add29-ab83-7000-81e1-8d93c6cbaebb",
    "task_type": "z_image_turbo",
    "status": "processing",
    "params": {
      "steps": 5,
      "width": 1024,
      "height": 1024,
      "prompt": "Pirate ship trapped in a cosmic maelstrom nebula, rendered in cosmic beach whirlpool engine, volumetric lighting, spectacular, ambient lights, light pollution, cinematic atmosphere, art nouveau style, illustration art artwork by SenseiJaye, intricate detail.",
      "batch_size": 2,
      "negative_prompt": ""
    },
    "data": null,
    "data1": null,
    "data2": null,
    "priority": 0,
    "created_at": "2025-12-02T03:44:47.000Z"
  }
]

Example Response (Completed)

[
  {
    "id": 16186,
    "user_id": 1,
    "task_id": "019add29-ab83-7000-81e1-8d93c6cbaebb",
    "task_type": "z_image_turbo",
    "status": "completed",
    "params": {
      "steps": 5,
      "width": 1024,
      "height": 1024,
      "prompt": "Pirate ship trapped in a cosmic maelstrom nebula, rendered in cosmic beach whirlpool engine, volumetric lighting, spectacular, ambient lights, light pollution, cinematic atmosphere, art nouveau style, illustration art artwork by SenseiJaye, intricate detail.",
      "batch_size": 2,
      "negative_prompt": ""
    },
    "data": [
      "https://cdnfy.foxai.me/019add29-ab83-7000-81e1-8d93c6cbaebb_0.png",
      "https://cdnfy.foxai.me/019add29-ab83-7000-81e1-8d93c6cbaebb_1.png"
    ],
    "data1": null,
    "data2": null,
    "priority": 0,
    "created_at": "2025-12-02T03:44:47.000Z"
  }
]

Task Status Values

Status Description
processing Task is currently being processed
completed Task has finished successfully, image URLs available in data array
failed Task failed to complete

Z-Image API Recommended Image Resolutions

Following the 64-pixel alignment principle for optimal Z-Image API image generation quality and compatibility. The Z-Image API works best with these resolutions.

Standard Resolution (1K)

Long edge fixed at 1024px, short edge scaled proportionally to the nearest multiple of 64.

RatioResolutionPixelsUse Case
1:11024 x 10241.05MAvatars, Social Media
4:31024 x 7680.78MTraditional Displays, Tablets
3:4768 x 10240.78MPortraits, Poster Previews
16:91024 x 5760.59MDesktop Wallpapers, Video Thumbnails
9:16576 x 10240.59MMobile Wallpapers, Stories

High Resolution (2K)

Long edge fixed at 2048px for finer detail, ideal for printing and high-resolution displays.

RatioResolutionPixelsUse Case
1:12048 x 20484.19MHD Artwork, Commercial Assets
4:32048 x 15363.14MPresentations, Photo Albums
3:41536 x 20483.14MMagazine Covers, HD Portraits
16:92048 x 11522.36M4K Display, Video Production
9:161152 x 20482.36MHD Mobile Wallpapers, App Splash Screens

Z-Image API Frequently Asked Questions

Everything you need to know about Z-Image API. Get answers about our Z-Image API service, Z-Image API features, and Z-Image API usage.

What is Z-Image API?
Z-Image API is a powerful and highly efficient image generation API service with 6 billion parameters, designed to deliver high-quality AI-generated images through our Z-Image API with exceptional speed and accuracy. The Z-Image API is the best choice for developers.
What model series does Z-Image API include?
Z-Image API includes three models: Z-Image-Turbo API (currently available), Z-Image-Base API, and Z-Image-Edit API. The latter two Z-Image API models are still in development and have not been released yet.
What scenarios is Z-Image API best suited for?
Z-Image API excels at a wide range of image generation scenarios and supports various artistic styles. The Z-Image API also specializes in accurate text rendering for both Chinese and English characters within images. Use Z-Image API for all your image needs.
Does Z-Image API support batch generation and pixel control?
Yes, our Z-Image API supports generating multiple images in a single API request, from 1 to 8 images. The Z-Image API also supports pixel count control, with a maximum resolution of 2048×2048 pixels. Note that higher pixel counts will result in slower Z-Image API generation times.