> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ImageGenerationRequestResponseFormat

`b64_json` (default) returns the image bytes inline. `url` stores each output in OpenRouter storage and returns a signed download URL in place of the bytes. The URL is a bearer link: anyone holding it can download the image until it expires, up to 24 hours after the image was stored (use `expires_at`); the stored copy is deleted by the storage lifecycle within the following day. The response falls back to `b64_json` when a URL cannot be issued: streaming responses, zero-data-retention requests (account settings, guardrails or `provider.zdr`) or endpoints, or storage being unavailable.

## Example Usage

```python theme={null}
from openrouter.components import ImageGenerationRequestResponseFormat

# Open enum: unrecognized values are captured as UnrecognizedStr
value: ImageGenerationRequestResponseFormat = "b64_json"
```

## Values

This is an open enum. Unrecognized values will not fail type checks.

* `"b64_json"`
* `"url"`
