> For the complete documentation index, see [llms.txt](https://sogni.gitbook.io/sogni-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sogni.gitbook.io/sogni-docs/our-superapps/sogni-sdk.md).

# Sogni SDK

The Sogni SDK gives developers JavaScript and TypeScript access to the Sogni Supernet for image generation, image editing, video generation, LLM chat, tool calling, and creative media workflows.

### Who it is for

Developers, startups, agencies, agent builders, product teams, and anyone building custom Sogni-powered apps.

### How it works

Developers install the SDK, authenticate with an API key or credentials, connect over WebSocket, choose fast or relaxed networks, create generation projects, and listen for progress/completion events. The SDK supports TypeScript/JavaScript for Node and browser environments, image generation/editing, video workflows, progress events, advanced controls, LLM chat, tool calling, and Sogni platform tools.

### Sample Workflows

Add image generation to an app, build a video generator, create a photobooth experience, integrate Sogni Chat into a product, or power a creative agent with full media capabilities.

### Workflows

Coming soon


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sogni.gitbook.io/sogni-docs/our-superapps/sogni-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
