Dzine - Image Generator
Professional AI image generation with Dzine's advanced text-to-image models. Dzine provides high-quality image generation with extensive style options, face matching capabilities, and flexible output configurations for creative workflows.
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Feature type identifier. Must be IMAGE_GENERATOR |
model | string | Yes | AI model identifier. Must be dzine |
promptObject | object | Yes | Configuration object containing all generation parameters |
Prompt Object Parameters
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
prompt | string | Yes | Text description of the image to generate | - |
style_code | string | Yes | Style code from Dzine's style library | - |
style_base_model | string | Yes | Base model from Dzine's style library: "S" or "X" | - |
quality | string | Yes | Image quality mode: "STANDARD" or "HIGH" | - |
n | number | Yes | Number of images to generate (1-4) | - |
output_format | string | Yes | Output format: "webp" or "jpeg" | - |
size | string | No | Image dimensions in format "WIDTHxHEIGHT" (128-1536 pixels) | "1024x1024" |
style_intensity | number | No | Strength of style applied (0.0-1.0 in 0.1 increments) | 0 |
seed | number | No | Random seed for reproducibility (1-2147483647) | Random |
face_match | boolean | No | Enable face matching from reference image | false |
face_match_image | string | No | Asset path to reference face image (required if face_match is true). Example: development/images/reference_face.jpg | - |
Image Requirements
- Maximum Size: 10 MB
- Formats: JPG, PNG, WebP supported as input
Style Codes
Dzine offers 200+ curated styles based on two foundational models:
- Model S: Standard quality generation
- Model X: Extended quality generation
Use the Get Dzine Style List API to retrieve all available style codes.
Get Dzine Style List API
Before generating images, you need to retrieve available style codes using this endpoint.
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
Response Format
{
"styleList": [
{
"name": "No Style v2",
"base_model": "S",
"style_code": "Style-7feccf2b-f2ad-43a6-89cb-354fb5d928d2",
"cover_url": "https://static.stylar.ai/stylar_admin/common/style_avatar/6ce8b5158b63c56d32cd8305a73ecab8/1721212364855681_11_312.jpg",
"style_intensity": {
"img2img": 0,
"txt2img": 0
}
},
{
"name": "Anime",
"base_model": "S",
"style_code": "Style-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"cover_url": "https://static.stylar.ai/.../anime_style.jpg",
"style_intensity": {
"img2img": 0.8,
"txt2img": 0.9
}
}
],
"total": 208
}
Style List Response Fields
| Field | Type | Description |
|---|---|---|
name | string | Human-readable style name |
base_model | string | Model type: "S" (Standard) or "X" (Extended) |
style_code | string | Unique style identifier to use in generation requests |
cover_url | string | Preview image URL showing the style |
style_intensity.txt2img | number | Recommended intensity for text-to-image (0-1) |
style_intensity.img2img | number | Recommended intensity for image-to-image (0-1) |
Example Request
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/dzine/styles' \
--header 'API-KEY: <api-key>'
fetch('https://api.1min.ai/api/dzine/styles', {
method: 'GET',
headers: {
'API-KEY': 'YOUR_API_KEY'
}
})
.then(response => response.json())
.then(data => console.log(data));
import requests
url = "https://api.1min.ai/api/dzine/styles"
headers = {
"API-KEY": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
styles = response.json()
Interactive Playground
API Playground
https://api.1min.ai/api/dzine/stylesGenerated cURL Command:
curl -X GET "https://api.1min.ai/api/dzine/styles" \
-H "API-KEY: <your-api-key>"
Image Generation Code Examples
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_GENERATOR",
"model": "dzine",
"promptObject": {
"prompt": "A serene mountain landscape at sunset with vibrant autumn colors",
"style_code": "Style-7feccf2b-f2ad-43a6-89cb-354fb5d928d2",
"style_base_model": "S",
"size": "1024x1024",
"n": 1,
"style_intensity": 0.8,
"quality": "HIGH",
"output_format": "webp"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'IMAGE_GENERATOR',
model: 'dzine',
promptObject: {
prompt: 'A serene mountain landscape at sunset with vibrant autumn colors',
style_code: 'Style-7feccf2b-f2ad-43a6-89cb-354fb5d928d2',
style_base_model: 'S',
size: '1024x1024',
n: 1,
style_intensity: 0.8,
quality: 'HIGH',
output_format: 'webp'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "IMAGE_GENERATOR",
"model": "dzine",
"promptObject": {
"prompt": "A serene mountain landscape at sunset with vibrant autumn colors",
"style_code": "Style-7feccf2b-f2ad-43a6-89cb-354fb5d928d2",
"style_base_model": "S",
"size": "1024x1024",
"n": 1,
"style_intensity": 0.8,
"quality": "HIGH",
"output_format": "webp"
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
API Playground
https://api.1min.ai/api/featuresDescribe the image you want to generate
Style code from Dzine style library
Base model from Dzine style library
Output image dimensions
Number of images to generate (1-4)
Strength of style applied (0.0-1.0)
Image generation quality mode
Output image format
Enable face matching from reference image
Asset path to reference face image
Random seed for reproducibility (1-2147483647)
Generated cURL Command:
curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_GENERATOR",
"model": "dzine",
"promptObject": {
"prompt": "A serene mountain landscape at sunset with vibrant autumn colors",
"style_code": "Style-7feccf2b-f2ad-43a6-89cb-354fb5d928d2",
"style_base_model": "S",
"size": "1024x1024",
"n": 1,
"style_intensity": 0.8,
"quality": "HIGH",
"output_format": "webp"
}
}'
Response Format
{
"aiRecord": {
"uuid": "c0c00d36-2769-48e4-9033-7db054d48623",
"userId": "f944dd01-da40-405c-b698-708269eb9664",
"teamId": "7d530bad-357c-4f6e-b627-16f043c9a16b",
"teamUser": {
"teamId": "7d530bad-357c-4f6e-b627-16f043c9a16b",
"userId": "f944dd01-da40-405c-b698-708269eb9664",
"userName": "test",
"userAvatar": null,
"status": "ACTIVE",
"role": "ADMIN",
"creditLimit": 100000000,
"usedCredit": 5970000,
"createdAt": "2025-10-31T06:24:14.102Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-11-03T13:28:38.861Z",
"updatedBy": "SYSTEM"
},
"model": "dzine",
"type": "IMAGE_GENERATOR",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": null,
"status": "SUCCESS",
"createdAt": "2025-11-05T15:13:06.598Z",
"aiRecordDetail": {
"promptObject": {
"n": 1,
"size": "1024x1024",
"prompt": "A serene mountain landscape at sunset with vibrant autumn colors",
"quality": "HIGH",
"style_code": "Style-7feccf2b-f2ad-43a6-89cb-354fb5d928d2",
"output_format": "webp",
"style_intensity": 0.8,
"style_base_model": "S"
},
"resultObject": [
"development/images/2025_11_05_22_13_08_115_547133.webp"
],
"responseObject": {}
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_11_05_22_13_08_115_547133.webp?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAVRUVQEFIHSKAXGE7%2F20251105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20251105T151312Z&X-Amz-Expires=604800&X-Amz-Signature=07c8f92f29a6b1dcec19da3a145a391e9e9f5d48b7a9c2ee117634838c854f75&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}
Use Cases
- Creative Design: Generate unique artwork and visual concepts with diverse styles
- Marketing Materials: Create branded visuals with consistent style application
- Character Design: Generate characters with face matching for consistent identity
- Concept Art: Rapid prototyping of visual ideas across multiple styles
- Social Media Content: Produce engaging visuals optimized for various platforms
Tips for Best Results
-
Prompt Engineering:
- Be descriptive and specific
- Include details about composition, lighting, and mood
- Mention key elements you want to see in the image
-
Style Selection:
- Browse Dzine's 200+ styles to find the perfect aesthetic
- Use style_intensity to control how strongly the style is applied
- Higher intensity (0.8-1.0) for strong stylization
- Lower intensity (0.2-0.4) for subtle style hints
-
Quality vs Speed:
- Use STANDARD quality for faster iterations
- Use HIGH quality for final production images
- Generate multiple images (n=2-4) to get variety
-
Face Matching:
- Use clear, well-lit reference images
- Ensure face proportion is less than 80% of image
- Works best with frontal or slightly angled face poses