1# URL to AI Image
2Source code credit: @maxm on val.town
5Used to authenticate your HTTP vals build with Hono behind a username/password challenge. Browsers store this information alongside your other passwords.
6
7
8
9### Usage
7Views the value of `basicAuthButton:last-pressed` in blob storage.
8
9
10
11### POST /press
8const prompt = "a cute and happy dog";
9const result: any = await fal.run("fal-ai/fast-lightning-sdxl", { input: { prompt } });
10console.log(result.images[0].url);
8const prompt = "a cute and happy dog";
9const result: any = await fal.run("fal-ai/fast-lightning-sdxl", { input: { prompt } });
10console.log(result.images[0].url);
8const prompt = "a cute and happy dog";
9const result: any = await fal.run("fal-ai/fast-lightning-sdxl", { input: { prompt } });
10console.log(result.images[0].url);
36 description: string;
37 utc_offset: number;
38 featured_image_url: string;
39 hours_text: string | null;
40 hours: {
38 ["bold", "italic", "underline", "strike"], // toggled buttons
39 ["blockquote", "code-block"],
40 ["link", "image", "video", "formula"],
41
42 [{ "header": 1 }, { "header": 2 }], // custom button values
117
118 case 4:
119 const url = `https://cdn-images-1.medium.com/max/${metadata.originalWidth * 2}/${metadata.id}`;
120
121 return ``;
10
11 const result: any = await fal.run("fal-ai/fast-lightning-sdxl", { input: { prompt } });
12 return Response.json({ url: result.images[0].url });
13}