How to Fix Replicate Run Error Readablestream in Nextjs
If you try to use Replicate’s Node.js client follow by model pages, like this : const output = await replicate.run("black-forest-labs/flux-schnell", { input }); console.log(output[0]); you will get result : ReadableStream { locked: false, state: 'readable', supportsBYOB: false }. You need change to : const [output] = await replicate.run(model, { input }); console.log(output.url()); More information check doc.