uz
Feedback

Firibgarlarga uchmang! Telemetrio bunday kanallarni topadi va belgilaydi 👉 Belgini ko‘rmoqchi bo‘lsangiz, obuna bo‘ling

Og.Eth

Og.Eth

Yopiq kanal
854
Obunachilar
Ma'lumot yo'q24 soatlar
-127 kun
-4530 kun
Postlar arxiv
We are in Talks

2 hours left

Our framework >> $Ai16Z

This is demo code we can’t release our real code

No joke

Frame live at 3pm it

Fully working with the help on openai

We are using this full code

from openai import OpenAI client = OpenAI() response = client.images.generate( model="dall-e-3", prompt="a white siamese cat", size="1024x1024", quality="standard", n=1, ) print(response.data[0].url) from openai import OpenAI client = OpenAI() response = client.images.edit( model="dall-e-2", image=open("sunlit_lounge.png", "rb"), mask=open("mask.png", "rb"), prompt="A sunlit indoor lounge area with a pool containing a flamingo", n=1, size="1024x1024", ) print(response.data[0].url) from openai import OpenAI client = OpenAI() response = client.images.create_variation( model="dall-e-2", image=open("corgi_and_cat_paw.png", "rb"), n=1, size="1024x1024" ) print(response.data[0].url) import OpenAI from "openai"; const openai = new OpenAI(); // This is the Buffer object that contains your image data const buffer = [your image data]; // Set a name that ends with .png so that the API knows it's a PNG image buffer.name = "image.png"; async function main() { const image = await openai.images.createVariation({ model: "dall-e-2", image: buffer, n: 1, size: "1024x1024" }); console.log(image.data); } main(); import fs from "fs"; import OpenAI from "openai"; const openai = new OpenAI(); async function main() { // Cast the ReadStream to any to appease the TypeScript compiler const image = await openai.images.createVariation({ image: fs.createReadStream("image.png") as any, }); console.log(image.data); } main(); import fs from "fs"; import OpenAI from "openai"; const openai = new OpenAI(); // This is the Buffer object that contains your image data const buffer: Buffer = [your image data]; // Cast the buffer to any so that we can set the name property const file: any = buffer; // Set a name that ends with .png so that the API knows it's a PNG image file.name = "image.png"; async function main() { const image = await openai.images.createVariation({ file, 1, "1024x1024" }); console.log(image.data); } main(); import fs from "fs"; import OpenAI from "openai"; const openai = new OpenAI(); async function main() { try { const image = await openai.images.createVariation({ image: fs.createReadStream("image.png"), n: 1, size: "1024x1024", }); console.log(image.data); } catch (error) { if (error.response) { console.log(error.response.status); console.log(error.response.data); } else { console.log(error.message); } } } main();

That’s my plan need 100 likes and retweets

Back to work

See you all at 3pm utc

My intro is I’m a full time Degen but my graduation was in ai and machine learning so in this ai hype I was working on this product from past 2 months

We need to raid every tweet