Sogni Intelligence
#What it is
Sogni Intelligence is the OpenAI-compatible LLM and agent API on the Sogni Supernet. Drop-in chat, vision, streaming, custom function tools, and built-in creative media tools for image, video, and music — all behind one bearer token and one base URL.
POST https://api.sogni.ai/v1/chat/completions
Use /v1/chat/completions when an LLM should interpret a user request, decide whether tools are needed, and return a final assistant response. Use /v1/creative-agent/tools/execute when your application already knows the exact synchronous composition/planning tool and arguments to run. Use /v1/chat/runs for model-driven behavior with durable progress, replayable SSE events, recovery, and cancellation. Use /v1/creative-agent/workflows when your application already knows the exact media workflow to run.
#What's new
Introduced in March 2026, Sogni Intelligence is moving fast. The default qwen4-35b-a3b-gguf-iq4xs model unifies Sogni's 35B Qwen pool with stronger reasoning, sharper tool calling, vision support, and a 64K baseline context window on 24 GB cards (scaling to 128K on 32 GB and 256K on 48 GB+).
In practice, every Sogni SuperApp gets smarter, easier to use, more personalized, and more interoperable. In Sogni Photobooth, you can describe the booth you want instead of browsing dozens of preset categories — try ideas like "put me on famous magazine covers" or "turn me into famous paintings." In Sogni 360, the assistant can analyze your trip photos and choose smoother object-to-object transitions across a sequence.
Developers can plug in through OpenAI Chat Completions-compatible clients including Open WebUI, OpenClaw, Hermes Agent, the OpenAI SDK, and agentic coding clients that support custom OpenAI-compatible endpoints — all powered by Sogni's decentralized compute network.
#Current model IDs
GET /v1/models returns the live catalog. Today:
| Model ID | Full context | Use |
|---|---|---|
qwen4-35b-a3b-gguf-iq4xs |
65,536 | Default chat, reasoning, coding, vision, and tool calling (replaces retired Qwen 3.5 and 3.6 35B slugs, which redirect automatically). |
deepseek-v4-flash-vision-exp-dspark-1m |
1,048,576 | Vision, reasoning, tool calling, and structured outputs. Requires an Unlimited plan, Premium Spark, or SOGNI; free Spark cannot pay for it. |
Prompt, tool schemas, and output share this context. API admission reserves 2,048 safety tokens. The live model list also exposes context_length, max_model_len, and sogni.usable_context_length; oversized hosted output ceilings are bounded to the remaining space. See Context and Output Limits for the shared allowance and client settings.
#What it supports
- OpenAI-compatible chat completions and SSE streaming
- Multi-turn conversations with
developer,system,user,assistant, andtoolmessages - Inline base64 PNG/JPEG vision input (up to 20 images per request)
- Custom OpenAI-style function tools alongside Sogni's built-in tools
- Sogni creative tools with media indexing across rounds — generate, edit, analyze, and deterministically upscale images through 16K with NVIDIA RTX VSR
- Synchronous composition tools —
enhance_prompt,compose_script,compose_lyrics,compose_instrumental - Synchronous workflow planners —
compose_workflowfor one-shot durable plans andcompose_workflow_templatefor savable/editable recipes - Direct synchronous tool execution when your app already has exact tool arguments
- Durable hosted chat runs with persisted state, replayable events, cost-approval pause, recovery, and cancellation
- Durable creative workflows with cancel, resume, reseed, and full SSE replay
- Saveable workflow templates invocable by ID with typed inputs
#Where to go next
Endpoint-by-endpoint lookup with curl, JS, and Python examples. Surface · Chat Chat Completions →
OpenAI-compatible chat, streaming, vision input, and built-in tools. Compatibility OpenAI SDK Compatibility →
Point the official OpenAI SDKs at
api.sogni.ai/v1 and go.
Surface · Runs
Durable Chat Runs →Long tool-calling turns with cost-approval pauses, SSE replay, recovery. Surface · Workflows Creative-Agent Workflows →
Pre-planned multi-step jobs — storyboards, image→video, batch generation. Surface · Templates Workflow Templates →
Saveable, parameterized recipes you can invoke by ID with typed inputs. Assets Media Upload URLs →
Signed upload and download URLs for reference media that durable workflows can use. Operations · Billing Billing & Cost Control →
Sogni vs Premium Spark, vendor-model gating, cost-approval flow. Agent SDK Sogni Creative Agent Skill →
Public agent skill +
sogni-agent CLI for Claude Code, Manus, others.
#Tool families
By default Sogni Intelligence injects the creative-tools family — image, video, music generation; image / video analysis; metadata extraction; plus synchronous composition tools (enhance_prompt, compose_script, compose_lyrics, compose_instrumental).
Set sogni_tools: "creative-agent" to add workflow control, asset-manifest tools, and both workflow planners: compose_workflow for one-shot durable plans and compose_workflow_template for reusable templates. Set sogni_tools: false or "none" to disable tool injection entirely.
If your app already knows it needs one of the synchronous tools above, call it directly with POST /v1/creative-agent/tools/execute instead of routing through a chat-completions tool-choice round.
#Quick test
curl https://api.sogni.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-35b-a3b-gguf-iq4xs",
"messages": [
{"role": "user", "content": "Make me something beautiful, use your imagination!"}
],
"sogni_tools": true
}'
For the full REST reference — every endpoint, parameter, and response — see the API Reference.