OpenAny
Get API keyAPI Key
APIDataDeveloper

civitai logo
Civitai Model Search API

Search Civitai models by keyword, creator, type and base model via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, query, and retrieve structured data including model identifier, source model type, version base model, source permission flags, and resolved search filters for filtered catalogue, and file selection.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Civitai Model Search API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Civitai Model Search API

Civitai Model Search API

Combine query, tag, username, types and base_models with documented permission filters. limit bounds the page and cursor continues it; source license flags and supports_generation remain metadata, not an inference or licensing service.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Choose the lookup or search inputs described below. Optional: query, tag, username, types, sort, period, base_models, allow_commercial_use, allow_no_credit, allow_derivatives, allow_different_licenses, supports_generation, primary_file_only, ids, limit, cursor, include_nsfw. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.
Selected implementation apish · Civitai models API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Filtered catalogue: Retain resolved filters alongside model and version identities.
  • File selection: Use primary_file_only to narrow each version's returned files when needed.

Returned Data

Field Meaning
models[].id Model identifier
models[].type Source model type
models[].versions[].base_model Version base model
models[].license Source permission flags
applied_filters Resolved search filters
next_cursor Continuation cursor

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/apish/civitai/v1/models \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode output=json \
  --data-urlencode query=anime

Request and Response Examples

The 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.

Published Civitai Model Search API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (22)
Keywords (model name).
A tag, e.g. character or style.
Creator username.
One or more model types, comma-separated.
Hot, Highest Rated, Most Downloaded, Most Liked, Most Discussed, Most Collected, Most Images, Newest, Oldest or Recently Added.
Day, Week, Month, Year or AllTime (for the sort).
Base models, comma-separated (e.g. SDXL 1.0, Pony, Flux.1 D, SD 1.5).
None, Image, RentCivit, Rent, Sell or SellMerge (comma-separated).
true/false: use without crediting the creator.
true/false: merges and derivatives allowed.
true/false: derivatives may use another licence.
true/false: can be run on the site's generator.
true: only each version's primary file.
Model ids, comma-separated.
Models per page (1-10, default 10).
`next_cursor` from the previous page.
Opt in to adult content: `true` also returns adult models and images, each with its content rating (`nsfw`, `nsfw_level`). Default off.
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.
Native CSV/NDJSON record selector; it has no effect on this JSON-only product.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
Civitai models API · GET · View API reference
$0.002 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/civitai/v1/models
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
queryURL query parametersquerystringNo

Keywords (model name).

tagURL query parametersquerystringNo

A tag, e.g. character or style.

usernameURL query parametersquerystringNo

Creator username.

typesURL query parametersquerystringNo

One or more model types, comma-separated.

sortURL query parametersquerystringNo

Hot, Highest Rated, Most Downloaded, Most Liked, Most Discussed, Most Collected, Most Images, Newest, Oldest or Recently Added.

enum: "Hot", "Highest Rated", "Most Downloaded", "Most Liked", "Most Discussed", "Most Collected", "Most Images", "Newest", "Oldest", "Recently Added"

periodURL query parametersquerystringNo

Day, Week, Month, Year or AllTime (for the sort).

enum: "Day", "Week", "Month", "Year", "AllTime"

base_modelsURL query parametersquerystringNo

Base models, comma-separated (e.g. SDXL 1.0, Pony, Flux.1 D, SD 1.5).

allow_commercial_useURL query parametersquerystringNo

None, Image, RentCivit, Rent, Sell or SellMerge (comma-separated).

allow_no_creditURL query parametersquerybooleanNo

true/false: use without crediting the creator.

allow_derivativesURL query parametersquerybooleanNo

true/false: merges and derivatives allowed.

allow_different_licensesURL query parametersquerybooleanNo

true/false: derivatives may use another licence.

supports_generationURL query parametersquerybooleanNo

true/false: can be run on the site's generator.

primary_file_onlyURL query parametersquerybooleanNo

true: only each version's primary file.

idsURL query parametersquerystringNo

Model ids, comma-separated.

limitURL query parametersqueryintegerNo

Models per page (1-10, default 10).

cursorURL query parametersquerystringNo

`next_cursor` from the previous page.

include_nsfwURL query parametersquerybooleanNo

Opt in to adult content: `true` also returns adult models and images, each with its content rating (`nsfw`, `nsfw_level`). Default off.

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.

enum: "json"

recordsURL query parametersquerystringNo

