Skip to main content
POST
/
generate
/
k
/
mj-style-reference
Midjourney Style Reference
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/mj-style-reference \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "aspectRatio": "16:9",
  "enableTranslation": false,
  "fileUrls": [
    "https://example.com/style.jpg"
  ],
  "prompt": "Portrait in this artistic style",
  "speed": "relaxed",
  "stylization": 1,
  "variety": 10,
  "version": "7",
  "waterMark": "my_watermark",
  "weirdness": 1
}'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
Generate new images using the style of reference images, perfect for creating series of works while maintaining consistent style.

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

prompt
string
required

Prompt (required, max 2000 characters) - Text description for generation

Maximum length: 2000
Example:

"Portrait in this artistic style"

aspectRatio
enum<string>

Aspect ratio (optional) - Output aspect ratio

Available options:
1:2,
9:16,
2:3,
3:4,
5:6,
6:5,
4:3,
3:2,
1:1,
16:9,
2:1
Example:

"16:9"

enableTranslation
boolean
default:false

Enable translation (optional, default false) - Enable automatic translation

Example:

false

fileUrls
string[]

File URL list (optional) - Style reference image URL array

Example:
["https://example.com/style.jpg"]
speed
enum<string>

Speed (optional) - API generation speed

Available options:
relaxed,
fast,
turbo
Example:

"relaxed"

stylization
integer

Stylization (optional, range 0-1000) - Artistic style intensity

Required range: 0 <= x <= 1000
Example:

1

variety
integer

Variety (optional, range 0-100, step 5) - Content diversity

Required range: 0 <= x <= 100
Example:

10

version
enum<string>

Version (optional) - Midjourney model version

Available options:
7,
6.1,
6,
5.2,
5.1,
niji6
Example:

"7"

waterMark
string

Watermark (optional) - Watermark identifier

Example:

"my_watermark"

weirdness
integer

Weirdness (optional, range 0-3000) - Creative uniqueness

Required range: 0 <= x <= 3000
Example:

1

Response

OK

task_id
string
required

Task ID

Example:

"01234567-89ab-cdef-0123-456789abcdef"