Developer tools
SDKs
Official clients for Python, TypeScript and C#, with typed models, typed errors, retries and timeouts.
The SDKs wrap every endpoint of the API with typed requests and responses. They retry 408, 429
and 5xx responses twice with exponential backoff and time out after 60 seconds.
Install
Section titled “Install”pip install byteitNot on npm yet: build it from the SDK repository.
git clone https://github.com/byteit-ai/byteit-sdk.git(cd byteit-sdk/typescript && pnpm install && pnpm build)npm install ./byteit-sdk/typescriptNot on NuGet yet: reference the project from the SDK repository.
dotnet add reference <path-to>/dotnet/src/ByteIt/ByteIt.csprojCreate a client
Section titled “Create a client”from byteit import ByteIt
client = ByteIt(api_key="YOUR_API_KEY")AsyncByteIt has the same methods for asyncio.
import { ByteItClient } from "@byteit/sdk";
const client = new ByteItClient({ apiKey: process.env.BYTEIT_API_KEY! });using ByteIt;
var client = new ByteItClient("YOUR_API_KEY");How they are organised
Section titled “How they are organised”Each job type creates jobs with its own create: client.parse_jobs, client.extract_jobs,
client.classification_jobs and client.custom_jobs. Everything else works on any job through
client.jobs: get, list, get_status and download_result. Saved schemas, document classes and
API keys have client.schemas, client.document_classes and client.api_keys. TypeScript uses the
same names in camelCase (client.parseJobs), C# in PascalCase with Async (client.ParseJobs.CreateAsync).
Other languages
Section titled “Other languages”Java, Go, Ruby, PHP, Swift and Rust are available on request. Until then, every language can call the REST API directly: see the API reference.
All SDKs live in one public repository: byteit-ai/byteit-sdk.