Shapesoda Account API

Credits and usage of the account that owns the key.

GitHub OpenAPI

Operations 1

GET /v1/account Get account and credits #

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/shapesoda-com:shapesoda-com-account-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

shapesoda-com-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shapesoda Account API
  version: 1.2.0
  summary: Convert raster images (PNG, JPEG, WebP, BMP, GIF, TIFF) into SVG, PDF, EPS or DXF vectors, or a rendered PNG.
  description: 'REST API and MCP server of Shapesoda (https://shapesoda.com). Account and vectorization requests (`/v1/vectorize`, `/v1/account`, `/mcp`) are authenticated with an API key sent as `Authorization: Bearer `; create keys in the account menu on shapesoda.com (a key is shown once). Stored results (`/v1/results/{id}`) use the result token instead of the key: `Authorization: Bearer ` is recommended; `?token=` is also accepted but can leak into access logs, browser history and analytics. One-time MCP upload links carry their own secret and need no extra authentication; `/v1/plans` is public. Never call the API from a browser or mobile app with your secret key. One successfully vectorized image costs 1 credit, whatever number of formats you request in that call; failed requests are refunded automatically. Errors are JSON objects `{"error": {"code", "message", "request_id"}}` — branch on `code`, the `message` is a human-readable hint.


    Limits (defaults): 60 requests per minute per key with bursts of 10 (a token bucket; a request rejected with `429 rate_limited` does not use up a token, so waiting `Retry-After` seconds is enough; `Retry-After` is always a whole number of seconds, never a date); 5,000 images per key per UTC day (free repeats included); input up to 10 MB and 40 megapixels (images above 4.2 MP or 4096 px per side are downscaled automatically). Test mode (`mode=test`): free and watermarked, 100 calls per key and 100 per account per UTC day; `retention_days` and `image_url` are not available in test mode (`400 bad_request`); a stored test result lives 1 hour. Preview (`mode=preview`): free PNG preview up to 1 MP, 200 per account per UTC day (`429 preview_limit`); the vectors are unlocked from the preview link for 1 credit. Retention: `retention_days` (1–30) keeps a result for up to 30 days, free of charge. Free repeats: the same request (same bytes and parameters) within 24 hours is free without limit; the same image with other options is free for 30 days after it was paid for, up to 20 times per image per day. Result storage: a single-format request stores nothing; several formats, `retain=true`, `retention_days`, an explicit `Accept: application/json` and MCP results are stored encrypted for 24 hours (up to 30 days with `retention_days`; test-mode results for 1 hour; previews for 24 hours) with a key derived from a token only the client gets, then deleted. Fine-tuning: besides the presets there are options for processing, drawing, curves and stroke, gap filler, output size and format-specific output; a preset only sets defaults and every explicit option wins. Documentation: https://shapesoda.com/api'
  termsOfService: https://shapesoda.com/terms
  license:
    name: Proprietary
    url: https://shapesoda.com/terms
  contact:
    name: Shapesoda support
    email: support@shapesoda.com
    url: https://shapesoda.com/api
servers:
- url: https://shapesoda.com
  description: Production
security:
- bearerAuth: []
tags:
- name: Account
  description: Credits and usage of the account that owns the key.
paths:
  /v1/account:
    get:
      operationId: getAccount
      tags:
      - Account
      summary: Get account and credits
      description: Returns the account the key belongs to and its credits. Credits are counted per calendar month (UTC). Free and not counted against the per-key rate limit.
      responses:
        '200':
          description: Account and credits.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountResponse'
              example:
                account:
                  id: acc_3f9c1e7a2b4d6e80
                  name: you@example.com
                credits:
                  balance: 97
                  subscription_balance: 97
                  quota: 0
                  quota_used: 0
                  quota_left: 0
                  spent_month: 3
                  spend_limit: null
                  available: 97
        '401':
          $ref: '#/components/responses/Unauthorized'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  headers:
    X-Request-Id:
      description: Unique request ID; also returned in error bodies.
      schema:
        type: string
        pattern: ^req_[a-f0-9]{20}$
    Retry-After:
      description: 'Seconds to wait before retrying: a whole number (delta-seconds), never an HTTP date.'
      schema:
        type: integer
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - request_id
          properties:
            code:
              type: string
              description: Stable machine-readable error code.
              enum:
              - bad_request
              - empty
              - unauthorized
              - no_credits
              - spend_limit
              - forbidden
              - not_found
              - method_not_allowed
              - too_large
              - unsupported_format
              - invalid_image
              - too_many_pixels
              - rate_limited
              - daily_limit
              - test_limit
              - preview_limit
              - internal
              - busy
              - timeout
              - storage_full
              - url_invalid
              - url_blocked
              - url_unreachable
              - url_timeout
              - url_unavailable
            message:
              type: string
              description: Human-readable description; may change or be localized.
            request_id:
              type: string
      example:
        error:
          code: too_many_pixels
          message: Human-readable description
          request_id: req_4f1c2a9e0b7d4c3a8e21
    AccountResponse:
      type: object
      required:
      - account
      - credits
      properties:
        account:
          type: object
          required:
          - id
          - name
          properties:
            id:
              type: string
            name:
              type: string
        credits:
          $ref: '#/components/schemas/Credits'
    Credits:
      type: object
      required:
      - balance
      - subscription_balance
      - quota
      - quota_used
      - quota_left
      - spent_month
      - spend_limit
      - available
      properties:
        available:
          type: integer
          description: 'Images that can be processed right now: quota_left + balance, capped by what is left of spend_limit.'
        balance:
          type: integer
          description: Purchased credits, shared with the website; includes subscription_balance.
        subscription_balance:
          type: integer
          description: Credits from the API plan, used first. Unused ones roll over up to 5× the monthly amount and expire when the plan ends.
        quota:
          type: integer
          description: Monthly included credits (0 for pay-as-you-go accounts).
        quota_used:
          type: integer
        quota_left:
          type: integer
        spent_month:
          type: integer
          description: Credits used this calendar month (UTC).
        spend_limit:
          type:
          - integer
          - 'null'
          description: User-set monthly cap in credits; null means no cap.
  responses:
    Unauthorized:
      description: '`unauthorized`: missing, malformed or revoked API key.'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
        WWW-Authenticate:
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: '`rate_limited` (retry after `Retry-After` seconds; a rejected request does not use up a rate-limit token; also more than 2 `image_url` downloads of one account at a time), `daily_limit` (daily cap per key; resets at 00:00 UTC), `test_limit` (daily test-mode cap per key or account; resets at 00:00 UTC) or `preview_limit` (200 `mode=preview` calls per account per UTC day; resets at 00:00 UTC, `Retry-After` is the time until then).'
      headers:
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    MethodNotAllowed:
      description: '`method_not_allowed`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key from the account menu on shapesoda.com, e.g. `Authorization: Bearer ssk_…`.'
    resultToken:
      type: http
      scheme: bearer
      description: 'Result token (`result_token` or `X-Result-Token`), not the API key: `Authorization: Bearer <result_token>`.'
    resultTokenQuery:
      type: apiKey
      in: query
      name: token
      description: 'Result token in the query string: `?token=<result_token>`. Prefer the Authorization header: a token in a URL can leak into access logs, browser history and analytics. Links returned by MCP already carry it.'
externalDocs:
  description: Developer documentation
  url: https://shapesoda.com/api