Skip to main content
The Tashvi API has seven tools. Each is one product job, and Tashvi’s own agents do the work behind it, so the main input is the person’s own words in request. What each call costs is on Pricing.

How the tools work

  • Pass designs by id. A result names each design as Design N (designId …). To use a design in another tool, pass its designId, never an image URL. A design that isn’t the caller’s own is refused before anything is spent.
  • Links, not storage URLs. A design’s link is https://tashvi.ai/d/ followed by its id. It opens the design in the person’s signed-in Tashvi, and nothing is made public. Give people that link.
  • Long jobs come back by id. There are no webhooks and no push. A film or a 3D job that isn’t done when its call ends answers with an id (videoRequestId or buildId). Call the same tool again with only that id to keep waiting. Waiting costs nothing.
  • Never repeat a paid call that timed out. If a call is cut off, the work may still have been made and charged. Check with tashvi_library before you try again.
  • Every tool also takes user_intent: an optional sentence on what the person is trying to do. It’s logged with the call and never changes the result.
  • Errors are results. A tool that can’t do something answers with isError: true and a structuredContent of error (a sentence you can show the person) and code. See Errors and limits.
A host that draws MCP Apps can also show Tashvi’s own card for designs and films. The card’s data is in the result’s _meta; your code can ignore it.

Design jewelry

tashvi_design designs a new piece or changes one. Tashvi’s design agent draws it, the same one that runs Create in the studio. Result. One line per design, Design N (designId …): https://tashvi.ai/d/…, the sessionId, and one picture: a contact sheet of up to four designs, left to right, then top to bottom. structuredContent has message, sessionId and designs (each with n, designId and designUrl). Keep the sessionId and send it back on every follow-up, so “make the band thinner” edits the same piece. Designs are saved to the person’s My Designs. On the free plan they are public, as every free design in Tashvi is. If the turn takes longer than its limit (225 seconds), the result is took_too_long. The design may still have been made: look in tashvi_library with what: "designs" before asking again, or ask for one option instead of four.

Make a video

tashvi_video makes a short film of one of the person’s designs, and waits for it in the same call. Give designId or videoRequestId, not both. Result. The call waits up to about 3 minutes. When the film is ready, the result is Video (designId …): https://tashvi.ai/d/…. If it’s still being made, structuredContent.status is in_queue or in_progress, with a videoRequestId: call tashvi_video again with only that id. A film that fails answers video_failed, and the person isn’t charged for it.

Make a 3D model

tashvi_3d turns one of the person’s designs into a 3D model. There are two kinds, and kind is required.
  • draft: a quick 3D draft, a textured mesh, in one to five minutes. Paid plans.
  • cad: a castable CAD build, an engineered model with STEP and STL files a jeweler can cast. Several minutes. Pro plan and above.
kind is the person’s choice. If they haven’t said which they want, ask them once. Don’t pick a paid 3D job for them.
  • A draft: pass designId. A draft that has started can’t be changed.
  • A new CAD build: pass designId, request, or both.
  • A change to a CAD build: pass buildId and request.
  • Keep waiting: pass the same kind and only the buildId. That spends nothing.
Result. The call waits up to about 3 minutes. A finished draft answers the Tashvi page that opens it and, once its file is saved, a direct download of the GLB. A CAD build usually takes longer than one call, so the usual answer is the build’s page and a buildId, with structuredContent.status of in_progress. A finished build adds direct downloads of its STEP and STL files. Download links last about an hour. Call again with the buildId for fresh ones. The CAD builder may need one more detail. Then status is needs_answer with a question: put it to the person, and call again with kind: "cad", their answer in request, and the buildId. One CAD build runs at a time per account; starting another while one is running answers edit_running with the buildId that holds it.

Look in my Tashvi

tashvi_library reads what the person has in Tashvi. It’s free and changes nothing. A search looks through the person’s newest items (up to 200 designs, 100 files or chats, or 50 drafts), and the answer says so when there may be more.

Ask Tashvi

tashvi_ask asks Tashvi, the jewelry assistant, a question and returns its answer in words: how much gold a piece holds, today’s gold or silver rate, how a setting or a technique works, how to do something in Tashvi. It doesn’t make designs, films or 3D models. Tashvi doesn’t search the web when it’s called through the API. An answer that runs past 150 seconds is cut off as took_too_long. Don’t ask the same thing again straight away: the question may already have been charged.

Ask Tashvi One

tashvi_one_ask asks Tashvi One, the person’s stock and accounting books, a question. Tashvi One’s own assistant looks it up in their shop: stock and where it is, a piece by its tag, stock value and age, dead stock and top movers, metal balances and rates, customers, vendors and karigars, orders, invoices and what someone owes. It only reads. Quote the money and weights it gives as they are.

Make a change in Tashvi One

tashvi_one_change makes changes in the person’s Tashvi One books from their words: book pieces into stock, move pieces between locations, open a sale, hold or release an order, invoice it, record a payment, add a customer, vendor or karigar, create a product, or set the tax rate.
The change is made during the call. In the studio, the assistant shows a card and waits for a tap; through the API, your app’s own permission prompt for this tool is that tap. Call it only for a change the person asked for.
  • It makes up to 10 changes per call, and the person’s role limits in Tashvi One apply.
  • Result: exactly what changed, and anything not done with the reason.
  • If Tashvi One asks a question, put it to the person. Then call again with only what is still to be done and their answer. Never repeat anything the result lists as changed.
  • If a call fails or times out, check with tashvi_one_ask before calling again. A change may already have been made.