Archivist AI Images API

The images API from Archivist AI — 5 operation(s) for images.

Operations 5

POST /v1/campaigns/{campaign_id}/images/init Init Image Upload #
POST /v1/campaigns/{campaign_id}/images/complete Complete Image Upload #
DELETE /v1/campaigns/{campaign_id}/images Delete Entity Image #
GET /v1/images/usage Get Image Usage #
POST /v1/images/generate Generate Image #

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/myarchivist-ai:myarchivist-ai-images-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

myarchivist-ai-images-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Archivist Public Images API
  description: Public API for Archivist - Tabletop RPG Campaign Management
  version: 1.0.0
tags:
- name: Images
paths:
  /v1/campaigns/{campaign_id}/images/init:
    post:
      tags:
      - Images
      summary: Init Image Upload
      operationId: init_image_upload_v1_campaigns__campaign_id__images_init_post
      security:
      - HTTPBearer: []
      parameters:
      - name: campaign_id
        in: path
        required: true
        schema:
          type: string
          title: Campaign Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageUploadInitRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageUploadInitResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/campaigns/{campaign_id}/images/complete:
    post:
      tags:
      - Images
      summary: Complete Image Upload
      operationId: complete_image_upload_v1_campaigns__campaign_id__images_complete_post
      security:
      - HTTPBearer: []
      parameters:
      - name: campaign_id
        in: path
        required: true
        schema:
          type: string
          title: Campaign Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageUploadCompleteRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageUploadCompleteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/campaigns/{campaign_id}/images:
    delete:
      tags:
      - Images
      summary: Delete Entity Image
      operationId: delete_entity_image_v1_campaigns__campaign_id__images_delete
      security:
      - HTTPBearer: []
      parameters:
      - name: campaign_id
        in: path
        required: true
        schema:
          type: string
          title: Campaign Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageDeleteRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageDeleteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/images/usage:
    get:
      tags:
      - Images
      summary: Get Image Usage
      operationId: get_image_usage_v1_images_usage_get
      security:
      - HTTPBearer: []
      parameters:
      - name: campaign_id
        in: query
        required: true
        schema:
          type: string
          title: Campaign Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageUsageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/images/generate:
    post:
      tags:
      - Images
      summary: Generate Image
      operationId: generate_image_v1_images_generate_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageGenerateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageGenerateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ImageUploadInitResponse:
      properties:
        object_key:
          type: string
          title: Object Key
        upload_url:
          type: string
          title: Upload Url
        public_url:
          type: string
          title: Public Url
        expires_in_seconds:
          type: integer
          title: Expires In Seconds
      type: object
      required:
      - object_key
      - upload_url
      - public_url
      - expires_in_seconds
      title: ImageUploadInitResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ImageUploadCompleteRequest:
      properties:
        object_key:
          type: string
          maxLength: 2048
          minLength: 1
          title: Object Key
        entity_type:
          type: string
          title: Entity Type
        entity_id:
          type: string
          title: Entity Id
        attach:
          type: boolean
          title: Attach
          default: true
      type: object
      required:
      - object_key
      - entity_type
      - entity_id
      title: ImageUploadCompleteRequest
    ImageUploadInitRequest:
      properties:
        entity_type:
          type: string
          title: Entity Type
        entity_id:
          type: string
          title: Entity Id
        file_name:
          type: string
          maxLength: 255
          minLength: 1
          title: File Name
        content_type:
          type: string
          maxLength: 100
          minLength: 1
          title: Content Type
      type: object
      required:
      - entity_type
      - entity_id
      - file_name
      - content_type
      title: ImageUploadInitRequest
    ImageDeleteRequest:
      properties:
        entity_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Entity Type
        entity_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Entity Id
        image_url:
          anyOf:
          - type: string
            maxLength: 2048
          - type: 'null'
          title: Image Url
      type: object
      title: ImageDeleteRequest
    ImageDeleteResponse:
      properties:
        removed:
          type: boolean
          title: Removed
      type: object
      required:
      - removed
      title: ImageDeleteResponse
    ImageUploadCompleteResponse:
      properties:
        url:
          type: string
          title: Url
        attached:
          type: boolean
          title: Attached
      type: object
      required:
      - url
      - attached
      title: ImageUploadCompleteResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ImageGenerateResponse:
      properties:
        url:
          type: string
          title: Url
      type: object
      required:
      - url
      title: ImageGenerateResponse
    ImageGenerateRequest:
      properties:
        campaign_id:
          type: string
          title: Campaign Id
        type:
          type: string
          title: Type
        user_input:
          anyOf:
          - type: string
            maxLength: 20000
          - type: 'null'
          title: User Input
        entity_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Entity Id
      type: object
      required:
      - campaign_id
      - type
      title: ImageGenerateRequest
    ImageUsageResponse:
      properties:
        used:
          type: integer
          title: Used
        limit:
          type: integer
          title: Limit
        can_access:
          type: boolean
          title: Can Access
        feature_type:
          type: string
          title: Feature Type
          default: image
        tier:
          type: string
          title: Tier
        billing_cycle_start:
          anyOf:
          - type: string
          - type: 'null'
          title: Billing Cycle Start
        billing_cycle_end:
          anyOf:
          - type: string
          - type: 'null'
          title: Billing Cycle End
        message:
          anyOf:
          - type: string
          - type: 'null'
          title: Message
        blocked:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Blocked
      type: object
      required:
      - used
      - limit
      - can_access
      - tier
      title: ImageUsageResponse
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer