# Tashvi AI > This file is very large and may be truncated. For an index of this content, please refer to https://docs.tashvi.ai/llms.txt instead. # For AI agents Source: https://docs.tashvi.ai/api/agents How an AI agent finds and uses the Tashvi API: read llms.txt and agents.md, work with a key a person made (an agent can't sign up or pay), check the balance and prices before spending, and on a 402 ask the person to top up at the console. 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 | File | What's in it | | - | - | | [docs.tashvi.ai/llms.txt](https://docs.tashvi.ai/llms.txt) | An index of these docs, page by page, with a one-line description of each | | [docs.tashvi.ai/llms-full.txt](https://docs.tashvi.ai/llms-full.txt) | The full text of these docs in one file | | [tashvi.ai/llms.txt](https://tashvi.ai/llms.txt) | Product facts, official pages and guides from tashvi.ai | | [tashvi.ai/agents.md](https://tashvi.ai/agents.md) | When to use Tashvi, when not to, and how to call it | | [tashvi.ai/developers](https://tashvi.ai/developers) | Every developer resource on one page | 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](https://console.tashvi.ai) and verifies their email. 2. Buys API credits at [console.tashvi.ai/credits](https://console.tashvi.ai/credits). 3. Makes an API key at [console.tashvi.ai/keys](https://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. > [!NOTE] > > 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](/api/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](/api/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. # Authentication Source: https://docs.tashvi.ai/api/authentication The Tashvi API takes a tsk_live_ API key from console.tashvi.ai/keys as a Bearer token. Keys carry scopes, an optional expiry date and an optional monthly spending cap, and can be revoked at any time. Sign-in (OAuth) for claude.ai and ChatGPT is rolling out. Every request to `https://mcp.tashvi.ai/mcp` carries an API key in the `Authorization` header: ```http theme={null} Authorization: Bearer tsk_live_… ``` A key belongs to one Tashvi account and acts as that account. Its calls are charged to that account's API credits. ## Make a key **1. Open the keys page** Sign in at [console.tashvi.ai/keys](https://console.tashvi.ai/keys). Your email address must be verified first. **2. Name it and choose what it can do** Name the key after where it will live, like "Claude Code on my laptop". Choose its [scopes](#scopes), and set an expiry date or a monthly spending cap if you want one. **3. Copy it once** The key is shown once, when you make it. Tashvi keeps only a fingerprint of it, so a lost key can't be shown again: revoke it and make a new one. You can have up to 10 active keys. Make one per machine or app, so you can revoke one without breaking the others. ## Scopes A key does only what its scopes allow. A tool the key's scopes don't cover isn't listed to it by `tools/list`, and can't be called. | Scope | Tools | What it allows | | - | - | - | | `read` | `tashvi_library` | Look up your designs, files, drafts, chats and account. Spends nothing | | `design` | `tashvi_design`, `tashvi_video` | Make and edit designs and films. Spends credits | | `cad` | `tashvi_3d` | Make 3D drafts and CAD builds. Spends credits | | `ledger` | `tashvi_one_ask`, `tashvi_one_change` | Read Tashvi One, and make changes in it | | `copilot` | `tashvi_ask` | Ask Tashvi questions. Spends credits | A new key gets all five unless you choose fewer. A key with only `read` can look but never spend. > [!WARNING] > > `ledger` lets the key change your Tashvi One books: `tashvi_one_change` books stock, opens sales and records payments when it's called. Leave `ledger` off any key that doesn't need it. ## Expiry A key with an expiry date stops working at that moment, and every call with it gets `401`. Make a new key before the old one runs out. ## Monthly spending cap A cap is a dollar limit on what one key can spend in a month, on top of your account balance. When a key reaches its cap, calls that cost money are refused with `402` and the code `key_spend_cap_reached`, which says when the cap resets (`resets_at`). Raise the cap in the console, or wait for the reset. Give every key an agent runs unattended a cap. ## Keep the key safe * **Use an environment variable.** Tashvi's setup examples read `TASHVI_API_KEY`. * **Never put a key in client code:** a web page, a mobile app, a browser extension or a public repository. Anyone who sees it can spend your credits. Calls from a web page are refused anyway (`403` `origin_not_allowed`). * **Never paste a key into a chat.** Put it in your app's config or environment, not in a message to an AI. * **Keep it out of logs and screenshots.** ## Revoke and rotate Revoke a key at [console.tashvi.ai/keys](https://console.tashvi.ai/keys). It stops working within about 10 seconds. To rotate a key without downtime: 1. Make a new key. 2. Put it where the old one was, and restart the app. 3. Revoke the old key. If you think a key has leaked, revoke it first and rotate after. ## What a key can never do Some things only a signed-in person can do. A key is refused on all of them, whatever its scopes: * Make, list or revoke keys * Buy credits, change the plan or billing * Delete the account, or change email or password * Change team or workspace membership * Connect other apps to the account A key reaches Tashvi through the MCP endpoint and the [account endpoints](/api/pricing#account-endpoints). It isn't a key for Tashvi's other internal routes: those answer `403` `api_key_scope`. If the account is suspended or deleted, its keys stop working within about a minute. ## Sign in instead of a key (rolling out) Apps that add MCP servers as connectors, like claude.ai and ChatGPT, can't send a key. They connect by sign-in (OAuth): you add `https://mcp.tashvi.ai/mcp` as a connector, press **Connect**, sign in to Tashvi and press **Allow**. A signed-in app gets the same five scopes a new key gets. Sign-in is rolling out and isn't on for every account yet. Until it reaches yours, use a key from an app that can send one: Claude Code, Claude Desktop, Cursor, Codex and most MCP clients can. See [Connect an agent](/api/connect-an-agent). You can see and disconnect signed-in apps in the studio under **Settings → Connected AI apps**. # Connect an agent Source: https://docs.tashvi.ai/api/connect-an-agent Set up the Tashvi API (https://mcp.tashvi.ai/mcp) in Claude Code, Claude Desktop, claude.ai, Cursor, Codex, ChatGPT or any MCP client, with raw curl examples for initialize, tools/list and tools/call. Every app connects to the same URL with the same key: * **URL:** `https://mcp.tashvi.ai/mcp` * **Transport:** Streamable HTTP * **Header:** `Authorization: Bearer $TASHVI_API_KEY` ## Before you start 1. Make a key at [console.tashvi.ai/keys](https://console.tashvi.ai/keys) and buy credits at [console.tashvi.ai/credits](https://console.tashvi.ai/credits). See the [quickstart](/api/overview#quickstart). 2. Put the key in an environment variable, in the shell or profile your app starts from: ```bash theme={null} export TASHVI_API_KEY=tsk_live_… ``` 3. Give tool calls at least 240 seconds. A design takes 20 to 90 seconds, and a film or a 3D job waits up to about 3 minutes in one call. The examples below set 330 seconds where the app allows it. ## Claude Code Add the server for every project: ```bash theme={null} claude mcp add -s user -t http tashvi https://mcp.tashvi.ai/mcp \ -H "Authorization: Bearer $TASHVI_API_KEY" ``` This writes the key itself into Claude Code's config. To keep it in the environment instead, put this in a project's `.mcp.json`. Claude Code reads `${TASHVI_API_KEY}` when it starts: ```json .mcp.json theme={null} { "mcpServers": { "tashvi": { "type": "http", "url": "https://mcp.tashvi.ai/mcp", "headers": { "Authorization": "Bearer ${TASHVI_API_KEY}" }, "timeout": 330000 } } } ``` Run `/mcp` in Claude Code to check that `tashvi` is connected. ## Claude Desktop Claude Desktop's own connectors use sign-in (see [claude.ai](#claudeai) below). To connect with a key today, use the `mcp-remote` bridge, which needs [Node.js](https://nodejs.org). **1. Open the config** In Claude Desktop, go to **Settings → Developer → Edit Config**. **2. Add Tashvi** Paste this, with your key in place of the placeholder: ```json claude_desktop_config.json theme={null} { "mcpServers": { "tashvi": { "command": "npx", "args": [ "-y", "mcp-remote@latest", "https://mcp.tashvi.ai/mcp", "--transport", "http-only", "--header", "Authorization:${AUTH_HEADER}" ], "env": { "AUTH_HEADER": "Bearer tsk_live_PASTE_YOUR_KEY_HERE" } } } } ``` The key goes in `env`, not in `args`: Claude Desktop doesn't escape the space in `Bearer tsk_…` when it passes an argument. **3. Restart Claude Desktop** Quit and reopen it. Tashvi's tools are then available in new chats. ## claude.ai claude.ai connects by sign-in, not with a key. Sign-in is rolling out, so it may not be on for your account yet. **1. Add the connector** In claude.ai, go to **Settings → Connectors → Add custom connector**, and enter `https://mcp.tashvi.ai/mcp`. **2. Connect** Press **Connect**, sign in to Tashvi, and press **Allow**. The connector also works in Claude Desktop and the Claude mobile apps on the same account. You can disconnect it in the studio under **Settings → Connected AI apps**. ## Cursor Add Tashvi to `~/.cursor/mcp.json`: ```json ~/.cursor/mcp.json theme={null} { "mcpServers": { "tashvi": { "url": "https://mcp.tashvi.ai/mcp", "headers": { "Authorization": "Bearer ${env:TASHVI_API_KEY}" } } } } ``` If Cursor can't see the variable (it was opened from the dock, not a shell), put the key in the file instead. ## Codex ```bash theme={null} codex mcp add tashvi --url https://mcp.tashvi.ai/mcp --bearer-token-env-var TASHVI_API_KEY ``` Or add it to `~/.codex/config.toml`. The key stays in the environment either way: ```toml ~/.codex/config.toml theme={null} [mcp_servers.tashvi] url = "https://mcp.tashvi.ai/mcp" bearer_token_env_var = "TASHVI_API_KEY" startup_timeout_sec = 30 tool_timeout_sec = 330 ``` ## ChatGPT ChatGPT connects by sign-in, like claude.ai, and can't send a key. Sign-in is rolling out, so it may not be on for your account yet. In ChatGPT's settings, turn on developer mode for apps and connectors, create a connector with the URL `https://mcp.tashvi.ai/mcp` and OAuth sign-in, then sign in to Tashvi and press **Allow**. ## Gemini CLI ```bash theme={null} gemini mcp add -s user -t http tashvi https://mcp.tashvi.ai/mcp \ -H "Authorization: Bearer $TASHVI_API_KEY" ``` ## Any other MCP client Give it the URL, the Streamable HTTP transport and the header above. That covers Windsurf, Cline, Zed, VS Code and most other hosts that take a remote server with a header. A client that can only start local (stdio) servers can use the same `mcp-remote` bridge as [Claude Desktop](#claude-desktop). ## Raw HTTP with curl Every message is one `POST` of a JSON-RPC 2.0 object, and every answer is one JSON object. There's no session to keep, no server-sent event stream, and no batching (send one message per request). ### 1. Initialize ```bash theme={null} curl -sS https://mcp.tashvi.ai/mcp \ -H "Authorization: Bearer $TASHVI_API_KEY" \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{ "protocolVersion":"2025-06-18","capabilities":{}, "clientInfo":{"name":"my-script","version":"1.0"}}}' ``` ```json theme={null} { "jsonrpc": "2.0", "id": 1, "result": { "protocolVersion": "2025-06-18", "capabilities": { "tools": { "listChanged": false }, "resources": { "subscribe": false, "listChanged": false }, "prompts": { "listChanged": false }, "logging": {} }, "serverInfo": { "name": "tashvi", "title": "Tashvi", "version": "…" }, "instructions": "Tashvi is a jeweller's AI studio, and seven tools do its work. …" } } ``` Tashvi speaks protocol versions `2024-11-05`, `2025-03-26`, `2025-06-18`, `2025-11-25` and the stateless `2026-07-28`. Ask for one of those and you get it; ask for another and you get `2025-06-18`. A client may then send `notifications/initialized`; it's accepted with `202` and no body. ### 2. List the tools ```bash theme={null} curl -sS https://mcp.tashvi.ai/mcp \ -H "Authorization: Bearer $TASHVI_API_KEY" \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' ``` The answer is `result.tools`: each tool's `name`, `title`, `description`, `inputSchema` and `annotations`. Only the tools your key's scopes allow are listed. ### 3. Call a tool Start with a free call. This one reads the account: ```bash theme={null} curl -sS https://mcp.tashvi.ai/mcp \ -H "Authorization: Bearer $TASHVI_API_KEY" \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{ "name":"tashvi_library","arguments":{"what":"account"}}}' ``` ```json theme={null} { "jsonrpc": "2.0", "id": 3, "result": { "content": [{ "type": "text", "text": "Your plan: pro. Credits: ok." }], "structuredContent": { "what": "account", "plan": "pro", "status": "ok" } } } ``` Then a design. This one spends credits ([see prices](/api/pricing)) and takes 20 to 90 seconds, so give `curl` a long timeout: ```bash theme={null} curl -sS --max-time 300 https://mcp.tashvi.ai/mcp \ -H "Authorization: Bearer $TASHVI_API_KEY" \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -d '{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{ "name":"tashvi_design", "arguments":{"request":"An 18k rose gold three-stone ring with oval sapphires"}}}' ``` The result's text has one line per design, `Design 1 (designId …): https://tashvi.ai/d/…`, and the `sessionId` of the design conversation. Send that `sessionId` back with the next request ("make the band thinner") to keep editing the same piece. The result also carries one picture of the design. See [tashvi_design](/api/tools#design-jewelry) for the full shape. A tool that fails still answers `200` with a JSON-RPC result: `isError` is `true` and `structuredContent` has `error` (a sentence) and `code`. Problems with the key or the request itself come back as HTTP errors. Both are listed in [Errors and limits](/api/errors-and-limits). # Errors and limits Source: https://docs.tashvi.ai/api/errors-and-limits Every Tashvi API error code (401 bad or expired key, 402 insufficient_balance and key_spend_cap_reached, 403 scope and email checks, 503 key check unavailable, and tool errors like too_many_calls and took_too_long), plus the real limits: 8 calls at once, one CAD build at a time, and per-tool time limits. Tashvi answers a problem in one of three places. Branch on `code`, wherever it arrives. * **HTTP errors** are about the key, the account or the request itself. The body is JSON with `error` (a sentence) and `code`. * **Tool errors** come back as a normal `200` JSON-RPC result with `isError: true`. `structuredContent` has `error`, `code`, and sometimes `detail`. `error` is written for a person, so you can show it as it is. * **JSON-RPC errors** are about the message: a method or a tool that doesn't exist, or arguments that aren't an object. ## HTTP errors | Status | `code` | What it means | What to do | | - | - | - | - | | `401` | `unauthorized` | No key, or the key is wrong, expired or revoked | Check `TASHVI_API_KEY`. Make a new key at [console.tashvi.ai/keys](https://console.tashvi.ai/keys) | | `402` | `insufficient_balance` | Your balance can't cover this call. Nothing was charged. The body has `balance_usd` and `top_up_url` | Ask the person to top up at `top_up_url`. Don't retry until they have | | `402` | `key_spend_cap_reached` | This key has reached its monthly cap. The body has `cap_usd`, `spent_usd` and `resets_at` | Wait until `resets_at`, or ask the person to raise the cap in the console | | `403` | `scope_not_allowed` | The key's scopes don't cover this request | Make a key with the scope you need. See [Scopes](/api/authentication#scopes) | | `403` | `email_unverified` | The account's email address isn't verified yet | Verify it, then try again | | `403` | `api_key_not_allowed` | A key may never do this: billing, keys, account changes, and the other actions in [What a key can never do](/api/authentication#what-a-key-can-never-do) | A person has to do it, signed in | | `403` | `api_key_scope` | The key was sent to one of Tashvi's internal routes instead of the MCP endpoint | Call `https://mcp.tashvi.ai/mcp` | | `403` | `account_suspended` | The account is suspended | Contact [hello@tashvi.ai](mailto:hello@tashvi.ai) | | `403` | `origin_not_allowed` | The request came from a web page | Call the API from a server or an app, never from a browser | | `404` | | The API isn't open for this account yet | Contact [hello@tashvi.ai](mailto:hello@tashvi.ai) | | `503` | `api_key_store_unavailable` | Tashvi couldn't check the key just now | Retry after a few seconds, with backoff. Your key is fine | | `400` | | The body isn't JSON, or it's a JSON-RPC batch | Send one JSON-RPC message per request | | `405` | | A `GET` to the endpoint | Send `POST` | | `413` | | The request is over 40 MB | Send less | A `401` also carries a `WWW-Authenticate: Bearer realm="tashvi"` header, which is what starts sign-in in apps that support it. ## Tool errors These come back inside the result, with `isError: true`. | `code` | What it means | What to do | | - | - | - | | `too_many_calls` | 8 calls are already running for this account | Wait for one to finish, then try again | | `took_too_long` | The call ran past its time limit. The work may still have been made, and charged | Check with `tashvi_library` before trying again. For a design, try one option instead of four | | `invalid_arguments` | An argument is missing or wrong. `error` says which | Fix the arguments | | `design_not_found` | That `designId` isn't one of this account's designs | Look it up with `tashvi_library` (`what: "designs"`) | | `design_has_no_picture` | The design is a film, or has no picture | Pick another design | | `designs_unavailable` | The design store couldn't answer | Retry shortly | | `film_not_found` | That `videoRequestId` isn't this account's | Check the id | | `video_failed` | The film couldn't be made. Nothing was charged | Try again, perhaps with a different camera brief | | `draft_not_found`, `build_not_found` | That `buildId` isn't this account's | Check the id | | `edit_running` | A CAD build is already running for this account. `detail.buildId` names it | Wait for it with `tashvi_3d` and that `buildId` | | `build_busy` | That build is still working on an earlier request | Call again with only its `buildId` to wait | | `build_not_ready` | That build has no saved model yet, so nothing can be changed | Wait for it first | | `rate_limited` | Too many calls of one kind in a short time, such as 3D drafts. `detail` may give `retryAfterSeconds` | Wait, then try again | | `upgrade_required`, `PAID_SUBSCRIPTION_REQUIRED`, `assistant_paid_plan_required` | The account's plan doesn't include this. The result has a `billingUrl` | Tell the person and give them the link. See [plan requirements](/api/pricing#plan-requirements) | A CAD build that runs out of balance partway doesn't fail: it pauses with its best version saved. ## JSON-RPC errors | `error.code` | Meaning | | - | - | | `-32700` | The body isn't valid JSON | | `-32600` | Not a JSON-RPC 2.0 request, or a batch | | `-32601` | No such method | | `-32602` | Bad params, including `Unknown tool`: a tool that doesn't exist or that the key's scopes don't list | | `-32603` | Internal error | ## Limits | Limit | Value | | - | - | | Calls running at once | Up to 8 per account. More answer `too_many_calls` | | CAD builds | One at a time per account | | 3D drafts | About 12 a minute and 300 a day | | Active API keys | 10 per account | | Request size | 40 MB | | A key revoked in the console | Stops within about 10 seconds | Each tool has a time limit for one call. It's set to end before an AI app gives up waiting (Claude gives up at about 240 seconds), so a result is never lost. | Tool | Time limit | | - | - | | `tashvi_design`, `tashvi_video`, `tashvi_3d` | 225 seconds. Films and 3D jobs hand back an id when they need longer | | `tashvi_one_change` | 220 seconds | | `tashvi_ask` | 150 seconds | | `tashvi_one_ask` | 70 seconds | | `tashvi_library` | 60 seconds | Set your client's tool timeout to at least 240 seconds, so it doesn't cut off a call Tashvi is still answering. A few features also have short-window limits of their own: 3D drafts, searching Explore, and Tashvi One's assistant. A call over one of them answers `rate_limited`. Beyond those, your balance and your key's cap are what limit spending. ## Retrying * **Safe to retry:** `503`, `too_many_calls`, `designs_unavailable`, `rate_limited` (after the wait), and any call that only waits (`videoRequestId` or `buildId` alone). * **Check first:** `took_too_long`, a dropped connection, or any paid call whose answer you didn't get. The work may have been made and charged. Look with `tashvi_library`, or for Tashvi One with `tashvi_one_ask`, before you call again. * **Don't retry:** `402`, `401`, `403`. They need a person. # Tashvi API Source: https://docs.tashvi.ai/api/overview The Tashvi API is an MCP server at https://mcp.tashvi.ai/mcp. Any app or AI agent can design jewelry, make videos, 3D drafts and castable CAD, and work in Tashvi One, with an API key and prepaid US-dollar credits. The Tashvi API lets your code or your AI agent do what you do in the studio: design a piece, change it, film it, turn it into a 3D draft or a castable CAD build, and read or change your stock and books in Tashvi One. It's an MCP server (Model Context Protocol), so Claude, ChatGPT, Cursor, Codex and any other MCP client can call it directly. ```text theme={null} https://mcp.tashvi.ai/mcp ``` * **Transport:** Streamable HTTP, JSON-RPC 2.0, `POST` only. Each request gets a JSON answer; no session is kept. * **Sign-in:** an API key, sent as `Authorization: Bearer tsk_live_…`. See [Authentication](/api/authentication). * **Money:** prepaid API credits in US dollars, bought in the console. Every price is shown in dollars. See [Pricing](/api/pricing). ## What you can do Seven tools do the work. Tashvi's own design, video, 3D and Tashvi One agents run behind them, so you send a person's words, not model settings. | Tool | What it does | | - | - | | `tashvi_design` | Designs or edits a jewelry image: "a rose gold three-stone ring", "make the band thinner", four options at once, or the piece worn on a model | | `tashvi_video` | Makes a short film of a design | | `tashvi_3d` | Makes a quick 3D draft (a textured mesh) or a castable CAD build with STEP and STL files | | `tashvi_library` | Looks up your designs, uploaded CAD files, 3D drafts, design chats and account. Free | | `tashvi_ask` | Answers a question in words: how much gold a piece holds, today's metal rate, how a setting works | | `tashvi_one_ask` | Reads your Tashvi One stock and books | | `tashvi_one_change` | Makes a change in Tashvi One: book stock, move a piece, open a sale, record a payment | Inputs, outputs and timing for each are in the [tool reference](/api/tools). ## People and agents A person and an agent each have a part, and the order matters. * **A person** signs up, buys credits and makes the API key, in a browser, at [console.tashvi.ai](https://console.tashvi.ai). * **An agent** works with that key: it designs, films, builds in 3D, looks things up and works in Tashvi One, and every call is charged to the person's balance. > [!NOTE] > > An agent can't sign itself up, buy credits, make or revoke keys, or change billing. A key is refused on every one of those, whatever it is told. When an agent runs out of credits, it should stop and ask the person to top up. See [For AI agents](/api/agents). ## Quickstart **1. Sign up and add credits** Sign in at [console.tashvi.ai](https://console.tashvi.ai) with your Tashvi account, or create one, and verify your email address. Then buy credits at [console.tashvi.ai/credits](https://console.tashvi.ai/credits). The smallest purchase is \$5. **2. Make an API key** Go to [console.tashvi.ai/keys](https://console.tashvi.ai/keys) and make a key. Copy it straight away: it's shown once. Keep it in an environment variable: ```bash theme={null} export TASHVI_API_KEY=tsk_live_… ``` **3. Connect your agent and ask for a ring** For Claude Code: ```bash theme={null} claude mcp add -s user -t http tashvi https://mcp.tashvi.ai/mcp \ -H "Authorization: Bearer $TASHVI_API_KEY" ``` Then ask: "Design an 18k rose gold three-stone ring with oval sapphires." Every other app, and plain `curl`, is in [Connect an agent](/api/connect-an-agent). ## Two Tashvi MCP servers Tashvi runs two MCP servers. Use the one that fits the job. | Server | URL | Key | What it's for | | - | - | - | - | | **Tashvi API** | `https://mcp.tashvi.ai/mcp` | Yes | Designing, video, 3D drafts and CAD, your library, Ask, and Tashvi One | | **Content server** | `https://tashvi.ai/api/mcp` | No | Read-only: product facts, plan prices, jewelry guides and release notes from tashvi.ai | The content server can't design. Everything on these pages is about the Tashvi API. ## Next > [card] [Authentication](/api/authentication) > > Keys, scopes, expiry and spending caps. > [card] [Connect an agent](/api/connect-an-agent) > > Setup for each app, and raw curl. > [card] [Tools](/api/tools) > > Every tool's inputs and results. > [card] [Pricing](/api/pricing) > > What each call costs, in dollars. > [card] [Errors and limits](/api/errors-and-limits) > > Error codes and how many calls can run at once. > [card] [For AI agents](/api/agents) > > How an agent should find, call and pay for Tashvi. # Pricing Source: https://docs.tashvi.ai/api/pricing Tashvi API calls are paid from prepaid API credits in US dollars, bought at console.tashvi.ai/credits from $5 to $500 at a time. A design is $0.10, a film $1.00, a 3D draft $6.00, a question $0.05; looking things up is free. The Tashvi API is pay as you go. You buy API credits in US dollars ahead of time, and each call takes its price from that balance. ## Prices | Tool | What you get | Price | | - | - | - | | `tashvi_design` | One design, or one edit of a design | \$0.10 | | `tashvi_design` | Four options at once (`variations: 4`) | \$0.40 | | `tashvi_video` | One 5-second film | \$1.00 | | `tashvi_3d` | One 3D draft (`kind: "draft"`) | \$6.00 | | `tashvi_3d` | One CAD build (`kind: "cad"`) | Metered: see below | | `tashvi_ask` | One question | \$0.05 | | `tashvi_library` | Any lookup | Free | | `tashvi_video`, `tashvi_3d` | Waiting for a job you already started (`videoRequestId` or `buildId` alone) | Free | | `tashvi_one_ask`, `tashvi_one_change` | Reading or changing Tashvi One | No charge per call | * **On the free plan,** one design is \$0.20. * **A CAD build is metered.** It's charged as it runs, for the AI work it actually does, so its price depends on the piece. A build needs at least \$1.25 on your balance to start. If the balance runs out partway, the build pauses with its best version saved, and the result links to it in Tashvi. * **Tashvi One** has no per-call price. Its assistant works within your plan's own Tashvi One allowance. Prices can change. Read the live table from [`GET /api/developer/prices`](#account-endpoints) instead of hard-coding these numbers. ### Plan requirements Some tools also need a paid Tashvi plan today: * `variations: 4` on `tashvi_design`, `tashvi_video`, and 3D drafts: any paid plan * CAD builds: Pro plan and above * `tashvi_one_ask` and `tashvi_one_change`: any paid plan A call your plan doesn't cover is refused before anything is charged, with a link to the plans. ## Buy credits **1. Open the credits page** Sign in at [console.tashvi.ai/credits](https://console.tashvi.ai/credits). **2. Choose an amount** Buy anything from \$5 to \$500 at a time. The smallest purchase is \$5. **3. Pay** Pay at checkout. Your keys spend from the new balance once the payment goes through. Only a person can buy credits, in the browser. An API key can't buy credits, and neither can an agent. ## When your balance runs out A call that your balance can't cover is refused before any work starts, so nothing is charged. It answers `402` with the code `insufficient_balance`, your `balance_usd`, and a `top_up_url` to send the person to. A key with a [monthly cap](/api/authentication#monthly-spending-cap) that's been reached answers `402` `key_spend_cap_reached` the same way. See [Errors and limits](/api/errors-and-limits). ## When a job fails * A design that produces no image isn't charged. With four options, only the designs that arrive are charged. * A film that fails isn't charged. * A 3D draft that fails isn't charged. * A question to `tashvi_ask` that ends in an error isn't charged. Stopping a call, or a call that runs past its time limit, is different: the work that already ran is charged, and the result may still have been made. Check with `tashvi_library` before you try again, so you don't pay twice. ## Account endpoints Three read-only endpoints on the API host show your money. Call them with an API key that has the `read` scope: ```bash theme={null} curl -sS https://mcp.tashvi.ai/api/developer/balance \ -H "Authorization: Bearer $TASHVI_API_KEY" ``` | Endpoint | Answers | | - | - | | `GET /api/developer/balance` | Your API credit balance, in US dollars | | `GET /api/developer/usage?days=30` | What your account spent over the last `days` days | | `GET /api/developer/prices` | The current price of each tool, in US dollars | The console shows the same numbers at [console.tashvi.ai](https://console.tashvi.ai). # Tools Source: https://docs.tashvi.ai/api/tools Reference for the Tashvi API's seven MCP tools: tashvi_design, tashvi_video, tashvi_3d, tashvi_library, tashvi_ask, tashvi_one_ask and tashvi_one_change, with their inputs, results, timing, and how long-running film and 3D jobs return. 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`. | Tool | Scope | Spends | Typical time | | - | - | - | - | | [`tashvi_design`](#design-jewelry) | `design` | Yes | 20 to 90 seconds | | [`tashvi_video`](#make-a-video) | `design` | Yes | Waits up to about 3 minutes, then hands back an id | | [`tashvi_3d`](#make-a-3d-model) | `cad` | Yes | Waits up to about 3 minutes, then hands back an id | | [`tashvi_library`](#look-in-my-tashvi) | `read` | No | A few seconds | | [`tashvi_ask`](#ask-tashvi) | `copilot` | Yes | Up to 150 seconds | | [`tashvi_one_ask`](#ask-tashvi-one) | `ledger` | No | Up to about a minute | | [`tashvi_one_change`](#make-a-change-in-tashvi-one) | `ledger` | No | Up to about 3 minutes | What each call costs is on [Pricing](/api/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`](#look-in-my-tashvi) 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](/api/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. | Input | Type | | | - | - | - | | `request` | string, required | What to design or change, in the person's words, up to 4,000 characters. Name the piece, metal, stones, setting and style; for an edit, say what to change | | `designIds` | array of strings, up to 5 | The person's own designs to build on or edit. The first is the one being edited | | `sessionId` | string | The design conversation to continue. Leave it out to start a new one | | `variations` | `1` or `4` | How many options. `4` gives four concepts at once (paid plans). Default `1` | | `presentation` | `"studio"` or `"on_model"` | The piece on its own (default), or worn on a model | **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. | Input | Type | | | - | - | - | | `designId` | string | The design to film. Give this to start a film | | `request` | string | What the camera should do, like "a slow turn" or "sparkle on the stones" | | `videoRequestId` | string | A film already started. Give only this to keep waiting | 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. | Input | Type | | | - | - | - | | `kind` | `"draft"` or `"cad"`, required | Which kind of 3D model | | `designId` | string | The design to make 3D. Gives a new draft or a new build its picture | | `request` | string, up to 4,000 characters | The piece in words (optional on a draft), or what to change on a build | | `buildId` | string | A draft or build that exists. With `request` on `cad`: change it ("make the shank thicker"). Alone: keep waiting for it | * **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. | Input | Type | | | - | - | - | | `what` | string, required | `designs`, `explore`, `files`, `drafts`, `chats` or `account` | | `query` | string, up to 200 characters | Words to narrow the list to (all must match). Required for `explore` | | `what` | Answers | | - | - | | `designs` | The person's saved designs, newest first, one line each with its `designId` and link | | `explore` | How many public designs in Tashvi's Explore match `query`, and a link to see them. The designs themselves aren't listed | | `files` | Their uploaded CAD files, each with a direct download | | `drafts` | Their 3D drafts, each with the Tashvi page that opens it | | `chats` | Their design conversations, each with the Tashvi page that opens it | | `account` | Their plan, and whether credits are `ok`, `low` or `out` | 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. | Input | Type | | | - | - | - | | `request` | string, required, up to 4,000 characters | The question, in full. Tashvi can't see the rest of your conversation | | `designId` | string | One of the person's designs the question is about, so Tashvi can look at it | 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. | Input | Type | | | - | - | - | | `request` | string, required, up to 2,000 characters | The question, in full | | `threadId` | string | The `threadId` of an earlier answer, to continue that conversation | 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. | Input | Type | | | - | - | - | | `request` | string, required, up to 2,000 characters | The change the person asked for, with every detail: which pieces, where, how much, at what price | > [!WARNING] > > 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. # Create Source: https://docs.tashvi.ai/features/create Design jewelry through conversation on Tashvi AI's Create page — describe a piece, get a photorealistic design, and refine it with follow-up messages, reference images, and quality tiers. Create is a conversational design studio. Describe the jewelry you want, then refine it by saying what to change. Generation and editing happen in one conversation at [design.tashvi.ai/create](https://design.tashvi.ai/create). ## See it in action