Query Civitai Images
AI-generatedSummary
Query images from the Civitai platform with optional filters such as username, model ID, post ID, model version ID, NSFW content level, sort order, time period, pagination page, and limit on number of images returned.
Inputs
- Limit — Number of images to return, up to a maximum of 200.
- Username — Optional username to filter images by uploader.
- Model ID — Optional model ID to filter images associated with a specific model.
- Post ID — Optional post ID to filter images related to a certain post.
- Model Version ID — Optional model version ID to filter images tied to a specific model version.
- NSFW Filter — Content filter level to exclude images above the selected NSFW threshold (None, Soft, Moderate, Mature, X).
- Sort — Order in which results are sorted: Newest, Oldest, Most Reactions, Most Comments, Most Downloads.
- Period — Time frame to filter results by creation date: All Time, Year, Month, Week, Day.
- Page — Page number to retrieve for paginated results, default is 1.
Output shape
A single JSON object containing the API response with image data matching the query filters.
The response contains image details as returned by the Civitai API endpoint. Pagination controls and filters affect the result set. In case of errors, an error object with message and details may be returned if 'Continue On Fail' is enabled.