{"data":{"billing":{"currency":"USD","mode":"rules","parameters":[],"policy_version":2,"sale":{"addons":[],"base_price_micro_usd":"0","max_cost_micro_usd":"2000","quantities":[{"id":"upstream_credits","label":"Actual API.SH credits consumed","max_quantity":"1","measure":"value","pointer":"/credits_used","price_micro_usd":"2000","quantity_scale":0,"source":"response","unit":"credit","unit_quantity":"1"}],"rounding":"ceil","variants":[]}},"capabilityId":"2df3b6d3-e764-45e4-aab6-b0376f47010d","catalogType":"api","categories":["developer","data"],"dataPlatform":"civitai","dataPlatformLogoUrl":"https://api.sh/logos/civitai.png","dataPlatformTranslations":{},"dataProduct":"dev-reference","description":"Resolve Civitai model versions by version ID, URL or file hash via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, and retrieve structured data including model-version identifier, version base model, file identifier, source file hashes, and source scan metadata for artifact matching, and file index.","descriptionTranslations":{"ar":"استرجع إصدار نموذج Civitai بمعرّف الإصدار أو الرابط أو بصمة الملف، مع النموذج الأساسي ومراجع الملفات والبصمات لمطابقة الملفات بسجلات الفهرس. استخدم المعرّفات والبيانات المنظمة لبناء فهرس اكتشاف أو ربط سجلات المصدر، مع الحفاظ على الإصدار ونطاق الوصول وسياق الاختيار وأمثلة الطلبات وتسعير التنفيذ الحالي في صفحة API.","ja":"版 ID、出典 URL、ファイルハッシュで Civitai の版を照会し、ベースモデル・ファイル参照・ハッシュで記録を照合できます。 返された識別子と構造化メタデータを検索カタログや出典連携に使い、版・アクセス範囲・選択条件を保持できます。API 詳細ページにはリクエスト例と選択した実装の料金があります。","zh":"通过版本 ID、来源链接或文件哈希查询 Civitai 版本，获取基础模型、文件引用和哈希，用于匹配文件及目录记录。 可利用返回的标识和结构化元数据构建发现目录或关联来源记录，保留版本、访问范围及选择条件；API 详情页提供请求示例和当前实现价格。"},"effectContentHtml":"","executionMode":"sync","id":"eb283232-ff11-448c-a840-334710d6fd64","includedContentHtml":"","inputs":[{"description":"Model version id, or a civitai.com link with ?modelVersionId=.","location":"query","name":"id","nullable":false,"required":false,"type":"string"},{"description":"A model file hash (finds the version a downloaded file belongs to).","location":"query","name":"hash","nullable":false,"required":false,"type":"string"},{"description":"Opt in to adult content: `true` also returns adult models and images, each with its content rating (`nsfw`, `nsfw_level`). Default off.","location":"query","name":"include_nsfw","nullable":false,"required":false,"type":"boolean"},{"description":"0 leaves out the bulky `raw` source blocks (often 10-30x smaller).","enum_values":["0","1"],"location":"query","name":"raw","nullable":false,"required":false,"type":"string"},{"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"1 skips the 24-hour cache and fetches live.","enum_values":["1"],"location":"query","name":"fresh","nullable":false,"required":false,"type":"string"},{"description":"JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.","enum_values":["json"],"location":"query","name":"output","nullable":false,"required":false,"type":"string"},{"description":"Native CSV/NDJSON record selector; it has no effect on this JSON-only product.","location":"query","name":"records","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api.sh/logos/civitai.png","method":"GET","name":"Civitai model version API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eCivitai Model Version API\u003c/h2\u003e\n\u003cp\u003eUse id for a model-version identifier or a source link containing modelVersionId, or use hash to resolve a file\u0026#39;s version. File format, precision, size and scan metadata remain attached to each file entry.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eChoose the lookup or search inputs described below. Optional: id, hash, include_nsfw. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · Civitai model version API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eArtifact matching\u003c/strong\u003e: Resolve a model file hash to its source version.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eFile index\u003c/strong\u003e: Keep file format, precision and hashes with the correct version.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eid\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eModel-version identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ebase_model\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eVersion base model\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efiles[].id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eFile identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efiles[].hashes\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource file hashes\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efiles[].metadata\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource format and precision metadata\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efiles[].scan\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource scan metadata\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/apish/civitai/v1/model-version \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode id=130072 \\\n  --data-urlencode output=json\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/eb283232-ff11-448c-a840-334710d6fd64\"\u003ePublished Civitai Model Version API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhich identifier does id expect?\u003c/h3\u003e\n\u003cp\u003eUse the version ID, or a Civitai link with modelVersionId, rather than the parent model ID alone.\u003c/p\u003e\n\u003ch3\u003eCan I look up a file by hash?\u003c/h3\u003e\n\u003cp\u003eYes. Use hash to find the source version associated with a model file hash.\u003c/p\u003e\n\u003ch3\u003eWhat do the file scan fields describe?\u003c/h3\u003e\n\u003cp\u003efiles[].scan reports source scan results and their timestamp. Keep these values with the corresponding file and distinguish them from a new scan of the downloaded artifact.\u003c/p\u003e\n\u003ch3\u003eDoes the response download or run the model?\u003c/h3\u003e\n\u003cp\u003eNo. It returns version metadata and file references. Downloading or inference is a separate action.\u003c/p\u003e\n\u003ch3\u003eHow do I bypass cached results?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.\u003c/p\u003e\n\u003ch3\u003eCan I request CSV or NDJSON?\u003c/h3\u003e\n\u003cp\u003eThis OpenAny implementation serves JSON only. Omit output or set output=json.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/civitai/civitai-model-api\"\u003eCivitai model API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/civitai/civitai-models-api\"\u003eCivitai models API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/civitai/civitai-model-version-api?offering=eb283232-ff11-448c-a840-334710d6fd64","providerId":"apish","publicPath":"/v1/agent-apis/apish/civitai/v1/model-version","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Official documentation response · Supplier-tr","request":{"body":null,"headers":{},"path":{},"query":{"id":"130072","output":"json"}},"response_body":{"availability":null,"base_model":"SD 1.5","base_model_type":"Standard","cached":false,"created_at":"2023-07-31T08:00:27.426Z","credits_used":1,"description":"\u003cp\u003eThe required VAE is already baked into the model.\u003cbr /\u003e\u003cbr /\u003eThis version (Code_1284) is a fix for many issues of 5.0 (\u003cu\u003eartifacts, ugly…","download_url":"https://civitai.com/api/download/models/130072","files":[{"download_url":"https://civitai.com/api/download/models/130072?fileId=94300","hashes":{"AutoV1":"F95D2E44","AutoV2":"139AC005D4","BLAKE3":"205A6ADCDEA77D98089653AA3372FB30EC38E93C46B79B0A9B00B2A07A704B7C","CRC32":"38FEBCD3","SHA256":"139AC005D4D1E33C6335F5651ABB3D2E4654DC0520AEDFEA07909BDD20435518","SHA256_12":"139AC005D4D1"},"id":94300,"metadata":{"format":"PickleTensor","fp":"fp16","size":"full"},"name":"realisticVisionV60B1_v51VAE_94300.ckpt","primary":false,"scan":{"pickle":"Success","scanned_at":"2023-07-31T08:27:30.586","virus":"Success"},"size_kb":4165379.6484375,"type":"Model"},{"download_url":"https://civitai.com/api/download/models/130072?fileId=94298","hashes":{"AutoV1":"A0F13C83","AutoV2":"15012C538F","BLAKE3":"013543ADE69517662AC86E97A113B994679F33CD69B573D68C4D51F5457C9528","CRC32":"FFE8B9E1","SHA256":"15012C538F503CE2EBFC2C8547B268C75CCDAFF7A281DB55399940FF1D70E21D","SHA256_12":"15012C538F50"},"id":94298,"metadata":{"format":"SafeTensor","fp":"fp16","size":"pruned"},"name":"realisticVisionV60B1_v51VAE_94298.safetensors","primary":true,"scan":{"pickle":"Success","scanned_at":"2023-07-31T08:16:29.099","virus":"Success"},"size_kb":2082642.474609375,"type":"Model"},"… 2 more"],"id":130072,"images":[{"base_model":null,"created_at":null,"hash":"UMD+l7~qAcpJI;tR?a%M9aM{w]xFWBt6xuof","height":960,"id":null,"meta":{"Model":"realisticVisionV51","Model hash":"ef76aa2332","Size":"640x960","VAE":"vae-ft-mse-840000-ema-pruned.safetensors","VAE hash":"551eac7037","Version":"v1.6.0","cfgScale":7,"hashes":{"model":"ef76aa2332"},"negativePrompt":"(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed…","prompt":"RAW photo, face portrait photo of beautiful 26 y.o woman, cute face, wearing black dress, happy face, hard shadows, cinematic shot, dramatic…","resources":[{"…":"3 fields"}],"sampler":"DPM++ SDE Karras","seed":3898569358,"steps":25},"page_url":null,"post_id":null,"type":"image","url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/0dcee20e-415c-42c3-92bc-d596f9b45289/original=true/2375288.jpeg","username":null,"width":640},{"base_model":null,"created_at":null,"hash":"UEB{ie~V0L0L^*t79ZM{NGWqxaoMELR%xaoL","height":768,"id":null,"meta":{"Model":"Realistic_Vision_V5.1","Model hash":"ef76aa2332","Size":"640x768","Version":"v1.5.1","cfgScale":7,"hashes":{"model":"ef76aa2332"},"negativePrompt":"(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed…","prompt":"high quality, face portrait photo of 30 y.o european man, wearing black shirt, serious face, detailed face, skin pores, cinematic shot, dram…","resources":[{"…":"3 fields"}],"sampler":"DPM++ SDE Karras","seed":3776793451,"steps":25},"page_url":null,"post_id":null,"type":"image","url":"https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/7052f043-d0ac-4893-936c-e07a62948726/original=true/2023636.jpeg","username":null,"width":640},"… 6 more"],"model":{"name":"Realistic Vision V6.0 B1","poi":false,"type":"Checkpoint"},"model_id":4201,"name":"V5.1 (VAE)","page_url":"https://civitai.com/models/4201?modelVersionId=130072","published_at":"2023-07-31T08:27:16.052Z","stats":{"downloadCount":498415,"thumbsUpCount":4626},"status":"Published","trained_words":[],"updated_at":"2025-02-14T21:40:35.698Z"}}],"seoDescription":"Resolve Civitai model versions by version ID, URL via REST or MCP powered by Apish. Pay per call, no subscription. Built for artifact matching workflows.","updatedAt":"2026-12-03T02:45:53.225Z","usageInstructionsHtml":""}}