Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleCloudAiplatformV1ImageConfig

import type { GoogleCloudAiplatformV1ImageConfig } from "https://googleapis.deno.dev/v1/aiplatform:v1.ts";

Configuration for image generation. This message allows you to control various aspects of image generation, such as the output format, aspect ratio, and whether the model can generate images of people.

interface GoogleCloudAiplatformV1ImageConfig {
aspectRatio?: string;
imageSize?: string;
personGeneration?:
| "PERSON_GENERATION_UNSPECIFIED"
| "ALLOW_ALL"
| "ALLOW_ADULT"
| "ALLOW_NONE";
}

§Properties

§
aspectRatio?: string
[src]

Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: "1:1" "2:3", "3:2" "3:4", "4:3" "4:5", "5:4" "9:16", "16:9" "21:9"

§

Optional. The image output format for generated images.

§
imageSize?: string
[src]

Optional. Specifies the size of generated images. Supported values are 1K, 2K, 4K. If not specified, the model will use default value 1K.

§
personGeneration?: "PERSON_GENERATION_UNSPECIFIED" | "ALLOW_ALL" | "ALLOW_ADULT" | "ALLOW_NONE"
[src]

Optional. Controls whether the model can generate people.