Docs
Build on the cosmic platform.
Production-grade APIs, typed SDKs, streaming responses, webhooks and full observability — designed for developers who ship.
Getting started
Install the SDK, authenticate, and run your first generation in 60 seconds.
API reference
Full REST + streaming endpoints for every model.
SDKs
TypeScript, Python and Go SDKs with full type safety — coming soon.
Webhooks
Subscribe to generation events, billing changes and more.
Workflows
Chain models into pipelines with branches, retries and observability.
Security
SOC2, encryption, audit logs and bring-your-own keys.
XtraPush SDK — Coming Soon
TypeScript, Python and Go SDKs with full type safety are in development. Join the waitlist to get early access.
quickstart.ts
import { Xtrapush } from "@xtrapush/sdk"
const xt = new Xtrapush({ apiKey: process.env.XTRAPUSH_API_KEY })
const generation = await xt.images.generate({
model: "nebula-img-2",
prompt: "Cinematic shot of a glowing rocket lifting through purple nebula clouds",
size: "2048x2048",
guidance: 7.5,
})
console.log(generation.url) // https://cdn.xtrapush.space/...