{"components":{"schemas":{"DesignRequest":{"properties":{"binder_length":{"description":"Residues in the designed binder (8-200). pxdesign-* protocols only.","type":"integer"},"chains":{"description":"Target chain ids to design against, e.g. 'A' or 'A,B'. pxdesign-* protocols only.","type":"string"},"contig":{"description":"RFdiffusion3 contig string, e.g. 'A1-150,60-80': fixed chain-ranges plus designed-length segments. rfd3-* protocols only.","type":"string"},"hotspots":{"description":"Optional target residues to aim the binder at, e.g. 'A64,A65,A66' (or bare numbers when one chain is named). pxdesign-* protocols only.","type":"string"},"model":{"description":"Design model. Optional: the protocol already implies it; when given, it must match (a mismatch is a 400).","enum":["boltzgen","rfd3","pxdesign","rfd4"],"type":"string"},"name":{"type":"string"},"params":{"description":"BoltzGen: num_designs, budget, fast. RFdiffusion3: num_designs, num_timesteps, seed. PXDesign: num_designs, n_step, seed. RFD4-Proteina: num_designs, recipe, nsteps, seed. Omitted params take the default GET /v1/models advertises (BoltzGen 10 designs, budget 10, fast off; RFdiffusion3 4 designs, 100 diffusion steps; PXDesign 4 designs, 200 diffusion steps; RFD4-Proteina 4 designs, thinking_medium, 60 integration steps). Numeric values outside the advertised range are clamped to the nearest bound; the accepted values are on the job's params.","type":"object"},"protocol":{"enum":["protein-anything","peptide-anything","nanobody-anything","antibody-anything","protein-small_molecule","protein-redesign","rfd3-binder","rfd3-scaffold","rfd3-na-binder","pxdesign-binder","rfd4-binder","rfd4-scaffold"],"type":"string"},"spec":{"description":"BoltzGen protocols only. A YAML list under `entities:` (not predict's `sequences:`); the chain to design has a residue-count range as its sequence. A minimal protein binder:\nentities:\n  - protein:\n      id: A\n      sequence: <target sequence>\n  - protein:\n      id: B\n      sequence: 60..80\nA spec the engine would reject is refused with a 400 at submit.","type":"string"},"structure":{"description":"Target structure: PDB or mmCIF text, or an id the API fetches for you: pdb:1UBQ (an RCSB PDB entry; a bare 4-character id like 1UBQ works too) or afdb:P69905 (the AlphaFold DB model of a UniProt accession). A fetched entry is the whole mmCIF, checked exactly like a paste; the job's `fetched` records it. Required for the rfd3-* protocols (with contig) and the pxdesign-* protocols (with chains and binder_length).","type":"string"}},"type":"object"},"EmbedRequest":{"properties":{"input":{"description":"One FASTA/YAML string (flat {id: sequence}).","type":"string"},"model":{"default":"esmc-600m","enum":["esmc-300m","esmc-600m","esmc-6b","saprot-650m","saprot-1.3b"],"type":"string"},"name":{"type":"string"},"params":{"description":"pool (mean|max|cls), format (npz|parquet), fast. Omitted params take the default GET /v1/models advertises (mean pooling, npz, fast off).","type":"object"},"sequence":{"description":"Single protein sequence (convenience).","type":"string"},"sequences":{"items":{"$ref":"#/components/schemas/Sequence"},"type":"array"}},"type":"object"},"Job":{"properties":{"artifacts":{"description":"Present on a succeeded job read by its id (not in the list), when it has at most 20 files: the same entries as `artifacts` in its results. A job with more files lists them only in its results.","items":{"type":"object"},"type":"array"},"attempt":{"description":"Present only when the job's structure is on its second run, because the box running it stopped answering (hung, or its agent died); its progress started over. A job of several structures carries it on the retried entry of targets. Billed once.","type":"integer"},"created_at":{"format":"date-time","type":["string","null"]},"done":{"type":"integer"},"download":{"description":"Present on a succeeded job read by its id: one shell command that fetches every result file into the current directory, reading the key from `JAPANFOLD_API_KEY`. Past 20 files it fetches and unzips the archive instead.","type":"string"},"email_when_done":{"description":"Present once POST /v1/jobs/{id}/notify has been asked.","type":"boolean"},"error":{"description":"Why the job failed; on a succeeded job, what it could not deliver (see partial).","type":["string","null"]},"fetched":{"description":"Present only when the request named a structure by id: the entry the API fetched, its URL, and the sha256 of the mmCIF text the job ran on, so the result can be reproduced after the entry changes.","items":{"properties":{"id":{"type":"string"},"sha256":{"type":"string"},"url":{"type":"string"}},"type":"object"},"type":"array"},"finished_at":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"kind":{"enum":["predict","design","embed"],"type":"string"},"links":{"type":"object"},"model":{"type":["string","null"]},"name":{"type":"string"},"object":{"const":"job","type":"string"},"partial":{"description":"Present only on a succeeded job that delivered less than it was asked for, because a design shard or a target failed. What did finish is in the results and was billed; error says what was lost.","properties":{"delivered":{"type":"integer"},"requested":{"description":"designs you would get back (the smaller of budget and num_designs), or structures submitted","type":"integer"},"shards":{"type":"integer"},"shards_failed":{"type":"integer"},"unit":{"enum":["designs","structures"],"type":"string"}},"type":"object"},"progress":{"description":"0..1, or null when indeterminate","type":["number","null"]},"protocol":{"type":["string","null"]},"queue":{"description":"Present while any of the job's tasks waits for a chip. Facts, never a time: how long the work ahead takes is not known until it ends. The next free chip goes to the account holding the fewest chips, then the one that used the least in the last hours; an account's own jobs run in the order it sent them.","properties":{"reason":{"description":"On a submit's 429, why: the queue ahead of the submission was longer than the API will hold a request open for, so it was refused rather than admitted late. Nothing is written and nothing is charged. Honour `Retry-After`.","enum":["busy"],"type":"string"}},"type":"object"},"results_ready":{"type":"boolean"},"stage":{"type":["string","null"]},"started_at":{"format":"date-time","type":["string","null"]},"status":{"enum":["queued","running","succeeded","failed","canceled"],"type":"string"},"total":{"type":"integer"},"wait_refused":{"description":"Present only when the call asked to wait and was not held, because every hold on the server was taken or this account already had two jobs held: the body is the job's state right now, not after a wait. Call again after a few seconds.","type":"string"},"waiting_for_device":{"description":"Present and true only while the job has been accepted but no processor is free for it yet. The job is queued, not stalled.","type":"boolean"}},"required":["object","id","kind","status"],"type":"object"},"KeyRequest":{"properties":{"email":{"description":"Where to reach you about the account. Optional.","type":"string"},"name":{"description":"Label for this key. Optional.","type":"string"}},"type":"object"},"PredictRequest":{"properties":{"input":{"description":"One FASTA or YAML input. FASTA headers can be plain names or UniProt headers, on every model: a record whose id the model can't hold (Boltz-2 takes 5 characters, OpenFold3 and OpenBind-0 4, ESMFold-2 16) or that repeats one is named A, B, ... with its type read from the sequence, and the job's `warnings` say which record became which chain.","type":"string"},"model":{"default":"boltz2","enum":["boltz2","esmfold2","esmfold2-fast","openfold3","openbind","rf3","opendde","opendde-abag","af2ig","mol1"],"type":"string"},"name":{"type":"string"},"params":{"description":"Model params: use_msa_server, fast, recycling_steps, sampling_steps, diffusion_samples, output_format, seed, write_pae, use_tfg_guidance. Not every model takes every one, and a param the chosen model cannot honour is a 400 naming the model and the param rather than a value accepted and ignored: fast only on models whose caps list it, use_msa_server only on models with the msa cap, and neither recycling_steps on OpenFold3/OpenBind-0 nor sampling_steps on RoseTTAFold3 (their engine resolves those when it loads the model, not per job). Fast mode is off unless you send fast: true (higher throughput, may be slightly less accurate); the workbench turns it on for you, the API does not. ESMFold-2 is the exception: omitted means fast for it, and fast: false runs its normal mode. recycling_steps goes to 10, or 20 on ESMFold-2, where it is Biohub's num_loops (N recycles after a first pass, N+1 trunk passes). Omitted params take the default GET /v1/models advertises for that model, and an explicit null means omitted. The two exceptions are recycling_steps and sampling_steps: leave them out and each model uses its own recommended value (recycling: Boltz-2, OpenFold3, OpenBind-0 and AF2-IG 3, Mol-1 20, the others 10; diffusion steps: ESMFold-2 100, RoseTTAFold3 50, the others 200). A number outside the advertised range is clamped to the nearest bound; a value that is not a number at all is a 400. The accepted values are on the job's params, including the seed the fold ran with (0 unless you send one). write_pae, on a model whose caps list pae, adds <name>_pae.npz to the artifacts: the predicted aligned error matrix of the top-ranked structure, which is what Adaptyv's ipSAE pipeline reads.","type":"object"},"sequence":{"description":"Single protein chain (convenience).","type":"string"},"targets":{"items":{"$ref":"#/components/schemas/Target"},"type":"array"}},"type":"object"},"Problem":{"description":"RFC 9457 problem detail.","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"reason":{"description":"On a 429, which limit it was. `submit_rate` you, `submit_rate_network` your network, `account_backlog` your own earlier jobs, `busy` the fleet: the queue ahead of the submission was longer than the API will hold a request open for, so it was refused rather than admitted late. Nothing is charged for a refusal. Honour `Retry-After` for all four.","enum":["submit_rate","submit_rate_network","account_backlog","busy"],"type":"string"},"status":{"type":"integer"},"title":{"type":"string"},"type":{"type":"string"}},"type":"object"},"Sequence":{"properties":{"id":{"type":"string"},"sequence":{"description":"A protein sequence.","type":"string"}},"required":["sequence"],"type":"object"},"Target":{"properties":{"content":{"description":"FASTA or YAML input. FASTA headers can be plain names or UniProt headers, on every model: a record whose id the model can't hold (Boltz-2 takes 5 characters, OpenFold3 and OpenBind-0 4, ESMFold-2 16) or that repeats one is named A, B, ... with its type read from the sequence, and the job's `warnings` say which record became which chain.","type":"string"},"name":{"type":"string"}},"required":["content"],"type":"object"},"Usage":{"properties":{"amount":{"description":"The same charge in whole `currency` units (dollars), ready to read.","type":"number"},"amount_micros":{"description":"Millionths of one unit of `currency` (US dollars): 1000000 is $1.00. Exact; add these, not `amount`.","type":"integer"},"billable_s":{"type":"number"},"closed_at":{"format":"date-time","type":"string"},"currency":{"enum":["usd"],"type":"string"},"excluded_s":{"type":"number"},"job":{"type":"string"},"load_s":{"type":"number"},"model":{"type":"string"},"status":{"type":"string"},"surface":{"type":"string"},"targets":{"items":{"properties":{"amount":{"description":"The same charge in whole `currency` units (dollars), ready to read.","type":"number"},"amount_micros":{"description":"Millionths of one unit of `currency` (US dollars): 1000000 is $1.00. Exact; add these, not `amount`.","type":"integer"},"billable_s":{"type":"number"},"id":{"type":"string"}},"type":"object"},"type":"array"}},"type":"object"},"UsageList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Usage"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]},"summary":{"properties":{"amount":{"description":"The same charge in whole `currency` units (dollars), ready to read.","type":"number"},"amount_micros":{"description":"Millionths of one unit of `currency` (US dollars): 1000000 is $1.00. Exact; add these, not `amount`.","type":"integer"},"billable_s":{"type":"number"},"by_model":{"additionalProperties":{"properties":{"amount":{"description":"The same charge in whole `currency` units (dollars), ready to read.","type":"number"},"amount_micros":{"description":"Millionths of one unit of `currency` (US dollars): 1000000 is $1.00. Exact; add these, not `amount`.","type":"integer"},"billable_s":{"type":"number"},"jobs":{"type":"integer"}},"type":"object"},"type":"object"},"by_surface":{"additionalProperties":{"properties":{"amount":{"description":"The same charge in whole `currency` units (dollars), ready to read.","type":"number"},"amount_micros":{"description":"Millionths of one unit of `currency` (US dollars): 1000000 is $1.00. Exact; add these, not `amount`.","type":"integer"},"billable_s":{"type":"number"},"jobs":{"type":"integer"}},"type":"object"},"type":"object"},"currency":{"enum":["usd"],"type":"string"},"jobs":{"type":"integer"}},"type":"object"}},"type":"object"}},"securitySchemes":{"bearerAuth":{"description":"API key: `Authorization: Bearer jf_live_...`","scheme":"bearer","type":"http"}}},"info":{"description":"Async job API for protein/complex structure prediction (Boltz-2, ESMFold-2, OpenFold3, OpenBind-0, RoseTTAFold3, OpenDDE, Mol-1), scoring a designed binder against its target (AF2-IG), binder design (BoltzGen, RFdiffusion3, PXDesign, RFD4-Proteina) and protein embeddings (ESMC, SaProt). Submit a job, poll its status, then download structures, scores and vectors. Every route needs an account: send its key as `Authorization: Bearer <key>`. Opening one takes an email address and comes with $100 of credit. A run is billed for the chip time it holds, at one rate, and nothing quotes a price before it runs. Every amount is in US dollars. See `GET /v1/credits`.\n\n**Input caps.** `GET /v1/models` reports every cap, including each model's `max_residues`: the largest structure the engine is measured to fold with that model on this hardware, or 1024 residues where nothing has been measured. An over-size input is rejected with a 400 naming the model and its ceiling, never accepted and then killed mid-run. A structure above 1024 residues gets a longer runtime limit, growing with the cube of its size.\n\n**Measured wall.** Each model also reports `measured_wall`, the largest structure it has actually run on this hardware. It can sit below `max_residues`: a wall that moves with alignment depth or is not monotonic in residue count cannot be a ceiling, so those sizes are accepted and tried rather than refused. A job above the wall is submitted with a `warnings` entry saying so, and if it does fail on device the job's `error` names the wall and the models that have run that size.\n\n**What a run costs.** The chip time it holds, at the one rate in `GET /v1/credits`. There is no estimate, no reservation and no cap on how much work one submission may ask for: your balance is the bound. A submission is refused with a 402 when the balance is empty, and with `.../errors/submission-too-large` only when its output would exceed 640 MB, which the disk imposes.\n\n**Result retention.** Results are not durable storage. A finished job and its result files are kept for 30 days and then deleted; its id then returns 404 like any unknown id. Download what you need rather than treating a job id as a permanent link.\n\n**Waiting for a job.** `GET /v1/jobs/{job_id}?wait=60` is held open until the job finishes or 60 s pass, so a loop on it never needs a sleep. A create request may ask for the same with the header `Prefer: wait=60`. Either is a preference, not a guarantee (RFC 7240): when too many callers are already being held the request returns the job's current state immediately. `Preference-Applied: wait` on the response means the hold happened; its absence means poll again.","summary":"Biomolecular structure prediction and binder design on Tenstorrent.","termsOfService":"https://www.aiand.com/legal/inference-terms-of-service","title":"JapanFold API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/v1/account":{"delete":{"description":"Needs a signed-in session. What survives is the append-only money record under the opaque account id, which names nobody once the identity is gone.","operationId":"deleteAccount","responses":{"200":{"description":"Closed"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"}},"summary":"Close the account: identity, keys and every session.","tags":["account"]},"get":{"description":"An account is opened with $100 of credit and keeps whatever you add to it. `balance` is in US dollars, the same unit every price on this API is quoted in; `balance_micros` is the same in millionths of a dollar. What was spent is GET /v1/usage.","operationId":"getAccount","responses":{"200":{"description":"Account"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"}},"summary":"Your balance, rate and keys.","tags":["account"]}},"/v1/account/email":{"post":{"description":"Ask for the code with POST /v1/auth/start on the new address, then send it here. Needs a signed-in session.","operationId":"changeEmail","requestBody":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string"},"email":{"type":"string"}},"required":["email","code"],"type":"object"}}},"required":true},"responses":{"200":{"description":"Account"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"}},"summary":"Move the account to a new address, proved by a code mailed to it.","tags":["account"]}},"/v1/account/profile":{"post":{"description":"Needs a signed-in session. Both fields are what an invoice is addressed to.","operationId":"setProfile","requestBody":{"content":{"application/json":{"schema":{"properties":{"company":{"type":"string"},"full_name":{"type":"string"}},"required":["full_name","company"],"type":"object"}}},"required":true},"responses":{"200":{"description":"Account"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"}},"summary":"Set the account's full name and company.","tags":["account"]}},"/v1/auth/signout":{"post":{"operationId":"authSignout","responses":{"200":{"description":"Signed out"}},"security":[],"summary":"End this browser's session.","tags":["auth"]}},"/v1/auth/start":{"post":{"description":"Answers the same whether or not the address is known. Asked again within a minute, it mails nothing and answers `sent: false`: the code already mailed is still the live one.","operationId":"authStart","requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"lang":{"description":"Language of the mail.","type":"string"}},"required":["email"],"type":"object"}}},"required":true},"responses":{"200":{"description":"Code sent"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"429":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Over a rate limit, or the queue is too busy to admit this in time"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"No Galaxy serves this model right now"}},"security":[],"summary":"Mail a one-time sign-in code. Also the sign-up form.","tags":["auth"]}},"/v1/auth/verify":{"post":{"description":"Sets the session cookie. `full_name` and `company` are optional and only a statement needs them. `opened` is true when this answer opened the account.","operationId":"authVerify","requestBody":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string"},"company":{"type":"string"},"email":{"type":"string"},"full_name":{"type":"string"}},"required":["email","code"],"type":"object"}}},"required":true},"responses":{"200":{"description":"Signed in"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"429":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Over a rate limit, or the queue is too busy to admit this in time"}},"security":[],"summary":"Answer the code: sign in, or open an account with its $100.","tags":["auth"]}},"/v1/catalog":{"get":{"description":"A family card carries the strictest ceiling of its family. For one checkpoint's own caps read GET /v1/models, which stays flat.","operationId":"getCatalog","responses":{"200":{"description":"Catalog"}},"security":[],"summary":"The workbench's model picker and the price: the same models as GET /v1/models, grouped into family cards, and the price per processor-hour.","tags":["discovery"]}},"/v1/cluster":{"get":{"description":"`online_agents` counts Galaxies seen in the last 90 s; `chips`, `busy`, `out_of_service` and `accounts_waiting` are the same counts a waiting job's `queue.fleet` carries; `jobs` is `{queued, running}` service-wide. No names and no hosts. A job submitted while none is online is still admitted and waits in the queue.","operationId":"getCluster","responses":{"200":{"description":"Fleet summary"}},"summary":"How many Galaxies are asking for work, their chips, and how many jobs are queued and running.","tags":["discovery"]}},"/v1/contact":{"post":{"operationId":"contact","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":true},"responses":{"200":{"description":"Received"},"400":{"description":"Invalid request"},"429":{"description":"Too many requests"}},"security":[],"summary":"Send the team a message.","tags":["contact"]}},"/v1/credits":{"get":{"description":"`balance` is in `currency`, which is `usd`, and every `*_micros` is millionths of a dollar; `processor_seconds_left` is that balance as processor time at the current rate. `history` is this account's entries, newest first, the sign-up credit among them. `billing_url` is the page where a person adds funds; hand it to them when the balance is too low.","operationId":"getCredits","responses":{"200":{"description":"Balance, rate and entries"}},"summary":"Balance, rate and recent entries.","tags":["credits"]}},"/v1/credits/checkout":{"post":{"description":"Send `{\"amount\": 25.00}`, in US dollars. Returns `url`, which the caller opens to pay. Nothing is added here: the balance moves only when the processor's signed webhook arrives, so poll `GET /v1/credits` afterwards.","operationId":"createCheckout","requestBody":{"content":{"application/json":{"schema":{"properties":{"amount":{"type":"number"}},"required":["amount"],"type":"object"}}},"required":true},"responses":{"201":{"description":"Checkout session"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"}},"summary":"Start a top-up and get a hosted checkout URL.","tags":["credits"]}},"/v1/credits/redeem":{"post":{"description":"Send `{\"code\": \"JF-XXXX-XXXX-XXXX-XXXX\"}`. A code works once per account. Returns the `entry` it posted and the account's balance and `rate` after it; a discount applies to runs charged from then on, never to one already charged.","operationId":"redeemCode","requestBody":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string"}},"required":["code"],"type":"object"}}},"required":true},"responses":{"201":{"description":"Redeemed"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Conflict"},"429":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Over a rate limit, or the queue is too busy to admit this in time"}},"summary":"Redeem a code for credit, a discount, or both.","tags":["credits"]}},"/v1/credits/webhook":{"post":{"description":"Authenticated by the `Stripe-Signature` header over the raw body, not by an API key. Documented because it is a public route, not because anyone else should call it.","operationId":"paymentWebhook","responses":{"200":{"description":"Applied, or already applied"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"}},"security":[],"summary":"The payment processor's callback. Not for customers.","tags":["credits"]}},"/v1/designs":{"post":{"description":"The protocol picks the design model: the six boltzgen protocols take a `spec` (YAML); rfd3-* and rfd4-* take `structure` + `contig`; pxdesign-* takes `structure` + `chains` + `binder_length`. An explicit `model` is optional but must match the protocol's model when given.","operationId":"createDesign","parameters":[{"description":"Resend a submit with the same key and body to get the first job back instead of a second one to pay for. The same key with a different body is a 422. A key names its job for 24 hours; after that the same key starts a new job. Generate each new submission's key with python3 -c 'import uuid; print(uuid.uuid4())' (uuidgen is missing on many hosts); do not write one yourself.","in":"header","name":"Idempotency-Key","schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}},"description":"Job"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"402":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Insufficient balance: what the run would cost, and where to add funds"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Idempotency-Key already used with a different body"},"429":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Over a rate limit, or the queue is too busy to admit this in time"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"No Galaxy serves this model right now"}},"summary":"Design binders/proteins against a target (BoltzGen, RFdiffusion3, PXDesign or RFD4-Proteina).","tags":["designs"]}},"/v1/embeddings":{"post":{"description":"Provide `sequence` (single), `sequences` (a list), or `input` (one fasta/yaml blob). No structure, no MSA, only the LM trunk. Returns a job to poll.","operationId":"createEmbedding","parameters":[{"description":"Resend a submit with the same key and body to get the first job back instead of a second one to pay for. The same key with a different body is a 422. A key names its job for 24 hours; after that the same key starts a new job. Generate each new submission's key with python3 -c 'import uuid; print(uuid.uuid4())' (uuidgen is missing on many hosts); do not write one yourself.","in":"header","name":"Idempotency-Key","schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}},"description":"Job"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"402":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Insufficient balance: what the run would cost, and where to add funds"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Idempotency-Key already used with a different body"},"429":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Over a rate limit, or the queue is too busy to admit this in time"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"No Galaxy serves this model right now"}},"summary":"Compute protein-language-model embeddings for protein sequences.","tags":["embeddings"]}},"/v1/examples/{example_id}":{"get":{"description":"GET /v1/catalog lists the examples without their bodies: three design examples share one 86 kB structure, and carrying them made the catalog 325 kB for a page that has not been clicked yet. An example listed with a `contentFile` or a `builder.structureFile` has its body here, under the same `content` / `builder.structure` keys the catalog used to carry.","operationId":"getExample","parameters":[{"description":"The `id` of an example from GET /v1/catalog.","in":"path","name":"example_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The example"},"404":{"description":"No example with that id"}},"security":[],"summary":"One worked example, with its pasted structure.","tags":["discovery"]}},"/v1/health":{"get":{"description":"`store` counts the rows the service can read, so a service that cannot reach its database answers 503 `degraded` instead of looking healthy. `GET /health` answers the same. `GET /` names this spec, the agent guide (`guide`) and `llms_txt`.","operationId":"getHealth","responses":{"200":{"description":"OK"},"503":{"description":"The store is unreadable"}},"security":[],"summary":"Liveness, API version, the commit this service was built from, and the row count of each table in its store.","tags":["discovery"]}},"/v1/invoices":{"get":{"description":"Refused with 400 and `profile_required: true` while the account has no name and company: set them with POST /v1/account/profile.","operationId":"getInvoice","parameters":[{"description":"First day, YYYY-MM-DD (inclusive).","in":"query","name":"from","schema":{"type":"string"}},{"description":"Last day, YYYY-MM-DD (inclusive).","in":"query","name":"to","schema":{"type":"string"}},{"description":"Unix epoch or ISO 8601 instant; wins over `from`.","in":"query","name":"since","schema":{"type":"string"}},{"description":"Unix epoch or ISO 8601 instant; wins over `to`.","in":"query","name":"until","schema":{"type":"string"}},{"in":"query","name":"lang","schema":{"default":"en","type":"string"}}],"responses":{"200":{"content":{"text/html":{}},"description":"Statement"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"}},"security":[{"bearerAuth":[]}],"summary":"A statement for a period, addressed to the account's name and company.","tags":["usage"]}},"/v1/jobs":{"get":{"operationId":"listJobs","parameters":[{"in":"query","name":"limit","schema":{"default":20,"maximum":100,"type":"integer"}},{"in":"query","name":"cursor","schema":{"type":"string"}},{"description":"Only jobs in this state, e.g. `failed` to find what went wrong.","in":"query","name":"status","schema":{"enum":["queued","running","succeeded","failed","canceled"],"type":"string"}}],"responses":{"200":{"description":"Job list"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"}},"security":[{"bearerAuth":[]}],"summary":"List your jobs (paginated).","tags":["jobs"]}},"/v1/jobs/{job_id}":{"delete":{"description":"A running job cannot be deleted: it is canceled instead and answers 409, and the delete succeeds once the job reads `canceled`.","operationId":"deleteJob","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Not found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Conflict"}},"summary":"Delete a job and its data.","tags":["jobs"]},"get":{"description":"With `wait`, the request is held open until the job leaves `queued`/`running` or `wait` seconds pass, whichever is first, and the body is the same job resource either way. Loop on it instead of sleeping: each call returns the moment the job is done. One account is held on two jobs at a time; past that, or when too many callers are already held, the job's current state comes back at once with `Retry-After`; `Preference-Applied: wait` means the hold happened.","operationId":"getJob","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"string"}},{"description":"Seconds to hold the request for the job to finish (0-60; larger values are capped at 60).","in":"query","name":"wait","required":false,"schema":{"maximum":60,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}},"description":"Job"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Not found"}},"summary":"A job's status; with `?wait=60`, held until it finishes.","tags":["jobs"]}},"/v1/jobs/{job_id}/archive":{"get":{"description":"Streamed as it is built, so there is no Content-Length and no progress bar. The zip holds the files the job has right now.","operationId":"getArchive","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/zip":{}},"description":"Zip"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Not found"},"429":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Over a rate limit, or the queue is too busy to admit this in time"}},"summary":"Download all results as a zip bundle.","tags":["jobs"]}},"/v1/jobs/{job_id}/artifacts/{path}":{"get":{"description":"With an API key, a file up to 16 MiB (every result file so far) comes back directly as 200. A larger one, or a request from a signed-in browser, answers 302 with a short-lived link to the object store, good for a few minutes and for that one file. Follow redirects and use `curl -fL -H \"Authorization: Bearer $KEY\" -o FILE URL`; without -L the saved file is a one-line text note naming the link. Send Accept: application/json to be handed the link instead of redirected to it, which is what a page in a browser needs: a cross-origin request redirected on to a third origin arrives at storage with no origin and is refused.","operationId":"getArtifact","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{},"application/octet-stream":{},"chemical/x-cif":{},"chemical/x-pdb":{}},"description":"The file itself: up to 16 MiB for an API-key caller, or any file the store cannot link to."},"302":{"content":{"text/plain":{"schema":{"type":"string"}}},"description":"Redirect to a short-lived download link. The body is a one-line text/plain note with the same link.","headers":{"Location":{"schema":{"type":"string"}}}},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Not found"},"429":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Over a rate limit, or the queue is too busy to admit this in time"}},"summary":"Download one result file (structure CIF/PDB, or embedding npz/parquet/manifest).","tags":["jobs"]}},"/v1/jobs/{job_id}/cancel":{"post":{"description":"A queued job ends at once. A running job ends when its run has stopped, usually a few seconds later, and the request holds up to 15 s for that. The answer is the job's state after the hold: `status` and `finished_at` once it has ended, or `running` with a `detail` naming the `?wait=` call that returns when it has. `canceled` is false for a job that had already ended.","operationId":"cancelJob","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"canceled":{"type":"boolean"},"detail":{"type":"string"},"finished_at":{"format":"date-time","nullable":true,"type":"string"},"id":{"type":"string"},"status":{"enum":["queued","running","succeeded","failed","canceled"],"type":"string"}},"type":"object"}}},"description":"The job after the cancel"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Not found"}},"summary":"Cancel a running/queued job.","tags":["jobs"],"x-mcp-annotations":{"destructiveHint":true,"idempotentHint":true}}},"/v1/jobs/{job_id}/input":{"get":{"description":"The job's `params` and its inputs as admitted: sequences, ligands, structures and design contigs. Read it beside a failed job's `error` to see which chain or residue it names.","operationId":"getInput","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"id":{"type":"string"},"input":{"type":"object"},"kind":{"type":"string"},"model":{"type":["string","null"]},"object":{"enum":["job_input"],"type":"string"},"params":{"type":"object"},"protocol":{"type":["string","null"]}},"type":"object"}}},"description":"The job's input"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Not found"}},"summary":"What the job was submitted with.","tags":["jobs"]}},"/v1/jobs/{job_id}/logs":{"get":{"operationId":"getLogs","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"text/plain":{}},"description":"Log"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Not found"}},"summary":"Plain-text run log.","tags":["jobs"]}},"/v1/jobs/{job_id}/notify":{"post":{"description":"One mail, to the account's own address, when the job succeeds or fails; none if it is cancelled. Body `{\"lang\": \"en\"|\"ja\"}`, optional. The job then carries `email_when_done: true`. 409 when the account has no email address or the job has already ended.","operationId":"notifyJob","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Asked; `email` is the address, masked"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Not found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Conflict"}},"summary":"Email the signed-in account once the job ends.","tags":["jobs"]}},"/v1/jobs/{job_id}/results":{"get":{"operationId":"getResults","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Results manifest"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Not found"}},"summary":"List downloadable artifacts and scores once ready.","tags":["jobs"]}},"/v1/jobs/{job_id}/usage":{"get":{"description":"Answers as soon as the job has ended. A job canceled before it started, or one that failed, has a record of 0. A queued or running job answers 404 with its status; `GET /v1/jobs/{job_id}?wait=60` returns when it ends.","operationId":"getJobUsage","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}},"description":"Usage record"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Not found"}},"summary":"One job's usage record: the lease intervals billed, what was excluded, and each target's share of the charge (`targets[].amount_micros`, summing to `amount_micros`).","tags":["usage"]}},"/v1/keys":{"post":{"description":"Needs a session or an existing key. The key is shown once: only its hash is stored.","operationId":"createKey","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequest"}}},"required":true},"responses":{"201":{"description":"The account and its new key"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"}},"summary":"Issue an API key for your account.","tags":["account"]}},"/v1/keys/{hash_prefix}":{"delete":{"description":"`hash_prefix` is the non-secret prefix GET /v1/account lists per key. Scoped to the caller's own account.","operationId":"revokeKey","parameters":[{"in":"path","name":"hash_prefix","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Revoked"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Not found"}},"summary":"Switch off one of this account's keys.","tags":["account"]},"patch":{"description":"Changes the label only; the key keeps working. Scoped to the caller's own account.","operationId":"renameKey","parameters":[{"in":"path","name":"hash_prefix","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"description":"The new label.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"description":"The account, with the key renamed"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Not found"}},"summary":"Rename one of this account's keys.","tags":["account"]}},"/v1/models":{"get":{"operationId":"listModels","responses":{"200":{"description":"Catalog"}},"security":[],"summary":"Available models, protocols, parameters and limits.","tags":["discovery"]}},"/v1/predictions":{"post":{"description":"Provide `sequence` (single chain), `input` (one fasta/yaml string), or `targets` (a list). Returns a job to poll.","operationId":"createPrediction","parameters":[{"description":"Resend a submit with the same key and body to get the first job back instead of a second one to pay for. The same key with a different body is a 422. A key names its job for 24 hours; after that the same key starts a new job. Generate each new submission's key with python3 -c 'import uuid; print(uuid.uuid4())' (uuidgen is missing on many hosts); do not write one yourself.","in":"header","name":"Idempotency-Key","schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}},"description":"Job"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"},"402":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Insufficient balance: what the run would cost, and where to add funds"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Idempotency-Key already used with a different body"},"429":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Over a rate limit, or the queue is too busy to admit this in time"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"No Galaxy serves this model right now"}},"summary":"Predict the 3D structure (and affinity) of a protein/complex.","tags":["predictions"]}},"/v1/usage":{"get":{"description":"What you are billed for is chip-seconds: for every target of every job, how long a processor was actually leased to it. Time spent queueing, targets that failed, retries we had to make and jobs our watchdog stopped are reported in `excluded_s` and are not billed. Nor is a chip that stayed leased longer than the work that produced your result: each target is capped at the runtime the engine itself measured, plus the time the chip spent loading the model when it did not already have it. That load is billed, because the chip was leased to you while it ran, and each record says how much of `billable_s` it was in `load_s`. Each record carries both numbers per target, the intervals and that runtime, so every line can be rechecked by hand.\n\n`summary` totals the rows in the window (`from`/`to`, not the page): `amount` is what they cost in `currency` (always `usd`), `amount_micros` the same in millionths of a dollar, and `by_model` and `by_surface` split it, each adding up to the total. So \"what did I spend last week\" is `summary.amount` with `from` set a week back.","operationId":"listUsage","parameters":[{"description":"First day, YYYY-MM-DD (inclusive).","in":"query","name":"from","schema":{"type":"string"}},{"description":"Last day, YYYY-MM-DD (inclusive).","in":"query","name":"to","schema":{"type":"string"}},{"description":"Unix epoch or ISO 8601 instant; wins over `from`.","in":"query","name":"since","schema":{"type":"string"}},{"description":"Unix epoch or ISO 8601 instant; wins over `to`.","in":"query","name":"until","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"default":20,"maximum":100,"type":"integer"}},{"in":"query","name":"cursor","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageList"}}},"description":"Usage list with an account summary"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"}},"security":[{"bearerAuth":[]}],"summary":"What your account spent, in dollars and chip-seconds, by model.","tags":["usage"]}},"/v1/usage.csv":{"get":{"operationId":"getUsageCsv","parameters":[{"description":"First day, YYYY-MM-DD (inclusive).","in":"query","name":"from","schema":{"type":"string"}},{"description":"Last day, YYYY-MM-DD (inclusive).","in":"query","name":"to","schema":{"type":"string"}},{"description":"Unix epoch or ISO 8601 instant; wins over `from`.","in":"query","name":"since","schema":{"type":"string"}},{"description":"Unix epoch or ISO 8601 instant; wins over `to`.","in":"query","name":"until","schema":{"type":"string"}}],"responses":{"200":{"content":{"text/csv":{}},"description":"CSV"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Invalid request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Unauthorized"}},"security":[{"bearerAuth":[]}],"summary":"The same billed rows as GET /v1/usage, as a CSV file.","tags":["usage"]}}},"security":[{"bearerAuth":[]}],"servers":[{"url":"https://api.japanfold.aiand.com"},{"url":"http://localhost:8080"}],"tags":[{"name":"discovery"},{"name":"predictions"},{"name":"designs"},{"name":"embeddings"},{"name":"jobs"},{"name":"usage"},{"name":"credits"},{"name":"account"},{"name":"auth"},{"name":"contact"}]}
