Magic Art 5.2 - Image Generator
Generate stunning, artistic images from text prompts using Magic Art's creative AI. Known for its exceptional artistic interpretation and unique aesthetic capabilities, Magic Art 5.2 excels at creating imaginative, stylized artwork with rich detail and creative flair.
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 magic-art |
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 | - |
mode | string | No | Generation speed mode | fast |
n | number | No | Number of images to generate (fixed at 4) | 4 |
negativePrompt | string | No | Text describing what to avoid in the image | - |
isNiji6 | boolean | No | Enable Niji 6 anime style mode | false |
maintainModeration | boolean | No | Enable 1minAI content moderation | true |
aspect_width | number | No | Width aspect ratio (1-7) | 1 |
aspect_height | number | No | Height aspect ratio (1-7) | 1 |
no | string | No | Elements to exclude from the image | - |
image_weight | number | No | Image prompt weight (0.5-2.0) | 1 |
seed | number | No | Random seed for reproducibility (0-4294967295) | Random |
tile | boolean | No | Generate seamless tile patterns | false |
stylize | number | No | Stylization strength (0-1000) | 100 |
chaos | number | No | Variation in results (0-100) | 0 |
weird | number | No | Experimental aesthetic (0-3000) | 0 |
character_reference | string | No | Character reference image asset path | - |
style_reference | string | No | Style reference image asset path | - |
Generation Modes
| Mode | Description | Cost | Generation Time |
|---|---|---|---|
fast | High priority generation | 2x cost | < 1 minute |
relax | Lower priority generation | 1x cost | 2-10 minutes |
Supported Aspect Ratios
| Ratio | Width | Height | Best For |
|---|---|---|---|
| 1:1 | 1 | 1 | Square images, social media |
| 4:5 | 4 | 5 | Portrait, Instagram posts |
| 2:3 | 2 | 3 | Portrait photography |
| 4:7 | 4 | 7 | Tall banners, mobile screens |
| 5:4 | 5 | 4 | Landscape, traditional photos |
| 3:2 | 3 | 2 | Standard landscape photography |
| 7:4 | 7 | 4 | Wide banners, panoramic views |
Aspect Ratio Limitations
Magic Art 5.2 supports aspect ratios up to 2:1 and 1:2 maximum. Ratios greater than 2:1 in either direction are not accepted.
Style Parameters
| Parameter | Range | Description |
|---|---|---|
| Stylize | 0-1000 | Controls artistic interpretation. Higher values = more stylized |
| Chaos | 0-100 | Adds variation and unpredictability to results |
| Weird | 0-3000 | Experimental aesthetic parameter for unusual results |
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": "magic-art",
"promptObject": {
"prompt": "Generate a simple image",
"mode": "fast",
"n": 4,
"isNiji6": false,
"aspect_width": 3,
"aspect_height": 2,
"stylize": 150,
"chaos": 20,
"maintainModeration": true
}
}'
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: 'magic-art',
promptObject: {
prompt: 'Generate a simple image',
mode: 'fast',
n: 4,
isNiji6: false,
aspect_width: 3,
aspect_height: 2,
stylize: 150,
chaos: 20,
maintainModeration: true
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "IMAGE_GENERATOR",
"model": "magic-art",
"promptObject": {
"prompt": "Generate a simple image",
"mode": "fast",
"n": 4,
"isNiji6": False,
"aspect_width": 3,
"aspect_height": 2,
"stylize": 150,
"chaos": 20,
"maintainModeration": True
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
API Playground
https://api.1min.ai/api/featuresDescribe the image you want to generate
Generation speed and cost
Describe what you want to avoid in the image
Enable anime/manga aesthetic
Choose from supported aspect ratios
Artistic interpretation strength (0-1000)
Variation and unpredictability (0-100)
Experimental aesthetic (0-3000)
Image prompt weight relative to text (0.5-2.0)
Random seed for reproducibility (0-4294967295)
Generate seamless tile patterns
Character reference image asset path for consistency
Style reference image asset path to influence aesthetic
1minAI content moderation to prevent policy violations
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": "magic-art",
"promptObject": {
"prompt": "Generate a simple image",
"mode": "fast",
"n": 4,
"isNiji6": false,
"aspect_width": 1,
"aspect_height": 1,
"stylize": 100,
"chaos": 0,
"maintainModeration": true
}
}'
Response Format
{
"aiRecord": {
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"userId": "user-12345",
"teamId": "team-67890",
"teamUser": {
"teamId": "team-67890",
"userId": "user-12345",
"userName": "John Doe",
"userAvatar": "https://example.com/avatar.jpg",
"status": "ACTIVE",
"role": "ADMIN",
"creditLimit": 100000000,
"usedCredit": 15000,
"createdAt": "2025-01-01T00:00:00.000Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-01-15T10:30:00.000Z",
"updatedBy": "SYSTEM"
},
"model": "magic-art",
"type": "IMAGE_GENERATOR",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": null,
"status": "SUCCESS",
"createdAt": "2025-01-15T10:30:00.000Z",
"aiRecordDetail": {
"promptObject": {
"prompt": "Generate a simple image",
"mode": "fast",
"n": 4,
"isNiji6": false,
"aspect_width": 3,
"aspect_height": 2,
"stylize": 150,
"chaos": 20,
"maintainModeration": true
},
"resultObject": [
"development/images/2025_01_15_10_30_15_001_mystical_forest.png",
"development/images/2025_01_15_10_30_15_002_mystical_forest.png",
"development/images/2025_01_15_10_30_15_003_mystical_forest.png",
"development/images/2025_01_15_10_30_15_004_mystical_forest.png"
],
"responseObject": {}
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_10_30_15_001_mystical_forest.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=EXAMPLE_CREDENTIAL&X-Amz-Date=20250115T103000Z&X-Amz-Expires=604800&X-Amz-Signature=example_signature&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}
Use Cases
- Artistic Creation: Generate unique artwork and illustrations
- Concept Art: Create visual concepts for games, films, and projects
- Creative Design: Produce imaginative designs for various media
- Social Media Content: Generate engaging visual content for posts
- Marketing Materials: Create eye-catching visuals for campaigns
Tips for Best Results
-
Descriptive Prompts: Be specific and creative with your descriptions
- Good: "A steampunk airship sailing through cotton candy clouds at sunset, brass fittings gleaming, Victorian aesthetic"
- Avoid: "An airship"
-
Artistic Style: Magic Art excels at artistic and creative interpretations
- Perfect for fantasy, surreal, and artistic content
- Great for stylized and imaginative imagery
-
Mode Selection:
- Fast: Use for quick iterations and immediate results
- Relax: Use when you have time and want to save credits
-
Aspect Ratios: Choose based on your intended use
- 1:1: Perfect for social media posts
- 3:2: Great for landscape artwork
- 2:3: Ideal for portrait compositions
-
Style Parameters:
- Stylize 0-50: More literal interpretation
- Stylize 100-250: Balanced artistic interpretation (recommended)
- Stylize 500-1000: Highly stylized and artistic
- Chaos 0-25: Slight variations
- Chaos 50-100: Significant unpredictability
-
Niji 6 Mode: Enable for anime/manga style content
- Specializes in Japanese animation aesthetics
- Better character consistency and anime-specific features