Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate image doesn't work #15

Open
eyubkh opened this issue Oct 11, 2022 · 5 comments
Open

generate image doesn't work #15

eyubkh opened this issue Oct 11, 2022 · 5 comments

Comments

@eyubkh
Copy link

eyubkh commented Oct 11, 2022

I'm trying to generate an image and returns "Generating Complete" but with "Must provide image parameters." error.

Here my index.js

const { generate } = require('stability-ts')

const api = generate({
  prompt: 'A Stunning House',
  apiKey: 'token'
})

api.on('image', ({ buffer, filePath }) => {
  console.log('Image', buffer, filePath)
})

api.on('end', (data) => {
  console.log('Generating Complete', data)
})

Here my output

node src/index.js      
Generating Complete {
  isOk: false,
  status: 'InvalidArgument',
  code: 3,
  message: 'Must provide image parameters.',
  trailers: e {
    headersMap: {
      date: [Array],
      'content-type': [Array],
      'transfer-encoding': [Array],
      connection: [Array],
      'access-control-allow-headers': [Array],
      'access-control-allow-origin': [Array],
      'access-control-expose-headers': [Array],
      'access-control-max-age': [Array],
      'grpc-message': [Array],
      'grpc-status': [Array],
      vary: [Array],
      'cf-cache-status': [Array],
      server: [Array],
      'cf-ray': [Array],
      'alt-svc': [Array]
    }
  }
}
@drainmond
Copy link

Same issue for me.

@sillytuna
Copy link

There was a breaking change - see vpzomtrrfrt#9 (comment)

@manuelernestog
Copy link

I'm getting the same output here

@keogh
Copy link

keogh commented Dec 7, 2022

was this fixed already? thanks in advance

@reyco1
Copy link

reyco1 commented Jan 3, 2023

Is this even being maintained anymore???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants