Get image asset
Returns the image bytes for one gallery entry. Defaults to the raw file with an immutable cache header; format=datauri returns a base64 data URI that drops straight into an <img src> with no second request. Images we link rather than host (external sources, asset-CDN paths) answer with a 302 to their location. Listing images and their credits is explorer-tier via /v1/firearms/{id}/images; the bytes are builder-tier, like the silhouette.
- stringheaderrequired
Your API key.
Authorization: Bearer <key>is accepted in its place.
- stringrequired
Resource slug ID
- Accepts
- a lowercase slug: letters, digits and hyphens
- Example
- stringrequired
Image row id from /v1/firearms/{id}/images
- Example
- stringdefault
rawraw file, or a base64 data URI
- Accepts
- Example
- stringdefault
originalPre-rendered derivative; falls back to the original when absent
- Accepts
- Example
- object
The response payload.
- string
Slug of the firearm the image belongs to.
- integer
Numeric id of the image within that firearm image set.
- string
Size rendered:
original,displayorthumb. - string
Encoding of the returned image.
datauriis the only format this route emits. - string
Media type of the encoded bytes.
- string
The image inlined as an RFC 2397 data URI, ready to use as an
<img src>with no second request.
- 400
VALIDATION_ERROR - 401
UNAUTHORIZED - 403
FORBIDDEN - 404
NOT_FOUND - 429
RATE_LIMITED - 500
INTERNAL_ERROR
- Minimum tier
- Builder+
- Monthly quota
- 25,000/mo
- Rate limit
- 60/min
- Daily cap
- 2,000
Figures shown are for this endpoint's minimum tier. Higher tiers raise every limit.