civai-co Assets Public API

The assets-public API from civai-co — 2 operation(s) for assets-public.

Operations 2

GET /api/projects/{project_id}/assets/files/{file_path} Serve Asset File #
GET /api/projects/{project_id}/assets/proxy/remote-file Serve Remote Asset File #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/civai-co:civai-co-assets-public-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

civai-co-assets-public-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Civai Co Assets Public API
  version: 1.0.0
  description: 'Operations tagged assets-public across 2 of this provider''s published API definitions: audience-resolver-api.civai.co-openapi.json, audience-resolver-api.civai.co-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: assets-public
paths:
  /api/projects/{project_id}/assets/files/{file_path}:
    get:
      tags:
      - assets-public
      summary: Serve Asset File
      description: 'Serve asset files (images, videos) from project output directory.


        Pass download=1 to force Content-Disposition: attachment (cutout Download button).'
      operationId: serve_asset_file_api_projects__project_id__assets_files__file_path__get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: file_path
        in: path
        required: true
        schema:
          type: string
          title: File Path
      - name: download
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Download
      - name: filename
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Filename
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/projects/{project_id}/assets/proxy/remote-file:
    get:
      tags:
      - assets-public
      summary: Serve Remote Asset File
      description: Proxy remote media URL through backend so frontend canvas operations remain same-origin.
      operationId: serve_remote_asset_file_api_projects__project_id__assets_proxy_remote_file_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: url
        in: query
        required: true
        schema:
          type: string
          title: Url
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
x-refined-from:
- audience-resolver-api.civai.co-openapi.json
- audience-resolver-api.civai.co-openapi.json