Native CSV/NDJSON record selector; it has no effect on this JSON-only product.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • applied_filtersobject
    • querystring
  • cachedboolean
  • countinteger
  • credits_usedinteger
  • models(object | string)[]
    • availabilitystring
    • base_modelsstring[]
    • creatorobject
      • imagenull
      • usernamestring
    • descriptionstring
    • idinteger
    • licenseobject
      • allow_commercial_useunknown[]
      • allow_derivativesboolean
      • allow_different_licenseboolean
      • allow_no_creditboolean
    • minorboolean
    • namestring
    • poiboolean
    • statsobject
      • commentCountinteger
      • downloadCountinteger
      • thumbsDownCountinteger
      • thumbsUpCountinteger
      • tippedAmountCountinteger
    • supports_generationboolean
    • tagsstring[]
    • typestring
    • urlstring
    • versions(object | string)[]
      • availabilitystring
      • base_modelstring
      • base_model_typestring
      • created_atnull
      • descriptionnull | string
      • download_urlstring
      • filesobject[]
        • …string
      • idinteger
      • images(object | string)[]
        • …string
      • model_idinteger
      • namestring
      • page_urlstring
      • published_atstring
      • statsobject
        • …string
      • statusnull
      • trained_wordsstring[]
      • updated_atnull
  • next_cursorstring
  • querystring

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits consumed$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Official documentation response · Supplier-tr

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 22

    Review these request fields before running. Keep the published provider and request method unchanged.

    query
    Keywords (model name).
    tag
    A tag, e.g. character or style.
    username
    Creator username.
    types
    One or more model types, comma-separated.
    sort
    Hot, Highest Rated, Most Downloaded, Most Liked, Most Discussed, Most Collected, Most Images, Newest, Oldest or Recently Added.
    period
    Day, Week, Month, Year or AllTime (for the sort).
    base_models
    Base models, comma-separated (e.g. SDXL 1.0, Pony, Flux.1 D, SD 1.5).
    allow_commercial_use
    None, Image, RentCivit, Rent, Sell or SellMerge (comma-separated).
    allow_no_credit
    true/false: use without crediting the creator.
    allow_derivatives
    true/false: merges and derivatives allowed.
    allow_different_licenses
    true/false: derivatives may use another licence.
    supports_generation
    true/false: can be run on the site's generator.
    primary_file_only
    true: only each version's primary file.
    ids
    Model ids, comma-separated.
    limit
    Models per page (1-10, default 10).
    cursor
    `next_cursor` from the previous page.
    include_nsfw
    Opt in to adult content: `true` also returns adult models and images, each with its content rating (`nsfw`, `nsfw_level`). Default off.
    raw
    0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
    fields
    Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
    fresh
    1 skips the 24-hour cache and fetches live.
    output
    JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.
    records
    Native CSV/NDJSON record selector; it has no effect on this JSON-only product.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/apish/civitai/v1/models?output=json&query=anime' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "applied_filters": {
        "query": "anime"
      },
      "cached": false,
      "count": 10,
      "credits_used": 1,
      "models": [
        {
          "availability": "Public",
          "base_models": [
            "SD 1.5"
          ],
          "creator": {
            "image": null,
            "username": "CyberAIchemist"
          },
          "description": "<h2>Update information</h2><p></p><p>V3.0 updated. Fine-tuned LoRA to improve the effects of generating characters with complex body limbs a…",
          "id": 16014,
          "license": {
            "allow_commercial_use": [],
            "allow_derivatives": true,
            "allow_different_license": true,
            "allow_no_credit": true
          },
          "minor": false,
          "name": "Anime Lineart / Manga-like (线稿/線画/マンガ風/漫画风) Style",
          "poi": false,
          "stats": {
            "commentCount": 0,
            "downloadCount": 208327,
            "thumbsDownCount": 5,
            "thumbsUpCount": 21439,
            "tippedAmountCount": 1043
          },
          "supports_generation": false,
          "tags": [
            "lineart",
            "art style",
            "… 10 more"
          ],
          "type": "LORA",
          "url": "https://civitai.com/models/16014",
          "versions": [
            {
              "availability": "Public",
              "base_model": "SD 1.5",
              "base_model_type": "Standard",
              "created_at": null,
              "description": null,
              "download_url": "https://civitai.com/api/download/models/28907",
              "files": [
                {
                  "…": "9 fields"
                }
              ],
              "id": 28907,
              "images": [
                {
                  "…": "11 fields"
                },
                {
                  "…": "11 fields"
                },
                "… 14 more"
              ],
              "model_id": 16014,
              "name": "v3.0 manga-like",
              "page_url": "https://civitai.com/models/16014?modelVersionId=28907",
              "published_at": "2023-03-25T13:39:23.464Z",
              "stats": {
                "…": "3 fields"
              },
              "status": null,
              "trained_words": [
                "lineart, monochrome"
              ],
              "updated_at": null
            },
            {
              "availability": "Public",
              "base_model": "SD 1.5",
              "base_model_type": "Standard",
              "created_at": null,
              "description": "<p>V2.0 is updated! Trained with offset noise, and all demos are generated with Anything V4.5 base model and orange mix VAE.</p><p>What this…",
              "download_url": "https://civitai.com/api/download/models/19075",
              "files": [
                {
                  "…": "9 fields"
                }
              ],
              "id": 19075,
              "images": [
                {
                  "…": "11 fields"
                },
                {
                  "…": "11 fields"
                },
                "… 14 more"
              ],
              "model_id": 16014,
              "name": "v2.0 offset",
              "page_url": "https://civitai.com/models/16014?modelVersionId=19075",
              "published_at": "2023-03-05T20:00:31.679Z",
              "stats": {
                "…": "3 fields"
              },
              "status": null,
              "trained_words": [
                "monochrome",
                "lineart"
              ],
              "updated_at": null
            },
            "… 1 more"
          ]
        },
        {
          "availability": "Public",
          "base_models": [
            "SD 1.5"
          ],
          "creator": {
            "image": null,
            "username": "CyberAIchemist"
          },
          "description": "<p>Trained on Phantom Star illustrations.</p><p>V3.1 updated. Improve consistency. Support for more varied backgrounds (use <code>{} backgro…",
          "id": 11177,
          "license": {
            "allow_commercial_use": [],
            "allow_derivatives": true,
            "allow_different_license": true,
            "allow_no_credit": true
          },
          "minor": false,
          "name": "Anime Tarot Card Art Style LoRA (塔罗牌/タロットカード)",
          "poi": false,
          "stats": {
            "commentCount": 0,
            "downloadCount": 89782,
            "thumbsDownCount": 2,
            "thumbsUpCount": 13477,
            "tippedAmountCount": 524
          },
          "supports_generation": false,
          "tags": [
            "illustration",
            "style",
            "… 4 more"
          ],
          "type": "LORA",
          "url": "https://civitai.com/models/11177",
          "versions": [
            {
              "availability": "Public",
              "base_model": "SD 1.5",
              "base_model_type": "Standard",
              "created_at": null,
              "description": "<p>Improve performance</p>",
              "download_url": "https://civitai.com/api/download/models/28609",
              "files": [
                {
                  "…": "9 fields"
                }
              ],
              "id": 28609,
              "images": [
                {
                  "…": "11 fields"
                },
                {
                  "…": "11 fields"
                },
                "… 7 more"
              ],
              "model_id": 11177,
              "name": "v3.1",
              "page_url": "https://civitai.com/models/11177?modelVersionId=28609",
              "published_at": "2023-03-24T22:12:16.903Z",
              "stats": {
                "…": "3 fields"
              },
              "status": null,
              "trained_words": [],
              "updated_at": null
            },
            {
              "availability": "Public",
              "base_model": "SD 1.5",
              "base_model_type": "Standard",
              "created_at": null,
              "description": "<p>V3.0 updated. Support for more varied backgrounds (use <code>{} background</code> to set). You can use it without any additional prompts,…",
              "download_url": "https://civitai.com/api/download/models/28248",
              "files": [
                {
                  "…": "9 fields"
                }
              ],
              "id": 28248,
              "images": [
                {
                  "…": "11 fields"
                },
                {
                  "…": "11 fields"
                },
                "… 13 more"
              ],
              "model_id": 11177,
              "name": "v3.0",
              "page_url": "https://civitai.com/models/11177?modelVersionId=28248",
              "published_at": "2023-03-24T06:16:39.064Z",
              "stats": {
                "…": "3 fields"
              },
              "status": null,
              "trained_words": [
                "tarot"
              ],
              "updated_at": null
            },
            "… 2 more"
          ]
        },
        "… 8 more"
      ],
      "next_cursor": "10",
      "query": "anime"
    }

Common questions

How do I paginate?

limit accepts 1–10 models, default 10. Omit cursor initially and pass next_cursor for subsequent pages.

Can I filter base models and creator?

Yes. Use base_models with documented comma-separated values and username for a creator account.

What do permission filters select?

They match source flags such as allow_commercial_use or allow_derivatives. Keep those flags with each result and review the exact model and base-model context.

Does supports_generation run a model?

No. It filters source-site generation support. This implementation returns JSON metadata; include_nsfw remains off by default.

How do I bypass cached results?

Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

Can I request CSV or NDJSON?

This OpenAny implementation serves JSON only. Omit output or set output=json.

Use Civitai Model Search API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.