ImageGenerationRequestOutputFormat - TypeScript SDK

ImageGenerationRequestOutputFormat type definition

Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in b64_json.

Example Usage

1import { ImageGenerationRequestOutputFormat } from "@openrouter/sdk/models";
2
3let value: ImageGenerationRequestOutputFormat = "png";
4
5// Open enum: unrecognized values are captured as Unrecognized<string>

Values

1"png" | "jpeg" | "webp" | "svg" | Unrecognized<string>