mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
25 lines
601 B
Plaintext
25 lines
601 B
Plaintext
---
|
|
title: "ImageGenerationRequestOutputFormat"
|
|
---
|
|
|
|
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
|
|
|
|
```python
|
|
from openrouter.components import ImageGenerationRequestOutputFormat
|
|
|
|
# Open enum: unrecognized values are captured as UnrecognizedStr
|
|
value: ImageGenerationRequestOutputFormat = "png"
|
|
```
|
|
|
|
|
|
## Values
|
|
|
|
This is an open enum. Unrecognized values will not fail type checks.
|
|
|
|
- `"png"`
|
|
- `"jpeg"`
|
|
- `"webp"`
|
|
- `"svg"`
|