---
title: "Stream Og Image"
method: GET
path: "/stream/images/og_images/{filename}"
tags: ["media"]
---

# Stream Og Image

`GET /stream/images/og_images/{filename}`

## Request

- Base URL: `https://api.musclewiki.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.musclewiki.com/stream/images/og_images/{filename}`
- Auth: none declared

Stream Open Graph image file through authenticated endpoint.

This endpoint serves OG image files (social sharing preview images) with proper
authentication via API key middleware. Supports both local filesystem and Hetzner fallback.
Each image request counts as an API call.

Args:
    filename: Image filename (e.g., 'og-male-Barbell-barbell-curl-front.jpg').
    settings: Application settings injected via dependency.

Returns:
    FileResponse or StreamingResponse with the image file.

Raises:
    HTTPException: 403 if path attempts to escape media directory.
    HTTPException: 404 if image file not found anywhere.

Example:
    GET /stream/images/og_images/og-male-Barbell-barbell-curl-front.jpg

## Path parameters

- `filename` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/musclewiki/apis/musclewiki-api.md) - [All operations](https://skmtc.dev/musclewiki/apis/musclewiki-api/llms.txt) - [OpenAPI document](https://skmtc.dev/musclewiki/apis/musclewiki-api/revisions/81d96b716e84?raw)
