{"repo":"sgaunet/perplexity-go","free":true,"listed":false,"github":"https://github.com/sgaunet/perplexity-go","clone":"git clone https://github.com/sgaunet/perplexity-go.git","description":"A comprehensive Go client library for the Perplexity AI API with support for chat completions, async jobs, streaming, multimodal messages, structured outputs, and web search integration","language":"Go","stars":28,"topics":["go","golang","library","perplexity","perplexity-ai","ai","api-client","async","multimodal","streaming"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Perplexity API Go Client A lightweight Go library for interacting with the Perplexity AI API, supporting both chat completions and the Search API. Features Simple and easy-to-use interface for chat completion requests Search API support for direct access to Perplexity's real-time web index Supports all Perplexity models, including online LLMs Handles authentication and API key management Comprehensive request validation Concurrent request support with thread-safe operations Context-aware request handling with cancellation support If you need a CLI tool to interact with the API, check out the pplx project. Due to AI models that change regulary, only the default model will be handled for version =2.5.0. Using the WithModel , you're able to specify the model you want to use. The default model will always be maintained up to date. Now the library should be stable. If you have access to the beta version of the API I'm interesred to get some informations to hanle image generation. Please contact me. Installation To install the library, use go get: Usage Here's a quick example of how to use the library: Search API The Perplexity Search API provides direct access to Perplexity's real-time web index without the generative LLM layer, returning raw ranked search results with structured snippets. Features Direct web search without AI generation layer Single query or multi-query search support Structured results with titles, URLs, snippets, and scores Optional image results Domain filteri","default_branch":null,"files":null,"tree":[],"storefront":"/r/sgaunet","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sgaunet/perplexity-go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}