Learn how to set up a local development environment on your system to use Spitch API. We currently support:
  • Python
  • TypeScript

Accessing your API Key

Log on to the developer portal to create your API Key. You can store your API Key in a .env file, or use it directly in your code.
.env
SPITCH_API_KEY = "YOUR_API_KEY"

Installation

Python
pip install spitch

Usage

Test your installation by running the sample code below for text translation.
Python
from spitch import Spitch

client = Spitch()
translation = client.text.translate(
    text="Hey my dear friend, how are you doing?",
    source="en",
    target="ha",
)
print(translation.text)

API Reference

For full details on all available methods and options, check out the API Reference.