Official SDK

Official TypeScript/JavaScript SDK

Full-featured SDK for Node.js, Deno, Bun, and browsers. Search, download, and generate AI stock photos from any JavaScript or TypeScript project.

npm install okslop
View on npm

Full API coverage

Search, random photos, categories, collections, embed generation — every API endpoint wrapped with full TypeScript types.

CLI included

Use `npx okslop search 'query'` from the command line. Great for scripts, CI/CD, and quick lookups.

Zero dependencies

Works with native fetch. No heavy dependencies, tree-shakeable, works in serverless environments.

Get started

Install in one command, configure in one line.

Configuration
import { OkslopClient } from "okslop";

const client = new OkslopClient();
const results = await client.images.search({ query: "coffee shop" });
console.log(results.results);

Frequently asked questions

Ready to use OKSLOP in TypeScript SDK?

Free AI-generated stock photos, right in your design tool. No attribution required.