Churro

SDKs

Official client libraries for every flavor. Each one is fully typed, well-documented, and mirrors the REST API 1:1.

Node.js / TypeScript

v2.1.0

Our most popular flavor. Works with Node.js 18+, Next.js, Express, Fastify, and serverless functions. Fully baked with TypeScript types.

Terminal
npm install @churro/sdk
TypeScript
import { Churro } from '@churro/sdk'; const churro = new Churro({ apiKey: process.env.CHURRO_SECRET_KEY, }); const quote = await churro.quote({ productId: 'prod_123', basePrice: 10000, currency: 'usd', });

Python

v1.4.0

Async-first, built on httpx. Python 3.9+ with Pydantic models. Pairs well with Django, FastAPI, and late-night data pipelines.

Terminal
pip install churro-sdk
Python
from churro import Churro client = Churro(api_key="sk_live_...") quote = await client.quote( product_id="prod_123", base_price=10000, currency="usd", ) print(quote.optimized_price)

Go

v0.9.2

Idiomatic Go with context support and zero external dependencies. Crispy on the outside, clean on the inside.

Terminal
go get github.com/churro-ai/churro-go
Go
client := churro.NewClient("sk_live_...") quote, err := client.Quote(ctx, &churro.QuoteParams{ ProductID: "prod_123", BasePrice: 10000, Currency: "usd", }) fmt.Println(quote.OptimizedPrice)

REST API

Don't see your language? Use the REST API directly. All endpoints accept and return JSON — no SDK required, just bring your own HTTP client.

cURL
curl -X POST https://api.churro.ai/v1/quote \ -H "Authorization: Bearer sk_live_..." \ -H "Content-Type: application/json" \ -d '{"product_id":"prod_123","base_price":10000}'