civai-co Publisher API

The publisher API from civai-co — 11 operation(s) for publisher.

Operations 15

GET /api/publisher/assets Publisher List Assets Legacy #
GET /api/publisher/projects/{project_id}/assets Publisher List Assets #
GET /api/publisher/assets/{asset_id} Publisher Get Asset Legacy #
PATCH /api/publisher/assets/{asset_id} Publisher Update Asset Legacy #
DELETE /api/publisher/assets/{asset_id} Publisher Delete Asset Legacy #
GET /api/publisher/projects/{project_id}/assets/{asset_id} Publisher Get Asset #
PATCH /api/publisher/projects/{project_id}/assets/{asset_id} Publisher Update Asset #
DELETE /api/publisher/projects/{project_id}/assets/{asset_id} Publisher Delete Asset #
POST /api/publisher/assets/{asset_id}/cancel Publisher Cancel Asset Legacy #
POST /api/publisher/projects/{project_id}/assets/{asset_id}/cancel Publisher Cancel Asset #
POST /api/publisher/assets/images/upload Publisher Upload Image Legacy #
POST /api/publisher/projects/{project_id}/assets/images/upload Publisher Upload Image #
POST /api/publisher/assets/videos/upload Publisher Upload Video Legacy #
POST /api/publisher/assets/from-drive Publisher Asset From Drive Legacy #
POST /api/publisher/projects/{project_id}/assets/from-drive Publisher Asset From Drive #

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-publisher-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-publisher-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Civai Co Publisher API
  version: 1.0.0
  description: 'Operations tagged publisher 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: publisher
paths:
  /api/publisher/assets:
    get:
      tags:
      - publisher
      summary: Publisher List Assets Legacy
      operationId: publisher_list_assets_legacy_api_publisher_assets_get
      parameters:
      - name: asset_type
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Asset Type
      - name: include_groups
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Include Groups
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Publisher List Assets Legacy Api Publisher Assets Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/projects/{project_id}/assets:
    get:
      tags:
      - publisher
      summary: Publisher List Assets
      operationId: publisher_list_assets_api_publisher_projects__project_id__assets_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: asset_type
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Asset Type
      - name: include_groups
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Include Groups
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Publisher List Assets Api Publisher Projects  Project Id  Assets Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/assets/{asset_id}:
    get:
      tags:
      - publisher
      summary: Publisher Get Asset Legacy
      operationId: publisher_get_asset_legacy_api_publisher_assets__asset_id__get
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Publisher Get Asset Legacy Api Publisher Assets  Asset Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - publisher
      summary: Publisher Update Asset Legacy
      operationId: publisher_update_asset_legacy_api_publisher_assets__asset_id__patch
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublisherUpdateAssetBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - publisher
      summary: Publisher Delete Asset Legacy
      operationId: publisher_delete_asset_legacy_api_publisher_assets__asset_id__delete
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/projects/{project_id}/assets/{asset_id}:
    get:
      tags:
      - publisher
      summary: Publisher Get Asset
      operationId: publisher_get_asset_api_publisher_projects__project_id__assets__asset_id__get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Publisher Get Asset Api Publisher Projects  Project Id  Assets  Asset Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - publisher
      summary: Publisher Update Asset
      operationId: publisher_update_asset_api_publisher_projects__project_id__assets__asset_id__patch
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublisherUpdateAssetBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - publisher
      summary: Publisher Delete Asset
      operationId: publisher_delete_asset_api_publisher_projects__project_id__assets__asset_id__delete
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/assets/{asset_id}/cancel:
    post:
      tags:
      - publisher
      summary: Publisher Cancel Asset Legacy
      operationId: publisher_cancel_asset_legacy_api_publisher_assets__asset_id__cancel_post
      parameters:
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Publisher Cancel Asset Legacy Api Publisher Assets  Asset Id  Cancel Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/projects/{project_id}/assets/{asset_id}/cancel:
    post:
      tags:
      - publisher
      summary: Publisher Cancel Asset
      operationId: publisher_cancel_asset_api_publisher_projects__project_id__assets__asset_id__cancel_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Publisher Cancel Asset Api Publisher Projects  Project Id  Assets  Asset Id  Cancel Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/assets/images/upload:
    post:
      tags:
      - publisher
      summary: Publisher Upload Image Legacy
      operationId: publisher_upload_image_legacy_api_publisher_assets_images_upload_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_publisher_upload_image_legacy_api_publisher_assets_images_upload_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/projects/{project_id}/assets/images/upload:
    post:
      tags:
      - publisher
      summary: Publisher Upload Image
      operationId: publisher_upload_image_api_publisher_projects__project_id__assets_images_upload_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_publisher_upload_image_api_publisher_projects__project_id__assets_images_upload_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/assets/videos/upload:
    post:
      tags:
      - publisher
      summary: Publisher Upload Video Legacy
      operationId: publisher_upload_video_legacy_api_publisher_assets_videos_upload_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_publisher_upload_video_legacy_api_publisher_assets_videos_upload_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/assets/from-drive:
    post:
      tags:
      - publisher
      summary: Publisher Asset From Drive Legacy
      operationId: publisher_asset_from_drive_legacy_api_publisher_assets_from_drive_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetFromDriveRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/publisher/projects/{project_id}/assets/from-drive:
    post:
      tags:
      - publisher
      summary: Publisher Asset From Drive
      operationId: publisher_asset_from_drive_api_publisher_projects__project_id__assets_from_drive_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetFromDriveRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_publisher_upload_video_legacy_api_publisher_assets_videos_upload_post:
      properties:
        file:
          type: string
          format: binary
          title: File
        caption:
          anyOf:
          - type: string
          - type: 'null'
          title: Caption
        prompt:
          anyOf:
          - type: string
          - type: 'null'
          title: Prompt
      type: object
      required:
      - file
      title: Body_publisher_upload_video_legacy_api_publisher_assets_videos_upload_post
    Body_publisher_upload_image_legacy_api_publisher_assets_images_upload_post:
      properties:
        file:
          type: string
          format: binary
          title: File
        caption:
          anyOf:
          - type: string
          - type: 'null'
          title: Caption
        prompt:
          anyOf:
          - type: string
          - type: 'null'
          title: Prompt
      type: object
      required:
      - file
      title: Body_publisher_upload_image_legacy_api_publisher_assets_images_upload_post
    AssetFromDriveRequest:
      properties:
        drive_file_id:
          type: string
          title: Drive File Id
        caption:
          anyOf:
          - type: string
          - type: 'null'
          title: Caption
        prompt:
          anyOf:
          - type: string
          - type: 'null'
          title: Prompt
      type: object
      required:
      - drive_file_id
      title: AssetFromDriveRequest
    PublisherUpdateAssetBody:
      properties:
        caption:
          anyOf:
          - type: string
          - type: 'null'
          title: Caption
        prompt:
          anyOf:
          - type: string
          - type: 'null'
          title: Prompt
        guidelines:
          anyOf:
          - type: string
          - type: 'null'
          title: Guidelines
      type: object
      title: PublisherUpdateAssetBody
    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
    Body_publisher_upload_image_api_publisher_projects__project_id__assets_images_upload_post:
      properties:
        file:
          type: string
          format: binary
          title: File
        caption:
          anyOf:
          - type: string
          - type: 'null'
          title: Caption
        prompt:
          anyOf:
          - type: string
          - type: 'null'
          title: Prompt
      type: object
      required:
      - file
      title: Body_publisher_upload_image_api_publisher_projects__project_id__assets_images_upload_post
    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