feat: initial commit for MediaGen AI project
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import 'dotenv/config';
|
||||
|
||||
async function testReplicate() {
|
||||
const token = process.env.REPLICATE_API_TOKEN || "test";
|
||||
const response = await fetch('https://api.replicate.com/v1/models/black-forest-labs/flux-schnell', {
|
||||
headers: {
|
||||
'Authorization': `Bearer ${token}`
|
||||
}
|
||||
});
|
||||
console.log(response.status, await response.text());
|
||||
}
|
||||
|
||||
testReplicate();
|
||||
Reference in New Issue
Block a user