SVG AI Account API

Read the authenticated account's credit balance and access.

GitHub OpenAPI

Operations 1

GET /api/v1/credits Read account balance, paid API access, and operation costs #

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/svgai-org:svgai-org-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

svgai-org-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SVG AI REST Account API
  version: 1.0.0
  description: Generate new SVG designs from text or image references, or vectorize existing raster artwork. API keys are created in the signed-in API & MCP console. Generation and vectorization require paid account access and sufficient credits; website starter credits alone do not unlock API use. GET /api/v1/credits reports current access, balance and operation costs. Examples use sample identifiers, balances and SVG artwork. Creation requests are not idempotent; poll an accepted generation before retrying.
  contact:
    url: https://www.svgai.org/contact
servers:
- url: https://www.svgai.org
  description: Production API; authenticated operations use the account's real credits.
security:
- BearerApiKey: []
- HeaderApiKey: []
tags:
- name: Account
  description: Read the authenticated account's credit balance and access.
paths:
  /api/v1/credits:
    get:
      operationId: getCredits
      tags:
      - Account
      summary: Read account balance, paid API access, and operation costs
      description: Authenticate with an API key. Check api_access before generation or vectorization. An account can have website starter credits and api_access=false.
      responses:
        '200':
          description: Current account balance and access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditBalance'
          headers:
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            RateLimit:
              $ref: '#/components/headers/RateLimit'
        '401':
          description: Missing, invalid, or revoked API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  type: authentication_error
                  message: 'Missing API key. Pass it as "Authorization: Bearer sk_svgai_..." (create keys at https://svgai.org/dashboard/api).'
        '429':
          description: Account rate limit exceeded. error.retry_after_seconds indicates the retry delay when available.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers:
            Retry-After:
              description: Seconds to wait before retrying, matching error.retry_after_seconds from the existing account limiter.
              schema:
                type: integer
                minimum: 1
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            RateLimit:
              $ref: '#/components/headers/RateLimit'
        '500':
          description: Unexpected server failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers:
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimitPolicy'
            RateLimit:
              $ref: '#/components/headers/RateLimit'
components:
  schemas:
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
    CreditBalance:
      type: object
      required:
      - object
      - credits_remaining
      - subscription_active
      - api_access
      - costs
      - topup_url
      properties:
        object:
          type: string
          const: credit.balance
        credits_remaining:
          type: number
          description: Available account balance.
        subscription_active:
          type: boolean
        api_access:
          type: boolean
          description: Whether the account has paid access for API/MCP generation and vectorization.
        api_access_message:
          type: string
          description: Explanation supplied when paid API access is unavailable.
        costs:
          type: object
          required:
          - generate_classic
          - generate_ultra
          - vectorize
          properties:
            generate_classic:
              type: number
              description: Classic generation cost per variation.
            generate_ultra:
              type: number
              description: Ultra generation cost per variation.
            vectorize:
              type: number
              description: Vectorization cost.
        topup_url:
          type: string
          format: uri
    ApiError:
      type: object
      required:
      - type
      - message
      properties:
        type:
          type: string
          enum:
          - invalid_request
          - authentication_error
          - permission_error
          - insufficient_credits
          - payment_required
          - rate_limit_exceeded
          - not_found
          - generation_error
          - server_error
        message:
          type: string
          description: Human-readable explanation.
        retry_after_seconds:
          type: number
          description: Optional retry delay for rate_limit_exceeded.
        credits_remaining:
          type: number
          description: Optional available balance for insufficient_credits.
        credits_required:
          type: number
          description: Optional required credits for insufficient_credits.
        upgrade_url:
          type: string
          format: uri
          description: Optional upgrade URL for payment_required.
  headers:
    RateLimit:
      description: Optional observed remaining request quota (r) and effective-window hint in seconds (t), calculated when responding. Concurrent requests can change available quota; this is not an acceptance, retry or full-reset guarantee. Omitted when authentication has not reached the limiter, the limiter is unavailable, or the observation is expired or invalid.
      schema:
        type: string
      example: '"generate";r=19;t=60'
    RateLimitPolicy:
      description: Optional observed per-user request-rate policy, shared across the account's API keys. q counts requests, not credits; w is the policy window in seconds. Omitted without a valid unexpired limiter observation. Uses the IETF HTTPAPI RateLimit draft syntax.
      schema:
        type: string
      example: '"generate";q=20;w=60'
  securitySchemes:
    BearerApiKey:
      type: http
      scheme: bearer
      bearerFormat: SVG AI API key
      description: 'Create a key at https://www.svgai.org/dashboard/api. Send Authorization: Bearer YOUR_API_KEY. REST uses API keys; OAuth is available for the separately documented MCP endpoint. Never send credentials in URLs.'
    HeaderApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Alternative API-key header. Use one authentication scheme.
externalDocs:
  description: API and MCP setup, task selection, authentication and errors
  url: https://www.svgai.org/docs