Use the API from an AI assistant (MCP)
Connect an AI assistant such as Claude Code to Faraatarjomeh with your API key. The assistant can check your balance and prices, price and start video subtitles or dubbing, make Persian speech, and check the status of your jobs.
At a glance#
- Endpoint:
POST /api/v1/mcp(Model Context Protocol, Streamable HTTP, JSON answers only) - Auth:
Authorization: Bearer fara_sk_...(Authentication) - Scope:
readto connect and list the tools. Each tool needs the scope of the call it makes: a read-only key can use the read tools, and a write tool answers that the key needswrite. - Switched on: per deployment. Until it is on, the endpoint answers
404. - Spends Fara: yes, through
translate_video,text_to_speechandapprove_text_to_speech_job. Everything else is free or only reads. - Errors: a failed API call comes back as a tool error. See Errors.
Connect#
Create an API key on the website, then add the server to your assistant.
Claude Code#
curl
claude mcp add --transport http faraatarjomeh https://faraatarjomeh.com/api/v1/mcp --header "Authorization: Bearer $FARA_API_KEY"Other assistants#
Use a JSON entry with the same URL and header:
JSON
{"mcpServers":{"faraatarjomeh":{"type":"http","url":"https://faraatarjomeh.com/api/v1/mcp","headers":{"Authorization":"Bearer fara_sk_..."}}}}Sign-in for assistants (OAuth)#
Available when the site has sign-in for assistants switched on. Until then, use an API key as shown above.
- The assistant sends you to a sign-in page on the website. You sign in there if needed, check who is asking (the name for a known assistant, or the domain for any other app, with a warning), and press Allow. Don't allow sends an access-denied answer back to the assistant.
- Only known assistants may use their own names. Any other app is shown as not verified, and its name is the one it chose for itself.
- The assistant registers itself with its name and a redirect address. Only
httpsaddresses, andhttpto127.0.0.1orlocalhostfor desktop tools, are accepted. Backslashes are refused. The address must match exactly the one it registered. - Sign-in uses the authorization code flow with PKCE, method
S256. No client secret is used. - When you allow the assistant, you pick its spending limit (500 Fara is filled in; up to 1000). You can change it later on your account page. The limit adds up across the whole connection, not per key, and the page shows what the connection has spent. An assistant spends only from your own Fara balance, the same as any key.
- The access key lasts 30 days. A refresh token gets a new key before that, and the old key stops working. Using an old refresh token again ends the whole connection. A connection ends after 180 days, and when you change or reset your password.
- Your account page lists the connected assistants, with the day each was connected, its last use and its spending, and has a Disconnect button for each. Disconnecting stops its key at once.
- A connection is a normal API key with two extra limits: the spending limit of the connection, and a list of things it cannot do (below).
- Staff accounts cannot connect assistants. Accounts that have not confirmed their email cannot allow a connection.
What a connected assistant cannot do#
A connection can read your account and start new work. It cannot do these, whatever the assistant asks:
- Delete anything: jobs, meetings, uploads, outputs or transcripts.
- Cancel a job, or retry, recover or add pictures to a job.
- Change your account settings, your webhooks, your meeting branding or your meeting categories.
- Edit a job that already exists: its transcript, its minutes (including restoring an earlier version), its speaker names, its meeting context, its video or audio segments, its speech text, or its video preferences.
- Regenerate minutes from edited segments.
- Unlock a job.
It can still revise minutes and write the meeting recap email, and it can start new work that is paid from your Fara balance, within the connection's limit.
- Staff accounts cannot connect assistants. Accounts that have not confirmed their email cannot allow a connection.
Tools#
get_account: the account and its Fara balance.get_prices: the current Fara rates for translation, video, speech and meeting tools.estimate_video: the price of Persian subtitles or dubbing for a YouTube video. Free.translate_video: start Persian subtitles or dubbing for a YouTube video. Costs Fara.get_video_job: the status and result links of a video job.text_to_speech: turn Persian or English text into Persian speech (MP3). Costs Fara.get_text_to_speech_job: the status and text of a text-to-speech job.approve_text_to_speech_job: approve the reviewed text so the audio is made. Costs Fara.estimate_content: the price to translate website or app text (JSON, Markdown, HTML or strings) into Persian. Free.translate_content: translate website or app text into Persian in the same structure. Costs Fara.estimate_persian_edit: the price to edit Persian text into natural, native Persian. Free.edit_persian_content: write Persian text again in natural, native Persian, same meaning and structure (every sentence is written again in full and headings are written again as headings; labels, buttons and fixed section names keep their usual wording). Identical strings get the same edit and a term keeps one form across the text; each change comes with the text before and after and a note. Costs Fara.get_content_job: the status of a website copy job (translation or editing), and the content when it is finished.estimate_document: read a PDF, Word or EPUB file from a link and get its price. Free.translate_document: start the Persian translation of a priced document. Costs Fara.make_meeting_minutes: minutes from a recording at a link. Costs Fara.get_meeting_job: the status and results of a minutes job.transcribe_audio: text from a recording at a link, optionally translated. Costs Fara.get_transcription_job: the status of a transcription job.estimate_price: the price of any product before starting it. Free.get_top_up_link: the balance and the link where you add Fara on the website.list_translations: the account's translated documents.get_translation_status: the status, price and download options of a document translation.
Rules#
- Jobs cost Fara. The assistant must show you the price and get your clear yes first. Only then does it start the job with
confirm_costset to true. - Jobs run in the background. The assistant checks them with the matching
get_tool and gives you theweb_urlto open the result on the website. - Every tool that costs Fara takes an optional
request_id. Send the same id when retrying after a timeout: you get the first answer back, never a second paid job. Send a new id for a new job with the same inputs. Without an id, the same call within the hour counts as a retry. - Each call uses your key's scopes, limits and balance checks, the same as a call you make yourself.