← Equity Split Calculator
Your token

Equity Split Calculator API

The split, the share counts, the vesting schedule, the checks and every copy and download run free in the browser and need no API. The API is for the one metered step: send the founders' names, the words typed next to each and a description of what each founder brings, and get back, as JSON, a summary, a 0-5 rating per founder on six factors with a one-sentence reason, and two to four topics the founders should agree on. The page builds this input for you, checks every rating against what you wrote and works out the split from the ratings. Not legal or tax advice.

Base URL: https://api.skillsafe.ai/v1/app-api. Every response is {"data": ...} or {"error": {"code", "message"}}; read error.code and error.message rather than the HTTP status alone.

The task field

This app has one task. Always send "task": "rate".

taskWhat it doesReply
rateReads the founders and your description and rates every founder from 0 to 5 on time, cash, idea, skills, role and risk, with a reason each, and picks topics to agree on.One JSON object

Input fields

Every field is a string; founders and page_facts hold JSON text. task, founders and description are required.

FieldMeaning
task"rate"
foundersJSON list of {name, words}: 2-6 founders, each name exactly as it should come back, and the words typed next to it (may be empty).
descriptionWhat each founder brings: time, money, salary, role, experience, who had the idea (at most 1,500 characters).
page_facts{factors, current_ratings, read_from_words, vesting, option_pool_percent, check_notes}, from the page. May be "{}".
clipped_noteEmpty, or a sentence saying the description was cut.

The reply

job.output.output is text holding one JSON object: summary, founders ([{name, ratings: {time, cash, idea, skills, role, risk}, why}], whole numbers 0-5) and topics ([{id, why}], ids from equal_split, vesting_start, cash_terms, leaver_terms, ip_assignment, roles_decisions, salary_plan, future_founder, acceleration). The reply never states a percentage: to turn ratings into a split, divide each founder's rating by the team's total for that factor, multiply by the factor's weight (by default time 30, cash 15, idea 10, skills 15, role 15, risk 15), add the six parts, divide by the total weight of the factors anyone scores on, and take the option pool off the top. Before using it, check the ratings as the page does: time is hours a week / 8, rounded; cash is 0 for founders who put in no money; the founder with the idea, the CEO and anyone without a salary rate high on idea, role and risk. If the balance ran low, truncated is true and the object may stop early; the page keeps every founder that arrived whole.

Worked example

Input (input.json), from the page's "Three, one part-time" example:

{
  "task": "rate",
  "founders": "[{\"name\":\"Ana\",\"words\":\"Ana - CEO, full-time, came up with the idea\"},{\"name\":\"Ben\",\"words\":\"Ben - CTO, full-time, 10 years building payments software\"},{\"name\":\"Chloe\",\"words\":\"Chloe - designer, 15 hours a week, keeps her day job\"}]",
  "description": "Ana had the idea after running logistics for a grocery chain and works full-time as CEO without a salary. Ben joined a month later as CTO, full-time, with 10 years building payments software; he took a pay cut to a small salary. Chloe designs the app about 15 hours a week and keeps her full-time day job.",
  "page_facts": "{\"factors\":[{\"id\":\"time\",\"name\":\"Time put in\",\"weight\":30},{\"id\":\"cash\",\"name\":\"Cash put in\",\"weight\":15},{\"id\":\"idea\",\"name\":\"Idea and early work\",\"weight\":10},{\"id\":\"skills\",\"name\":\"Skills the company needs\",\"weight\":15},{\"id\":\"role\",\"name\":\"Role and responsibility\",\"weight\":15},{\"id\":\"risk\",\"name\":\"Risk taken\",\"weight\":15}],\"current_ratings\":[{\"name\":\"Ana\",\"ratings\":{\"time\":5,\"cash\":0,\"idea\":5,\"skills\":3,\"role\":5,\"risk\":3}},{\"name\":\"Ben\",\"ratings\":{\"time\":5,\"cash\":0,\"idea\":0,\"skills\":4,\"role\":4,\"risk\":3}},{\"name\":\"Chloe\",\"ratings\":{\"time\":2,\"cash\":0,\"idea\":0,\"skills\":3,\"role\":3,\"risk\":1}}],\"read_from_words\":[{\"name\":\"Ana\",\"full_time\":true,\"had_the_idea\":true,\"ceo\":true,\"no_salary_or_quit_a_job\":true},{\"name\":\"Ben\",\"full_time\":true,\"leads_an_area\":true},{\"name\":\"Chloe\",\"hours_a_week\":15}],\"vesting\":{\"years\":4,\"cliff_months\":12},\"option_pool_percent\":10,\"check_notes\":[\"parttime\"]}",
  "clipped_note": ""
}

Reply:

