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.
openapi: 3.2.0
info:
title: ScaledThought control plane Accounts API
version: 0.1.0
description: Accounts, keys, budgets, usage, prepaid credits (human-approved top-ups), files, batches and models. Inference is OpenAI-compatible at the base_url returned by signup.
servers:
- url: https://api.us.scaledthought.com
description: us region
tags:
- name: Accounts
paths:
/v1/accounts:
post:
operationId: createAccount
summary: Create an account in this region and get its first key (shown once)
description: 'Limited per network: refused while the client IP (IPv6: its /64) already has 5 accounts that never bought credits (buy credits on one of them or sign in to it instead); also 20 new accounts per network and a regional cap per 24 h. Over a limit: 429 `signup_rate_limited` (the 24 h limits add `retry_after_seconds` and a Retry-After header; the unpaid-accounts limit has `reason: unpaid_accounts_per_network` and no retry time). Creating an account accepts nothing on anyone''s behalf: the human accepts the Terms of Service when they buy credits (on the payment page). The response includes `terms_url`, `terms_version` and `terms_notice` to relay. Optional `source`: the campaign code from a scaledthought.com/go/ link (e.g. `a-rd`), stored on the account and echoed as `source` (null when absent or not a valid code; it never fails the signup). Optional `email`: your human''s email (400 `invalid_email` before anything is created). We email it one confirmation link (7 days); once they click it they own the account and sign in to its dashboard. Account email, and product emails they can unsubscribe from. The response then adds `email_confirmation` (sent | rate_limited | unavailable | failed: it never fails the signup), `owner_email_status` (pending | not_set) and `message_for_human` to relay. Without `email`, ask your human and use PUT /v1/account/email.'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAccountInput'
responses:
'201':
description: Account and key
content:
application/json:
schema:
type: object
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, invalid, revoked or expired (code key_expired) API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'421':
description: Key belongs to another region
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Accounts
components:
schemas:
Error:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
code:
type:
- string
- 'null'
required:
- message
- type
- code
required:
- error
CreateAccountInput:
$schema: https://json-schema.org/draft/2020-12/schema
type: object
properties:
region:
description: Must match the regional API host you are calling
type: string
enum:
- ca
- us
name:
type: string
minLength: 1
maxLength: 120
email:
description: 'Optional: your human''s email. We email it one confirmation link; once they click it they own the account (dashboard sign-in, receipts, notices). Account email, and product emails they can unsubscribe from.'
type: string
maxLength: 320
source:
description: Optional campaign code from the link that brought you here (scaledthought.com/go/<code>), e.g. a-rd. Stored on the account when it is a valid code; anything else is ignored.
type: string
maxLength: 256
ad_click:
description: Optional signed ad-click token from an opt-in landing page (US region only; ignored elsewhere). Never required.
type: string
maxLength: 4096
securitySchemes:
apiKey:
type: http
scheme: bearer
description: st_{region}_{env}_… key
anthropicApiKey:
type: apiKey
in: header
name: x-api-key
description: st_{region}_{env}_… key