SciFig Charts API

The Charts API from SciFig — 2 operation(s) for charts.

GitHub OpenAPI

Operations 2

POST /charts/generations Plot a chart from data #
POST /charts/edits Edit the latest version of a chart #

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-charts-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-charts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SciFig Charts 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: Charts
paths:
  /charts/generations:
    post:
      summary: Plot a chart from data
      security:
      - bearer: []
      - oauth:
        - charts:generate
      x-required-scopes:
      - charts:generate
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      - $ref: '#/components/parameters/Prefer'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                data:
                  type: string
                  format: binary
                  description: CSV, TSV, XLSX or XLS, up to 8 MB.
                request:
                  type: string
                  minLength: 1
                  maxLength: 16000
                chart_types:
                  type: string
                  description: Comma-separated chart types.
                journal_style:
                  default: default
                  type: string
                  enum:
                  - default
                  - nature
                  - science
                  - cell
                  - plos
                  - acs
                figure_width:
                  default: double
                  type: string
                  enum:
                  - single
                  - onehalf
                  - double
                color_palette:
                  default: okabe_ito
                  type: string
                  enum:
                  - okabe_ito
                  - wong
                  - tol_bright
                  - tol_muted
                  - nature
                  - science
                  - nejm
                  - lancet
                  - jama
                sheet_name:
                  type: string
                  minLength: 1
                  maxLength: 255
              required:
              - data
              - request
              additionalProperties: false
      responses:
        '200':
          description: Finished job
          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:
                $ref: '#/components/schemas/Job'
              example:
                id: 7b3f9a52-1c4e-4d8a-9f61-2e5b8c0d4a17
                kind: image_generation
                status: succeeded
                created_at: '2026-10-14T08:00:00.000Z'
                credits:
                  reserved: 50
                  charged: 50
                  refunded: 0
                outputs:
                - file_id: 0d9c4b8e-6a2f-4f17-b3e5-8c1a7d2e9f60
                  format: png
                  download_url: https://scifig.ai/api/v1/files/0d9c4b8e-6a2f-4f17-b3e5-8c1a7d2e9f60?exp=1760432400&sig=…
                  expires_at: '2026-10-14T09:00:00.000Z'
                  width: 2048
                  height: 1536
                error: null
        '202':
          description: Job accepted and still running. Flowchart SVG raster conversions are durable asynchronous jobs (10 minute total deadline including queue/cold start). With jobs:read, poll the Location URL after Retry-After seconds; do not create another job.
          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'
            Location:
              $ref: '#/components/headers/Location'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/Job'
                - $ref: '#/components/schemas/AdmissionFallback'
              example:
                id: 7b3f9a52-1c4e-4d8a-9f61-2e5b8c0d4a17
                kind: image_generation
                status: processing
                created_at: '2026-10-14T08:00:00.000Z'
                credits:
                  reserved: 50
                  charged: 0
                  refunded: 0
                outputs: []
                error: null
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '429':
          $ref: '#/components/responses/RateLimited'
        default:
          $ref: '#/components/responses/Error'
      tags:
      - Charts
      operationId: postChartsGenerations
      x-operation-id-source: derived
  /charts/edits:
    post:
      summary: Edit the latest version of a chart
      security:
      - bearer: []
      - oauth:
        - charts:generate
      x-required-scopes:
      - charts:generate
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      - $ref: '#/components/parameters/Prefer'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                job:
                  type: string
                  format: uuid
                  pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                instruction:
                  type: string
                  minLength: 1
                  maxLength: 16000
              required:
              - job
              - instruction
              additionalProperties: false
      responses:
        '200':
          description: Finished job
          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:
                $ref: '#/components/schemas/Job'
              example:
                id: 7b3f9a52-1c4e-4d8a-9f61-2e5b8c0d4a17
                kind: image_generation
                status: succeeded
                created_at: '2026-10-14T08:00:00.000Z'
                credits:
                  reserved: 50
                  charged: 50
                  refunded: 0
                outputs:
                - file_id: 0d9c4b8e-6a2f-4f17-b3e5-8c1a7d2e9f60
                  format: png
                  download_url: https://scifig.ai/api/v1/files/0d9c4b8e-6a2f-4f17-b3e5-8c1a7d2e9f60?exp=1760432400&sig=…
                  expires_at: '2026-10-14T09:00:00.000Z'
                  width: 2048
                  height: 1536
                error: null
        '202':
          description: Job accepted and still running. Flowchart SVG raster conversions are durable asynchronous jobs (10 minute total deadline including queue/cold start). With jobs:read, poll the Location URL after Retry-After seconds; do not create another job.
          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'
            Location:
              $ref: '#/components/headers/Location'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/Job'
                - $ref: '#/components/schemas/AdmissionFallback'
              example:
                id: 7b3f9a52-1c4e-4d8a-9f61-2e5b8c0d4a17
                kind: image_generation
                status: processing
                created_at: '2026-10-14T08:00:00.000Z'
                credits:
                  reserved: 50
                  charged: 0
                  refunded: 0
                outputs: []
                error: null
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '429':
          $ref: '#/components/responses/RateLimited'
        default:
          $ref: '#/components/responses/Error'
      tags:
      - Charts
      operationId: postChartsEdits
      x-operation-id-source: derived
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: true
      schema:
        type: string
        minLength: 1
        maxLength: 255
    Prefer:
      name: Prefer
      in: header
      required: false
      description: 'wait=N (1–30): hold the response until the job finishes or N seconds pass.'
      schema:
        type: string
  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
    Location:
      description: The job to poll, e.g. /api/v1/jobs/{id}.
      schema:
        type: string
        format: uri-reference
    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
  schemas:
    AdmissionFallback:
      type: object
      additionalProperties: false
      required:
      - id
      - kind
      - status
      - created_at
      description: Accepted job whose engine view is temporarily unavailable. Credits and outputs are unknown; poll Location after Retry-After.
      properties:
        id:
          type: string
          format: uuid
        kind:
          type: string
          enum:
          - image_generation
          - image_edit
          - image_upscale
          - image_conversion
          - chart
          - flowchart
        status:
          const: queued
        created_at:
          type: string
          format: date-time
    Job:
      type: object
      required:
      - id
      - kind
      - status
      - created_at
      - credits
      - outputs
      - error
      properties:
        id:
          type: string
          format: uuid
        kind:
          type: string
          enum:
          - image_generation
          - image_edit
          - image_upscale
          - image_conversion
          - chart
          - flowchart
        status:
          type: string
          enum:
          - queued
          - processing
          - succeeded
          - failed
          - canceled
        created_at:
          type: string
          format: date-time
        credits:
          type: object
          properties:
            reserved:
              type: integer
            charged:
              type: integer
            refunded:
              type: integer
        outputs:
          type: array
          items:
            type: object
            properties:
              file_id:
                type: string
                format: uuid
              format:
                type: string
              download_url:
                type: string
                format: uri
              expires_at:
                type: string
                format: date-time
              width:
                type: integer
                minimum: 1
                description: Pixel width, when the output is a raster image.
              height:
                type: integer
                minimum: 1
                description: Pixel height, when the output is a raster image.
              editor_url:
                type: string
                format: uri
                description: 'Charts and flowcharts: opens the conversation in the SciFig web editor (the signed-in owner only).'
        error:
          oneOf:
          - type: 'null'
          - type: object
            properties:
              code:
                type: string
              message:
                type: string
              details:
                type: object
        late_delivery_until:
          type: string
          format: date-time
    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
  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
    InsufficientCredits:
      description: Not enough credits. A rejected job may be recorded; top up or upgrade, then send a new request with a new 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'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INSUFFICIENT_CREDITS
              message: Not enough credits.
              request_id: c0a8012e-5f3b-4a91-8d2c-6e7f9b1a3d45
              details:
                top_up_url: https://scifig.ai/pricing?utm_source=api
    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
  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_…).