Civitai Blobs API

Upload and reference blobs for inputs and outputs.

Operations 5

POST /v2/consumer/blobs Upload Blob #
GET /v2/consumer/blobs/upload-url Get Blob Upload URL #
GET /v2/consumer/blobs/{blobId} Get Blob #
HEAD /v2/consumer/blobs/{blobId} Head Blob #
POST /v2/consumer/blobs/{blobId}/refresh Refresh Blob URL #

Documentation

Specifications

Schemas & Data

Other Resources

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/civitai-blobs-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

civitai-blobs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Civitai Orchestration Blobs API
  version: v2
  description: 'Submit AI generation workflows — image, video, audio, language, and LoRA training — through a single

    contract. The Orchestration API races multiple providers and engines behind one workflow surface and

    delivers results via webhooks or polling. Authenticate with a Bearer token issued at civitai.com.

    '
  contact:
    name: Civitai Developer Support
    url: https://developer.civitai.com/orchestration/
  termsOfService: https://civitai.com/content/tos
  license:
    name: Civitai Terms of Service
    url: https://civitai.com/content/tos
servers:
- url: https://orchestration.civitai.com
  description: Civitai Orchestration API
security:
- BearerAuth: []
tags:
- name: Blobs
  description: Upload and reference blobs for inputs and outputs.
paths:
  /v2/consumer/blobs:
    post:
      operationId: uploadBlob
      summary: Upload Blob
      tags:
      - Blobs
      description: Upload a blob (image, video, audio) with built-in NSFW moderation.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - file
              properties:
                file:
                  type: string
                  format: binary
                moderate:
                  type: boolean
                  default: true
      responses:
        '201':
          description: Uploaded blob.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Blob'
  /v2/consumer/blobs/upload-url:
    get:
      operationId: getBlobUploadUrl
      summary: Get Blob Upload URL
      tags:
      - Blobs
      parameters:
      - name: mimeType
        in: query
        required: true
        schema:
          type: string
      - name: sizeBytes
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: Presigned upload URL.
          content:
            application/json:
              schema:
                type: object
                properties:
                  blobId:
                    type: string
                  uploadUrl:
                    type: string
                    format: uri
                  expiresAt:
                    type: string
                    format: date-time
                  headers:
                    type: object
                    additionalProperties:
                      type: string
  /v2/consumer/blobs/{blobId}:
    parameters:
    - name: blobId
      in: path
      required: true
      schema:
        type: string
    get:
      operationId: getBlob
      summary: Get Blob
      tags:
      - Blobs
      responses:
        '200':
          description: Blob metadata and download URL.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Blob'
    head:
      operationId: headBlob
      summary: Head Blob
      tags:
      - Blobs
      description: Check blob existence and moderation status without downloading metadata.
      responses:
        '200':
          description: Blob exists.
        '404':
          description: Blob not found.
  /v2/consumer/blobs/{blobId}/refresh:
    post:
      operationId: refreshBlob
      summary: Refresh Blob URL
      tags:
      - Blobs
      parameters:
      - name: blobId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Refreshed blob with new signed URL.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Blob'
components:
  schemas:
    Blob:
      type: object
      properties:
        id:
          type: string
        mimeType:
          type: string
        sizeBytes:
          type: integer
        url:
          type: string
          format: uri
        urlExpiresAt:
          type: string
          format: date-time
        sha256:
          type: string
        nsfwLevel:
          type: integer
        nsfwReason:
          type: string
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: token
      description: Personal API token issued at https://civitai.com/user/account.