erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.64k stars 269 forks source link

How to set VersionSelector with API? #264

Closed zongzi531 closed 2 months ago

zongzi531 commented 3 months ago

How to set 'MJ::Settings::VersionSelector' with API

I want to set model, anyone know how set it.

zcpua commented 3 months ago

example/settings.ts

zongzi531 commented 3 months ago

example/settings.ts

I try run this code

const msg = await client.Settings()

console.log(msg.options)
// [
//   {
//     type: 3,
//     style: undefined,
//     label: undefined,
//     custom: 'MJ::Settings::VersionSelector'
//   },
// ]

I can't see like niji5 or another model, and I don't know default model customId. so bad...

Slushbanq commented 2 months ago

just add a drop down menu with values of 5, 5.1, 5.2 and 6. At the end of the prompt add "--v"yourversionvalue and you'll be fine. You have to have a default value for the version otherwise it will keep on giving invalid parameter error.

zongzi531 commented 2 months ago

just add a drop down menu with values of 5, 5.1, 5.2 and 6. At the end of the prompt add "--v"yourversionvalue and you'll be fine. You have to have a default value for the version otherwise it will keep on giving invalid parameter error.

@Slushbanq Thanks, this way probably the only method that works at the moment.