{"summary":"Ana had the idea and works full-time as CEO without a salary, and Ben works full-time as CTO with 10 years building payments software. Chloe designs the app about 15 hours a week while keeping a full-time day job. Time, the idea, roles and the risk each person takes set the three apart.","founders":[{"name":"Ana","ratings":{"time":5,"cash":0,"idea":5,"skills":3,"role":5,"risk":4},"why":"Ana came up with the idea after running logistics for a grocery chain and works full-time as CEO without a salary."},{"name":"Ben","ratings":{"time":5,"cash":0,"idea":0,"skills":4,"role":4,"risk":3},"why":"Ben joined a month after the idea as full-time CTO, brings 10 years building payments software, and took a pay cut to a small salary."},{"name":"Chloe","ratings":{"time":2,"cash":0,"idea":0,"skills":3,"role":3,"risk":1},"why":"Chloe designs the app about 15 hours a week and keeps a full-time day job."}],"topics":[{"id":"vesting_start","why":"Chloe works about 15 hours a week and Ben joined a month after the idea, so when each person's vesting starts matters."},{"id":"salary_plan","why":"Ana takes no salary while Ben took a pay cut to a small salary, so pay differs between founders."},{"id":"ip_assignment","why":"Chloe designs the app while keeping a full-time day job elsewhere, so it should be clear that the design work belongs to the company."}]}

Errors

HTTPWhat to do
401The token is missing, expired or a guest token on a run. Get a personal token on the token page.
402The balance is below what the run reserves. Top up at skillsafe.ai/account/billing.
400The body is not a JSON object of the fields above, or a required field is missing or empty.
429Wait and retry with the same Idempotency-Key.

Step 1 — a tiny client helper

One function that sends JSON and unwraps the {data, error} envelope.

BASE="https://api.skillsafe.ai/v1/app-api"
TOKEN="paste-your-token-here"   # from https://equity-split-calculator.skillsafe.ai/tokens.html
api() { # api METHOD PATH [JSON-BODY]
  curl -s -X "$1" "$BASE$2" -H "Content-Type: application/json" \
    ${TOKEN:+-H "Authorization: Bearer $TOKEN"} ${3:+--data "$3"}
}

Step 2 — a token

A guest token is enough for /me and /estimate. A run is metered, so it needs your personal token: sign in on the token page and copy it.

# a guest token (enough for /me and /estimate); a run needs your personal token from /tokens.html
TOKEN=$(curl -s -X POST "$BASE/guest" -H "Content-Type: application/json" -d '{"slug":"equity-split-calculator"}' | jq -r '.data.token')

Step 3 — who am I, and my balance

subject_type is guest or user; credits is the balance (1 credit = $0.0001).

api GET /me | jq '.data | {subject_type, credits}' 

Step 4 — price a run for free

/estimate charges nothing and starts no job. hold_credits is the amount reserved while a run is in flight, not the price; the run is charged what it uses.

# input.json: the run input object - {"task": "rate", "founders": "[{\"name\":\"Ana\",\"words\":\"Ana - CEO, full-time, came up with the idea\"},{\"name\":\"Ben\",\"words\":\"Ben - CTO, full-time, 10 years building payments software\"},{\"name\":\"Chloe\",\"words\":\"Chloe - designer, 15 hours a week, keeps her day job\"}]", "description": "Ana had the idea after running logistics for a grocery chain and works full-time as CEO without a salary. Ben joined a month later as CTO, full-time, with 10 years building payments software; he took a pay cut to a small salary. Chloe designs the app about 15 hours a week and keeps her full-time day job.", "page_facts": "{...}", "clipped_note": ""}
api POST /estimate "$(cat input.json)" | jq '.data | {hold_credits, min_credits, model, model_alias, markup_bps, warnings}' 

Step 5 — run it and wait for the job

Send an Idempotency-Key derived from the input: a retry with the same key is never billed twice.

KEY="equity-split-calculator:rate:$(shasum -a 256 input.json | cut -c1-16):a1"
JOB=$(curl -s -X POST "$BASE/run" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: $KEY" --data @input.json | jq -r '.data.job_id')
while :; do
  J=$(api GET "/jobs/$JOB"); S=$(echo "$J" | jq -r '.data.status')
  case "$S" in succeeded|failed|cancelled) break;; esac; sleep 2
done
echo "$J" | jq -r '.data.output.output' > reply.json   # one JSON object: summary, founders, topics
echo "$J" | jq '.data | {charged_credits, truncated}' 

Step 6 — or stream it

/run-stream sends Server-Sent Events while the job runs and the finished job at the end.

# Server-Sent Events: tick/delta events while the job runs, then a final event with the job
curl -N -s -X POST "$BASE/run-stream" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: equity-split-calculator:rate:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json