{"name":"Polyfork API","read_this_first":"https:\/\/polyfork.dev\/prompt.txt","read_this_first_note":"the catalogue as working instructions: how to pick assets that go together, assemble a kit on its grid, animate what is riggable, and what a key does and does not unlock. One fetch, no SDK.","docs":"https:\/\/polyfork.dev\/llms.txt","auth":"Authorization: Bearer <key>; create keys at https:\/\/polyfork.dev\/account","endpoints":{"GET \/api\/assets":"browse published assets; filters: q, class (prop|building|vehicle|character|animal|ultra|attachment|terrain|hand), free (0|1), kit, ik (1|legs|arm: models that SOLVE rather than pose), max_triangles, min_triangles, sort (latest|tris), page, per_page (max 100), fields=compact for shortlisting rows. q is word-matched and scored: `coverage` says whether anything actually answers it and `strong_matches` counts the rows that do. max_price_usd is deprecated: there are no per-asset prices (every low poly model is free, the HD editions come with Pro)","GET \/api\/assets\/{id}":"one asset with full metadata and download URLs","GET \/api\/assets\/{id}\/matching":"assets that go WITH this one: same kit, then shared palette, then compatible scale","GET \/api\/assets\/{id}\/variant?want=...":"plain words to a ready createAsset() call, plus a glb URL and a glb_note saying whether that file actually shows the variant","GET \/api\/kits":"kits with their published part counts and a status: \"published\" (every planned part is built) or \"filling-up\" (still being built; its published parts are usable today). No kit is sold as a bundle: price_usd is null and for_sale false on all of them, and every part is free. Read `status` rather than the counts to tell the two apart: a finished kit can still gain a part that is in review, so published does not mean published == planned","GET \/api\/kits\/{id}":"one kit with its published parts \u2014 including a kit that is still filling up. Also `look` (the shader the kit is presented under, shipped in its download) and `terrain` (its own ground program and the knobs it was composed at) where it has them: a scene built without those is the same parts on a flat floor","GET \/api\/terrain":"the kits that have a procedural terrain program for their own ground (the others stand on floor tiles or flat turf), and the published terrain assets","GET \/api\/terrain\/{id}":"with a KIT id: the ground its composed place stands on, in place.group's coordinates (what buildKit builds; ?setting=1 for buildKit({ setting: true })). With a terrain ASSET id: that program alone, in the coordinates of the mesh a bare createAsset() builds, so they can be used as they are; ?edges=tile for the tiled build instead, and origin_offset says what separates the two. AT WHAT HEIGHT DO I PLACE THIS: ?at=x,z;x,z returns the ground height and slope under each point \u2014 set position.y to it and the object rests on the terrain. flat_areas are level building sites, largest first, each with its own y. ?scatter=n gives n placement points already on the ground for rocks and trees. ?profile=x0,z0,x1,z1 gives the ground along a road or wall (heights, grade, where it is under water). ?span=1..4 sizes the block, ?flatten=0..1 clears a level area in the middle for a settlement. World coordinates throughout","GET \/api\/me":"the key's account: email, plan, owned items. Works WITHOUT a key too, returning your anonymous tier and remaining bake quota, so a client can warn before a limit","POST \/api\/demand":"report something a user wanted that we do not have: {\"need\": \"...\", \"email\": \"...\"}","GET \/api\/checkout":"the plans on sale and what each costs THIS caller (no key needed to ask)","POST \/api\/checkout":"buy a plan: {\"plan\": \"pro_month|pro_year|lifetime\"} returns a Stripe Checkout link and the exact amount. It never charges anything itself: the payment happens on that page, with the user's approval. With a key the plan goes on that account; with none it goes to the email the payer gives Stripe and an account is made for it. Then {\"confirm\": \"<checkout_id>\"} verifies the payment, activates the plan on the spot and, for a new account, returns its API key once"},"conventions":{"up_axis":"y","units":"meters, real-world scale (a barrel is about 0.9m, a car about 4.2m)","origin":"the model rests ON y=0 (minY is 0) and is centred on x and z, so placing it is setting position to the ground point \u2014 no bounding-box maths, no sinking. TWO EXCEPTIONS, both built that way on purpose and both flagged: assets fixed to a wall or ceiling are built at installed height (a fire-exit sign at y=2.2), and ground tiles and terrains sit BELOW the origin so their top surface lands on y=0. Every list row carries origin_y \u2014 the measured minY, 0 for the rule and non-zero for an exception \u2014 and the detail row carries `origin` as a sentence. In all three cases you still place at y=0 and never lift by the bounding box; the number is there so you can tell what standing something ON it means","physics":"full rows carry mass_kg (estimated real-world weight, null until measured); the detail row carries `physics` (body dynamic|static, material, measured dimensions and volume, collision approximation in UsdPhysics terms and a colliders_url of convex hull points) and `simready_metadata` (the same facts under NVIDIA SimReady property names, usd_dimensions Z up). For the default knob settings","facing":"the front of the object faces +Z","handedness":"right-handed, three.js convention; GLB and FBX exports keep it","materials":"flat-shaded vertex colours in the module; exports bake the palette into NAMED materials, named after the asset's own colour knobs, so a model never arrives white","determinism":"same knob values always produce the same geometry; no Math.random anywhere","formats":["mjs","glb","fbx","usdz","usda","obj"],"animation":"read `clips` on the asset detail: it lists the clips its GLB actually carries. By kind: animals carry their own (Idle, Walk, Run on most); some moving props carry one looping clip named \"tick\"; most rigged props carry NO clip, only named pivots you turn yourself (rigged_parts); characters carry a skeleton and no clip, and the free clips play on them via https:\/\/polyfork.dev\/cdn\/clips.mjs. Clips travel in the GLB and FBX; USDZ, USDA and OBJ carry the mesh only, so every asset also reads correctly as a single still frame","react_three_fiber":"R3F takes any Object3D through <primitive>, and createAsset() returns a ready THREE.Group synchronously, so there is no loader, useGLTF or Suspense. Knobs become props: const obj = useMemo(() => createAsset(props), [JSON.stringify(props)]); return <primitive object={obj} \/>. Import the .mjs as a local file, not a https:\/\/ URL, because bundlers do not resolve remote imports. Guide: https:\/\/polyfork.dev\/react-three-fiber","kit_coherence":"parts of one kit share a palette, a scale and a grid module, so they can be placed together without a coherence pass","licence":"Free low poly models: the mesh files (GLB, FBX, USD, OBJ) are CC BY 4.0 or the Polyfork licence, your choice. Under CC BY you may use, share, re-upload and sell them, commercial included, with the credit line from the asset's `credit` field. Under the Polyfork licence no credit is needed but the files may not be redistributed. The .mjs source and the HD editions are under the Polyfork licence only: commercial use, modify freely, no attribution; do not resell or redistribute them, or use them to build or train a COMMERCIAL 3D asset generator (personal experiments, research and learning are fine). Breaking those terms can end your licence and your access, without a refund. Full terms: https:\/\/polyfork.dev\/licensing"},"every asset carries":"has_rig (animatable parts), remixable (createAsset knobs), has_night (lights up after dark), has_ik (boolean) and ik_type (\"legs\", \"arm\" or null: the model is solvable, so its feet can find your ground or its tip can be aimed. The measured gait\/arm block is on the detail endpoint; the runtime is https:\/\/polyfork.dev\/cdn\/walk.mjs)","the ground":"natural ground is not modelled as parts; every kit generates it. Ask \/api\/terrain for level sites before inventing coordinates for a town, and stay seam_margin_m clear of the bounds or you are building across a join between two kits","scenes":"https:\/\/polyfork.dev\/scene?ids=a,b,c renders a composed scene as a shareable page","downloads":"every low poly model is free (since 2026-10-25): public CDN URLs, no auth; packaged zips and whole kits on \/dl with a free account's Bearer key. HD editions (`hd` on a row) are Pro: \/dl with a Pro key.","if the asset does not exist":"https:\/\/polyfork.dev\/steer builds a 60-part kit of your own theme. On a paid plan a planner writes the parts list and draws 3 concept looks at no extra cost, and $50 then puts it on the production line; nothing is charged before you have seen the plan. Without a plan, asking is still free: any signed-in account can put one kit idea a week on the public ideas board (no weekly limit on a plan), where upvotes decide what gets built.","if your product will serve these to ITS users":"linking is free: any product may load the free low poly models from https:\/\/polyfork.dev\/cdn\/{id}.glb and search this API, one model when a user picks it, not the catalogue in bulk. Hosting the free MESH files yourself is fine too, under CC BY 4.0 with each asset's `credit` line. Keeping your own copies of the .mjs modules (your servers or CDN, a mirror or proxy, downloads from you) is redistribution and no plan covers it, and neither does serving the HD editions to your users, but both are for sale rather than forbidden: https:\/\/polyfork.dev\/platform, from $299\/month, HD editions included. Say so before building that. https:\/\/polyfork.dev\/licensing draws the line.","why authenticate":{"as":"anonymous","remix_bakes_per_hour":40,"remix_bakes_left_this_hour":40,"remix_note":"The budget is on generating NEW geometry. Variations anyone has already baked are served to everybody and never counted, so re-fetching a variant you or anyone else has made costs nothing.","remix_bakes_per_month":100,"remix_bakes_left_this_month":100,"remix_allowance_resets":"2026-12-01","remix_allowance_note":"Anonymous callers are counted per IP address, so other sessions from the same address share this. A free account raises it to 300 a WEEK on its own budget, and costs an email address.","a_free_account_adds":{"how":"Authorization: Bearer <key>, created at https:\/\/polyfork.dev\/account. Costs an email address.","remix_bakes_per_hour":100,"remix_bakes_per_week":300,"downloads":"every low poly model's .mjs program and a ready-to-serve zip from \/dl, and any kit as one zip (\/dl\/kit-<id>.zip). The .glb, .fbx, .usdz, .usda and .obj need no key"},"pro_adds":{"url":"https:\/\/polyfork.dev\/pricing","usd_per_year":149,"hd_editions":"the HD edition of a model: the same program built finer, high poly with PBR materials generated in code, every knob still working. 2,146 models have one. Free accounts get its public preview (\/cdn\/<id>-hd-preview.glb) only","cdn":"a per-account \/c\/<token>\/ path for the HD files you can hotlink from a shipped build; it keeps up when an asset is rebuilt, and the token is not the API key","remix_bakes_per_hour":900,"remix_bakes_per_week":"uncapped: a free account gets a weekly allowance, Pro does not"}}}