Skip to main content
This page is for AI agents, and for the people who build them. It says how an agent should find Tashvi, what it can and can’t do on its own, and how to spend a person’s money well.

Find Tashvi

Any page of these docs can also be read as Markdown: add .md to its URL. The API itself is https://mcp.tashvi.ai/mcp. Its initialize answer carries instructions, a short guide to the seven tools, and tools/list describes each one. Read both before your first call.

What an agent can’t do

An agent can’t sign itself up for Tashvi, and it can’t pay. A person does three things first, in a browser:
  1. Signs up at console.tashvi.ai and verifies their email.
  2. Buys API credits at console.tashvi.ai/credits.
  3. Makes an API key at console.tashvi.ai/keys and gives it to the agent’s app.
From then on the agent works with the key. A key is refused, whatever it is told, on buying credits, billing, making or revoking keys, and changing the account. If an agent needs any of those, it should ask the person.
Don’t try to create a Tashvi account, fill in a payment form, or read a key from somewhere the person didn’t put it. Ask the person.

Spend the person’s money well

1

Know the price before you spend

Read the current prices from GET /api/developer/prices (any key with read), or the table on Pricing. A design is cheap; a 3D draft or a CAD build costs much more. For anything above a few dollars, or a long series of calls, tell the person what it will cost and let them say yes.
2

Check the balance for a big job

Before a batch, or a CAD build, read GET /api/developer/balance. If it won’t cover the job, say so before you start, not halfway through.
3

Handle a 402 by asking the person

402 insufficient_balance means the balance can’t cover the call, and nothing was charged. Stop, tell the person, and give them the top_up_url from the error, which is the console’s credits page. Don’t retry until they say they’ve topped up.402 key_spend_cap_reached means this key has hit its monthly cap. Tell the person when it resets (resets_at), or that they can raise the cap in the console.
4

Never pay twice

A paid call that timed out or lost its connection may still have been made, and charged. Look with tashvi_library before calling again. For Tashvi One, check with tashvi_one_ask first.

Good habits

  • Use the person’s words. Put what they asked for in request. Tashvi’s own agents do the design work; you don’t need to write image-model prompts.
  • Keep the thread. Send the sessionId from a design result back on every follow-up, so an edit changes the same piece.
  • Refer to designs by designId, never by an image URL, and give the person the tashvi.ai/d/ link from the result.
  • Ask once before 3D. When the person asks for a 3D model without saying which, ask them: a quick 3D draft, or a castable CAD build. Don’t choose a paid 3D job for them.
  • Wait by id. When a film or a 3D job hands back a videoRequestId or buildId, call the same tool again with only that id. It costs nothing. Don’t poll in a tight loop: each call already waits up to about 3 minutes.
  • Change the books only when asked. tashvi_one_change makes the change when it’s called. Call it only for a change the person asked for, and never repeat a change its result lists as done.
  • Say what Tashvi isn’t. Designs and 3D drafts are concepts, not manufacturing sign-off. A caster or CAD designer should check dimensions, stone security and tolerances before production. Tashvi doesn’t appraise, certify or value jewelry.
  • Keep the key secret. Never print it, log it, or put it in a message.

Errors

Branch on code. The full list, with what to do for each, is on Errors and limits. The short version: retry 503 and too_many_calls after a pause; check before retrying a paid call you didn’t get an answer to; and hand 401, 402 and 403 to the person.