Spaces:
Running
Running
Create a site privatedev1 using import OpenAI from "openai"; const client = new OpenAI(); const response = await client.responses.create({ model: "gpt-4.1", input: "Write a one-sentence bedtime story about a unicorn.", }); console.log(response.output_text); |