SDKs
Latitude offers official SDKs for popular languages:- Python SDK - For Python applications
- TypeScript SDK - For Node.js and browser applications
HTTP API
You can also interact with Latitude directly using the HTTP API. This is useful if you’re using a language without an official SDK, need more control over the request/response cycle, or are building custom integrations. The API provides full access to all Latitude features including prompt execution, log management, and evaluations.Integration Patterns
Latitude supports two main integration patterns:Use Latitude as an AI Gateway (SDK and API support)
With this pattern, Latitude acts as a proxy between your application and the underlying AI models. When you call Latitude’s SDK or API:- Your application sends prompt parameters to Latitude
- Latitude fetches the prompt, executes it using your configured provider, and handles all logging automatically
- Your application receives the response directly
Fetch Prompts and Upload Logs (SDK support)
With this pattern, you manage prompt execution yourself:- Your application fetches prompts from Latitude using the
prompts.get()method - Your application renders the prompt using the
prompts.renderChain()method.
onStep callback allows you to execute each step with your own infrastructure (e.g., directly calling OpenAI, Anthropic, etc.).
- Your application uploads logs back to Latitude using the
logs.push()method
Next Steps
- Use the Python SDK or TypeScript SDK to get started quickly
- Learn about the HTTP API
- Deploy your first prompt with the Publishing Prompts guide
- Upload existing logs using the Upload Logs guide