SciFig Files API

The Files API from SciFig — 2 operation(s) for files.

GitHub OpenAPI

Operations 2

POST /files Upload a file #
GET /files/{file_id} Download a file #

Specifications

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/scifig-ai:scifig-ai-files-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

scifig-ai-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SciFig Files API
  version: 1.0.0
  description: 'Create scientific figures, data charts and flowcharts. Documentation: https://scifig.ai/docs/api'
servers:
- url: https://scifig.ai/api/v1
tags:
- name: Files
paths:
  /files:
    post:
      summary: Upload a file
      security:
      - bearer: []
      - oauth:
        - files:write
      x-required-scopes:
      - files:write
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - file
              properties:
                file:
                  type: string
                  format: binary
                purpose:
                  type: string
                  enum:
                  - image
                  - mask
                  - flowchart_attachment
                  default: image
      responses:
        '201':
          description: Uploaded
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                type: object
                required:
                - file_id
                - purpose
                - content_type
                - size_bytes
                - expires_at
                - created_at
                properties:
                  file_id:
                    type: string
                    format: uuid
                  purpose:
                    type: string
                  content_type:
                    type: string
                  size_bytes:
                    type: integer
                  expires_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                  created_at:
                    type: string
                    format: date-time
              example:
                file_id: 3f6a2d81-9c4b-4e7a-b0d5-1a8e6c2f9b47
                purpose: image
                content_type: image/png
                size_bytes: 482113
                expires_at: '2026-10-21T08:00:00.000Z'
                created_at: '2026-10-14T08:00:00.000Z'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '429':
          $ref: '#/components/responses/RateLimited'
        default:
          $ref: '#/components/responses/Error'
      tags:
      - Files
      operationId: postFiles
      x-operation-id-source: derived
  /files/{file_id}:
    get:
      summary: Download a file
      security:
      - bearer: []
      - oauth:
        - jobs:read
      - {}
      x-required-scopes:
      - jobs:read
      parameters:
      - name: file_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: sig
        in: query
        required: false
        schema:
          type: string
      - name: exp
        in: query
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: OK
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '429':
          $ref: '#/components/responses/RateLimited'
        default:
          $ref: '#/components/responses/Error'
      tags:
      - Files
      operationId: getFilesByFileId
      x-operation-id-source: derived
components:
  headers:
    RetryAfter:
      description: Seconds to wait before the next attempt. Retry a create request with the same Idempotency-Key.
      schema:
        type: integer
        minimum: 1
    XRateLimitRemaining:
      description: Requests left in that window.
      schema:
        type: integer
    XRateLimitLimit:
      description: Requests allowed in the current one-minute window (the tightest window that applies).
      schema:
        type: integer
    XRequestId:
      description: Unique id of this request. Quote it when contacting support.
      schema:
        type: string
        format: uuid
    XRateLimitReset:
      description: When that window resets, in Unix seconds.
      schema:
        type: integer
  responses:
    PayloadTooLarge:
      description: The request body or an uploaded file is over the limit (details.max_bytes).
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: PAYLOAD_TOO_LARGE
              message: The request body is too large.
              request_id: c0a8012e-5f3b-4a91-8d2c-6e7f9b1a3d45
              details:
                max_bytes: 1048576
    Error:
      description: Error. Branch on error.code; never parse message. 503 responses carry Retry-After.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INVALID_REQUEST
              message: The request is invalid.
              request_id: c0a8012e-5f3b-4a91-8d2c-6e7f9b1a3d45
              details:
                reason: VALIDATION_FAILED
    RateLimited:
      description: RATE_LIMITED (per-minute window, or a daily limit named in details.reason, e.g. DAILY_CONVERSION_LIMIT) or CONCURRENCY_LIMITED (too many running tasks). Wait Retry-After seconds and retry with the same Idempotency-Key.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
        X-RateLimit-Limit:
          $ref: '#/components/headers/XRateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/XRateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/XRateLimitReset'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            perMinute:
              value:
                error:
                  code: RATE_LIMITED
                  message: Too many requests.
                  request_id: c0a8012e-5f3b-4a91-8d2c-6e7f9b1a3d45
            dailyConversions:
              value:
                error:
                  code: RATE_LIMITED
                  message: Too many requests.
                  request_id: c0a8012e-5f3b-4a91-8d2c-6e7f9b1a3d45
                  details:
                    reason: DAILY_CONVERSION_LIMIT
                    limit: 200
            concurrency:
              value:
                error:
                  code: CONCURRENCY_LIMITED
                  message: Too many tasks are running for this account.
                  request_id: c0a8012e-5f3b-4a91-8d2c-6e7f9b1a3d45
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          required:
          - code
          - message
          - request_id
          properties:
            code:
              type: string
              enum:
              - UNAUTHORIZED
              - ACCOUNT_UNAVAILABLE
              - SCOPE_DENIED
              - INVALID_REQUEST
              - IDEMPOTENCY_KEY_REQUIRED
              - IDEMPOTENCY_CONFLICT
              - IDEMPOTENCY_IN_PROGRESS
              - NOT_FOUND
              - REVISION_CONFLICT
              - PAYLOAD_TOO_LARGE
              - INSUFFICIENT_CREDITS
              - CONTENT_REJECTED
              - PLAN_REQUIRED
              - RATE_LIMITED
              - CONCURRENCY_LIMITED
              - SERVICE_UNAVAILABLE
              - TASK_FAILED
              - INTERNAL_ERROR
            message:
              type: string
            request_id:
              type: string
            details:
              type: object
              properties:
                reason:
                  type: string
                  description: Finer cause for some codes. New values may be added.
                  examples:
                  - VALIDATION_FAILED
                  - DAILY_CONVERSION_LIMIT
                  - HOURLY_LIMIT_REACHED
                  - FILE_TOO_LARGE
                top_up_url:
                  type: string
                  format: uri
                max_bytes:
                  type: integer
  securitySchemes:
    oauth:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://scifig.ai/api/auth/oauth2/authorize
          tokenUrl: https://scifig.ai/api/auth/oauth2/token
          scopes:
            images:generate: images:generate
            images:edit: images:edit
            images:convert: images:convert
            charts:generate: charts:generate
            flowcharts:generate: flowcharts:generate
            files:write: files:write
            jobs:read: jobs:read
            credits:read: credits:read
    bearer:
      type: http
      scheme: bearer
      description: API key (sk_live_…) or OAuth access token (sf_at_…).