SciFig Credits API
The Credits API from SciFig — 1 operation(s) for credits.
The Credits API from SciFig — 1 operation(s) for credits.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/scifig-ai:scifig-ai-credits-api"
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.
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: 3.2.0
info:
title: SciFig Credits 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: Credits
paths:
/credits:
get:
summary: Credit balance, plan and limits
security:
- bearer: []
- oauth:
- credits:read
x-required-scopes:
- credits:read
parameters: []
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/json:
schema:
type: object
properties:
granted_scopes:
type: array
items:
type: string
enum:
- images:generate
- images:edit
- images:convert
- charts:generate
- flowcharts:generate
- files:write
- jobs:read
- credits:read
balance:
type: integer
reserved:
type: integer
plan:
type: string
plan_level:
type: integer
limits:
type: object
properties:
concurrent_tasks:
type: integer
tasks_per_hour:
type: integer
top_up_url:
type: string
format: uri
example:
balance: 1950
reserved: 50
plan: starter
plan_level: 1
limits:
concurrent_tasks: 5
tasks_per_hour: 200
top_up_url: https://scifig.ai/pricing?utm_source=api
granted_scopes:
- credits:read
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/Error'
tags:
- Credits
operationId: getCredits
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:
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_…).